Backing up a cluster
OpsCenter provides a way to schedule and run backup operations on a cluster. OpsCenter allows organizations to run one-time backup jobs as well as schedule backup jobs to run at a later date and on a recurring basis. Commit log backups facilitate restoring backup data to a particular date and time.
Keep the following caveats in mind when creating and restoring backups:
Each scheduled backup has a retention policy that defines how OpsCenter handles the files for older backup data. The default policy is to retain On Server backup files for 30 days. The default retention policy for all backups except On Server is to retain all backups.
For each scheduled backup task and configured location, configure a time period to retain the snapshot data.
OpsCenter supports minutes, hours, days, and weeks for the retention time period.
For example, you can define a retention policy that removes snapshot data older than 30 days, or 26 weeks, or 3 hours.
If you want to keep all backups, OpsCenter has a
Retain All policy that retains the backup files indefinitely.
When a backup that was configured with a time-limited retention policy completes, OpsCenter scans the snapshot data for outdated files that do not belong to other snapshots and removes them at the next scheduled backup.
If removing old backup data manually, the
For example, consider a scheduled backup that sends data to Amazon S3, runs weekly, and has a retention policy of removing backups older than three days. The layout in the Amazon S3 bucket is as follows:
backup.json #includes 4-Data and 5-Data
backup.json #includes 5,6,7-Data
After the February 1 backup completes, OpsCenter scans the SSTables for outdated files according to the retention policy, and removes the January 25 backup files.
MyKeyspace-MyTable-ic-4-Data.db was in the January 25 backup but not in the February 1 backup, it is removed.
MyKeyspace-MyTable-ic-5-Data.db was in the January 25 backup, it is also in the latest backup, so it is retained until it meets its defined retention policy.