diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-22 16:49:00 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-22 16:49:00 +0000 |
commit | e1f740854ac1ac24f4f2d9224d912a7f747ea425 (patch) | |
tree | a27fad8498d32ff2e4837a8cc921f0f8efcd9cd5 /scripts | |
parent | cgi-bin isn't special (diff) | |
download | config-e1f740854ac1ac24f4f2d9224d912a7f747ea425.tar.bz2 config-e1f740854ac1ac24f4f2d9224d912a7f747ea425.tar.xz config-e1f740854ac1ac24f4f2d9224d912a7f747ea425.zip |
Wrap and log output to log file
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/backup.cron | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/backup.cron b/scripts/backup.cron index 408ea32..5c49b1a 100755 --- a/scripts/backup.cron +++ b/scripts/backup.cron @@ -5,6 +5,7 @@ prefix="daily" count="25" list="dirs.list" +( mountpoint -q $basedir && umount $basedir fsck -y /dev/data/backup @@ -56,3 +57,4 @@ pg_dump -Upostgres bugzilla | xz > ${basedir}/${prefix}.0/postgresql-bugzilla.sq echo "End @ `date`" >> ${basedir}/time umount ${basedir} +) | tee /var/log/backup.log |