Backup and Restore
Use this procedure to trigger and restore the backup process.
Before you begin
Ensure that you configure cdl api deploy true to access the cdl actions backup and cdl actions restore commands.
Procedure
Step 1 |
Trigger the backup process using the cdl actions backup start [ concurrency-factor concurrency_factor | created-before timestamp | slice-name slice_name ] command. This command triggers the backup process and will not wait for the process to be completed. It returns a successful or failure message with the dump file name that gets created. Once the backup process is completed, the dump file in the output can be collected or referred for the restore process. This file can be located at /data/<namespace>/data-cdl-api-0/<file-name.dump> on the node where the cdl-api-0 pod is running. This command will prompt the warning This triggers CDL backup process. Are you sure?. Type yes to proceed with triggering the CDL backup process. The following parameters are optional to be configured with the backup start command:
|
Step 2 |
Run the cdl actions backup status command to know the status of the backup process. This command returns one of the following status:
|
Step 3 |
Trigger the restore process using the cdl actions restore start file filename command. This command triggers the restore process and will not wait for the process to be completed. It returns a successful or failure
message. It is mandatory to configure the This command will prompt the warning This triggers CDL restore process and will overwrite the existing data. Are you sure?. Type yes to proceed with triggering the CDL restore process. The file name must have the |
Step 4 |
Run the cdl actions restore status command to know the status of the restore process. This command returns one of the following status:
|