aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2012-01-19 10:34:32 -0200
committerSilvio Rhatto <rhatto@riseup.net>2012-01-19 10:34:32 -0200
commit4a77e7e881b2976fa4cd5d90b233364f38ac3bcb (patch)
treee1df9b2f4deed796e92b0c36767bf86ef393d766 /share/hydractl
parentfb3c2f95d9649dfebcf43e14d659ddc557a84f0f (diff)
downloadhydra-4a77e7e881b2976fa4cd5d90b233364f38ac3bcb.tar.gz
hydra-4a77e7e881b2976fa4cd5d90b233364f38ac3bcb.tar.bz2
Ensure just the compressed db dump remains
Diffstat (limited to 'share/hydractl')
-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*