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
-
Click .
-
Click the Configure link for the Backup Service.
-
In the Activity tab, click Create
Backup.
The Create Backup dialog appears.
-
Select the backup parameters:
-
Under Type, click
Schedule.
-
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.
- 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.
-
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.
-
Change the staging directory if necessary by setting
the
backup_staging_directory
configuration option in
address.yaml.
- Optional:
To set
custom pre- or post-backup scripts, click Advanced
Options:
-
Click Create Backup.
Results
The scheduled backup appears in the Scheduled Backups
tab.