rladmin cluster recover
Recovers a cluster from a backup file.
| Redis Enterprise Software | 
|---|
Recovers a cluster from a backup file. The default location of the configuration backup file is /var/opt/redislabs/persist/ccs/ccs-redis.rdb.
rladmin cluster recover
        filename <recovery filename>
        [ ephemeral_path <path> ]
        [ persistent_path <path> ]
        [ ccs_persistent_path <path> ]
        [ rack_id <ID> ]
        [ second_rack_id <ID> ]
        [ override_rack_id ]
        [ node_uid <number> ]
        [ flash_enabled ]
        [ flash_path <path> ]
        [ addr <IP address> ]
        [ external_addr <IP address> ]
Parameters
| Parameter | Type/Value | Description | 
|---|---|---|
| addr | IP address | Sets a node's internal IP address. If not provided, the node sets the address automatically. (optional) | 
| ccs_persistent_path | filepath | Path to the location of CCS snapshots (default is the same as persistent_path) (optional) | 
| external_addr | IP address | Sets a node's external IP address. If not provided, the node sets the address automatically. (optional) | 
| ephemeral_path | filepath (default: /var/opt/redislabs) | Path to an ephemeral storage location (optional) | 
| filename | filepath | Backup file to use for recovery | 
| flash_enabled | Enables flash storage (optional) | |
| flash_path | filepath (default: /var/opt/redislabs/flash) | Path to the flash storage location in case the node does not support CAPI (required if flash_enabled) | 
| node_uid | integer (default: 1) | Specifies which node will recover first and become master (optional) | 
| override_rack_id | Changes to a new rack, specified by rack_id(optional) | |
| persistent_path | filepath | Path to the persistent storage location (optional) | 
| rack_id | string | Switches to the specified rack (optional) | 
| second_rack_id | string | The unique identifier of a second rack ID for two-dimensional rack awareness (optional) | 
Returns
Returns ok if the cluster recovered successfully. Otherwise, it returns an error message.
Example
$ rladmin cluster recover filename /tmp/persist/ccs/ccs-redis.rdb node_uid 1 rack_id 5
Initiating cluster recovery... ok