Backup utility for the Openstack chef server VM.
usage: ./gravity-backup.sh options
This script backs up the Rackspace Chef server VM for Openstack deployments using three methods. In the first method, it shuts down and copies the VM disk to $backupdir. The second method logs into the VM and copies import directories for Chef and couchdb, it places the files in $backupdir. Finally, it dumps the specified chef configs to json in $backupdir. The script needs a configuration file in /etc/default to work called "gravity-backup.conf". An example config file is included.
OPTIONS:
-h Show this message
-a Does every backup method.
-i Backs up the VM image and XML file.
-f Backs up the actual Chef and couchdb files.
-d Dumps the Chef configs to JSON and downloads all cookbooks.
-c Compact couchdb database
-q Quiet
EXAMPLE: sh ./gravity-backup.sh -a -q