Skip to content

Instantly share code, notes, and snippets.

@eyalzek
Last active January 2, 2017 10:56
Show Gist options
  • Save eyalzek/13ab5f03a8b7522fbdeef6e0b700e48a to your computer and use it in GitHub Desktop.
Save eyalzek/13ab5f03a8b7522fbdeef6e0b700e48a to your computer and use it in GitHub Desktop.
Opscenter setup
curl -XPOST http://localhost:8888/cluster-configs -d '{
"cassandra": {
"cql_port": 9042,
"seed_hosts": ""
},
"jmx": {
"port": "7199"
}
}'
curl -XPOST http://localhost:8888/CLUSTER_ID/backups/destinations -d '{
"access_key": "ACCESS_KEY",
"access_secret": "ACCESS_SECRET",
"path": "BUCKET_ENDPOINT",
"provider": "s3"
}'
curl -XPOST http://localhost:8888/CLUSTER_ID/job-schedules -d '{
"first_run_time": "00:00:00",
"timezone": "Europe/Berlin",
"interval": 1,
"interval_unit": "days",
"job_params": {
"cleanup_age": 23,
"cleanup_age_unit": "hours",
"type": "backup",
"keyspaces": [],
"destinations": {
"DESTINATION_ID": {} # DESTINATION_ID is obtained after posting the S3 destination in the previous step
}
},
"id": "daily_backup"
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment