From 4a77e7e881b2976fa4cd5d90b233364f38ac3bcb Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 19 Jan 2012 10:34:32 -0200 Subject: Ensure just the compressed db dump remains --- share/hydractl/backup-site | 1 + 1 file changed, 1 insertion(+) (limited to 'share') 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* -- cgit v1.2.3