--- Title: rladmin cluster recover alwaysopen: false categories: - docs - operate - rs description: Recovers a cluster from a backup file. headerRange: '[1-2]' linkTitle: recover tags: - non-configured toc: 'true' weight: $weight --- Recovers a cluster from a backup file. The default location of the configuration backup file is `/var/opt/redislabs/persist/ccs/ccs-redis.rdb`. ```sh rladmin cluster recover filename [ ephemeral_path ] [ persistent_path ] [ ccs_persistent_path ] [ rack_id ] [ second_rack_id ] [ override_rack_id ] [ node_uid ] [ flash_enabled ] [ flash_path ] [ addr ] [ external_addr ] ``` ### 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 ```sh $ rladmin cluster recover filename /tmp/persist/ccs/ccs-redis.rdb node_uid 1 rack_id 5 Initiating cluster recovery... ok ```