Skip to content

Backup Job

Once you have created a backup policy and deployed a data agent to target clusters, you can create or schedule backup jobs for your clusters. A backup job is an instance of a backup operation


On-Demand Backups

Follow the below steps to create a backup job for your cluster:

  • In the web console, navigate to your project
  • Go to "Backup/Restore -> Jobs" menu
  • Click "Backup Job" and create a new backup job
  • Select the Backup Policy from the "Policy" drop down list
  • Click "ADD CLUSTER" and select the cluster that you would like to backup from the cluster drop down list
  • Make sure the checkbox "Schedule" is disabled
  • Click "EXECUTE" to perform the backup job for your selected cluster from the configured backup policy.

Backup Job

  • Once the backup job is done, the backup job status will be displayed in the "JOBS" list

Backup Job

  • Optionally you can also verify the backup data in your AWS S3 bucket or S3 Compatible Storage. Below is the illustrative example of the successful backup data of the cluster in MinIO bucket

Backup Job


Scheduled Backups

Follow below steps if you would like to perform the data backup for your cluster from the configured policy based on the defined schedule.

  • From the web console, navigate to your Project
  • Go to Backup/Restore > Jobs menu to click "Backup Job" to create a new backup job
  • Select the Backup Policy from the "Policy" drop down list
  • Click "ADD CLUSTER" and select the cluster name that you would like to backup from the cluster drop down list
  • Select checkbox "Schedule" to enable a scheduled backup job
  • Enter the Cron Expression to schedule your cluster backup job
  • Click "EXECUTE" to create the scheduled backup job for your selected cluster from the configured backup policy.

Example

Here is the example of scheduling a backup job for the cluster to run twice a day at 12am and 12pm

Backup Job

Once the scheduled backup job is created, the scheduled backup job will be displayed in the "SCHEDULED BACKUPS" list

Backup Job

A backup job will be performed immediately after the scheduled backup job is created. When the schedule is up next time, a new backup job will be performed automatically.

Backup Job


RCTL for Backup Job

Users can also create or schedule backup jobs through RCTL for the clusters

Create Backup Jobs

./rctl create dp-job --policy <policy> --cluster <clustername>

Schedule Backup Jobs

./rctl create dp-job --policy <policy> --cluster <clustername> --schedule <'*/5****'>

Fetch Backup Jobs

./rctl get dp-job

An illustrative example is shown below where RCTL retrieves the list of jobs

+-----------------------------------------+---------+----------+-----------+------------------------------+------------------------------+
| NAME                                    | TYPE    | CLUSTER  | STATUS    | STARTED AT                   | COMPLETED AT                 |
+-----------------------------------------+---------+----------+-----------+------------------------------+------------------------------+
| demo-restore-1pm95i35-4qkolkn-rx28oml   | Restore | rctl1bp1 | Completed | Fri Sep 17 09:35:06 UTC 2021 | Fri Sep 17 09:35:36 UTC 2021 |
+-----------------------------------------+---------+----------+-----------+------------------------------+------------------------------+
| demo-backup-m84n5d56-4qkolkn-rctlbp2    | Backup  | rctl1bp1 | Completed | Fri Sep 17 09:34:13 UTC 2021 | Fri Sep 17 09:34:13 UTC 2021 |
+-----------------------------------------+---------+----------+-----------+------------------------------+------------------------------+
| demo-backup-m84n5d56-4qkolkn-rctlbp2    | Backup  | rctlbp2  | Completed | Fri Sep 17 09:33:13 UTC 2021 | Fri Sep 17 09:33:16 UTC 2021 |
+-----------------------------------------+---------+----------+-----------+------------------------------+------------------------------+

Important

Job deletion is not supported