Running an ad hoc backup

Create an ad hoc backup job that runs immediately and runs only once.

Run an ad hoc backup. A one-time backup runs only once and starts immediately after creating the job in the OpsCenter UI. You can also schedule a one-time backup that does not repeat if you do not want to run the backup now.

Procedure

  1. Click cluster name > Services.
  2. Click the Configure link for the Backup Service.
  3. Click Create Backup.
    The Create Backup dialog appears.



  4. For Type, click Run Now.
  5. Select the keyspace to back up, or select All Keyspaces.
    1. Location—Snapshots are saved to the node's snapshot directory for the table being saved. For example, /var/lib/cassandra/data/OpsCenter/settings/snapshots. If you want the snapshot copied to an additional location in Amazon S3, click Add Location.

      To save the snapshot data to Amazon S3, select Amazon S3 for the Location. Enter the S3 Bucket name. The bucket name must conform to the S3 guidelines. Enter your AWS key and secret. Make sure you have the proper AWS IAM privileges.

      Note: You must use Java 7 or later to store at an S3 location.

      To avoid saturating your network, set a maximum upload rate. Select Throttle S3 transfer rate and set the maximum MB per second.

      To compress the data, select Enable compression. Compression reduces the amount of data going through your network and reduces the disk and data usage in S3, but increases the CPU load for the server.

      To enable server-side S3 encryption (SSE-S3), select Enable S3 server-side encryption. Server-side encryption encrypts each file in the backup set with a unique key, as well as the key itself, using a 256-bit AES cypher. The key is encrypted with a master key that is regularly rotated. Enabling server-side encryption increases the security of your backup files, but increases the time it takes to complete a backup. For more information on S3 server-side encryption, see http://docs.aws.amazon.com/AmazonS3/latest/dev/UsingServerSideEncryption.html.

    2. To save the snapshot data to Amazon S3, select Amazon S3 for the Location, set the bucket name, and enter your AWS key and secret. The bucket name must conform to the S3 guidelines.
    3. To avoid saturating your network, set a maximum upload rate. Select Throttle S3 transfer rate and set the maximum MB per second to upload the data. To compress the data, select Enable compression. This reduces the amount of data going through your network and reduces the disk and data usage in S3, but increases the CPU load for the server.
    4. Change the staging directory if necessary by setting the backup_staging_directory configuration option in address.yaml.
    5. 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.

    The Add Location dialog appears.

  6. Click Create Backup.

Results

A progress dialog displays the status of the backup operation. If the progress dialog is closed, you can continue to view the operation in the Activities tab.