docker-cassandra-backup-to-s3
Backs up Cassandra to an s3 bucket or to a locally accessible path.
Environment Variables
Either specify:
AWS_ACCESS_KEY_ID
AWS Access KeyAWS_SECRET_ACCESS_KEY
AWS Secret Access KeyAWS_KMS_ID
AWS KMS ID to encrypt the contents of the bucket withAWS_BUCKET_NAME
The name of the AWS Bucket to backup toAWS_ARGS
Arguments passed to the aws command
Or:
CASSANDRA_BACKUPS
The directory to store locally accessible backupsRETAIN_DAYS
How many days to retain backups for
Optional variables:
CASSANDRA_HOST:-localhost
the cassandra host to connect toCASSANDRA_PORT:-7199
The cassandra port to connect toCASSANDRA_KEYSPACE:-draios
The cassandra keyspace to backupCASSANDRA_DATA:-/var/lib/cassandra/data
The cassandra data directory
Restore process
Use the node restart method: http://docs.datastax.com/en/archived/cassandra/2.0/cassandra/operations/ops_backup_noderestart_t.html