summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydractl/backup-site1
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*