How do I remove zombie backups?
OnApp Backup Scheme
Normal and/or Incremental Backups
Copy or download zbk.sh onto the control panel server:
#rm -f /tmp/zbk.sh
#curl -s https://bitbucket.org/onappcore/support-tools-public/raw/39fe41e971f948cdaeac43e00e4a6e812cde8fca/z-zbk.sh | tee - > /tmp/zbk.sh ; cd /tmp/
And run the following command (with your own parameters):
#bash zbk.sh -B 188.8.131.52
Let 184.108.40.206 be the ip address of the backup server. This would search for backup files that exist on the backup server but do not exist in the OnApp database.
The script will list the files with a prompt asking you to confirm if it is ok to delete them. Check that every line in the output looks like a backup. Then you can type 'y' to delete the items found in that list.
After the script finishes, a list of deleted zombie backups should be in removed_backups.txt
You can check for zombie backup transactions using the -p option.
You can check for missing backup files using the -M option.
The script can also be used to check for zombie backups on a hypervisor, (use -H [ipaddress]) and on the control panel. (Use -C, no argument/parameter required)
bash zbk.sh -h should display a help message with this information as well.