diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2012-01-19 10:34:32 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2012-01-19 10:34:32 -0200 |
commit | 4a77e7e881b2976fa4cd5d90b233364f38ac3bcb (patch) | |
tree | e1df9b2f4deed796e92b0c36767bf86ef393d766 /share/hydractl | |
parent | fb3c2f95d9649dfebcf43e14d659ddc557a84f0f (diff) | |
download | hydra-4a77e7e881b2976fa4cd5d90b233364f38ac3bcb.tar.gz hydra-4a77e7e881b2976fa4cd5d90b233364f38ac3bcb.tar.bz2 |
Ensure just the compressed db dump remains
Diffstat (limited to 'share/hydractl')
-rwxr-xr-x | share/hydractl/backup-site | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/share/hydractl/backup-site b/share/hydractl/backup-site index 77bc023..f6aa230 100755 --- a/share/hydractl/backup-site +++ b/share/hydractl/backup-site @@ -91,6 +91,7 @@ if [ -d "/var/lib/mysql/$SITE" ]; then echo "Backing up database $SITE..." mysqldump $SITE > $SITE.sql bzip2 $SITE.sql + rm -f $SITE.sql md5sum $SITE.sql.bz2 > $SITE.sql.bz2.md5 sha1sum $SITE.sql.bz2 > $SITE.sql.bz2.sha1 chown root.$BACKUPS_GROUP $SITE.sql* |