Skip to content

phantacix/cassandra-backup

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 

Repository files navigation

cassandra-backup.sh

Script to take a cassandra snapshot using nodetool

Notice

This script was tested in:

  • Linux
    • Debian GNU/Linux 7
  • Cassandra
    • ReleaseVersion: 1.2.19

Prerequisities

  • none

How to use it

# Parameters:
#
#   cassandra-backup.sh --help
#
#    Parameter           Short Description                                                        Default
#    ------------------- ----- ------------------------------------------------------------------ -------------------
#    --username             -u [OPTIONAL] Cassandra username                                      cassandra
#    --password             -p [OPTIONAL] Cassandra password                                      ******
#    --host                 -H [OPTIONAL] Cassandra hostname                                      ${HOSTNAME}
#    --help                 -h [OPTIONAL] help
#
#   Ex.: cassandra-backup.sh --username cassandra --password senha
  • Schedule the cassandra-backup.sh on crontab or cron.d.

Example:

$ cat /etc/cron.d/cassandra-backup
0 2 * * * cassandra /scripts/cassandra/backup/cassandra-backup.sh > /dev/null 2>&1

License

This project is licensed under the MIT License - see the License.md file for details

About

Script to take a Cassandra snapshot using nodetool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%