Creating a recurring scheduled backup 

Create a scheduled backup to run periodic backup operations.

Create a scheduled backup job to automatically run periodic backups.

Prerequisites

Important: The Backup Service requires control over the data and structure of its destination locations. The AWS S3 bucket and the Local file system destinations must be dedicated for use only by OpsCenter. Any additional directories or files in those destinations can prevent the Backup Service from properly conducting a Backup or Restore operation.

Procedure

  1. Click cluster name > Services.
  2. Click the Configure link for the Backup Service.
  3. In the Activity tab, click Create Backup.
    The Create Backup dialog appears.



  4. Select the backup parameters:
    1. Under Type, click Schedule.
    2. Schedule: Select a date, time, and frequency for the backup. GMT is the default timezone. To change the timezone, click GMT, select the country and timezone, and click Save.
    3. Required: Keyspaces: Click the plus (+) icon to select one or more keyspaces to back up. To keep the list open when making multiple selections, press and hold the Cmd key (Mac) or Ctrl key (Windows/Linux). Select All Keyspaces to back up all keyspaces.
      When backing up a DSE Graph database, select your graph keyspace. When a keyspace is created in DSE Graph, it is actually comprised of three keyspaces that OpsCenter bundles together because all three keyspaces are required for a DSE Graph backup.
    4. Location: Snapshots are saved to the node's snapshot directory for the table being saved. For example, /var/lib/cassandra/data/OpsCenter/settings/snapshots. To edit the Location and Retention Policy, click the edit icon in the Location pane. Or, to copy the snapshot to an additional location, click Add Location. For more information, see adding a backup location.
    5. Change the staging directory if necessary by setting the backup_staging_directory configuration option in address.yaml.
    6. Optional: To set custom pre- or post-backup scripts, click Advanced Options:

      Pre-Backup Script: Enter the name of a script to run before the backup starts.

      Post-Backup Script: Enter the name of a script to run after the backup is done.

      For details, see Configuring custom scripts to run before and after backups.

  5. Click Create Backup.

Results

The scheduled backup appears in the Scheduled Backups tab.