X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=config%2Fdebian%2Fcron.dinstall;h=edd6f6c6f13c2e3cb851d07b0f3b9a72b633139c;hb=3657c94c57960067451d2ab42b92dc6d5acfa656;hp=c239c09c97499c7a119031bef4271ea960645302;hpb=8deab563cb0e0aeaf209e5af90381b6e1f0fa3c9;p=dak.git diff --git a/config/debian/cron.dinstall b/config/debian/cron.dinstall index c239c09c..edd6f6c6 100755 --- a/config/debian/cron.dinstall +++ b/config/debian/cron.dinstall @@ -354,12 +354,12 @@ function compress() { cd $base/backup/ find -maxdepth 1 -mindepth 1 -type f -name 'dump_pre_*' -mtime +2 -print0 | xargs -0 --no-run-if-empty rm - find -maxdepth 1 -mindepth 1 -type f -name 'dump_*' \! -name '*.bz2' \! -name '*.gz' -mmin 720 | + find -maxdepth 1 -mindepth 1 -type f -name 'dump_*' \! -name '*.bz2' \! -name '*.gz' -mmin +720 | while read dumpname; do echo "Compressing $dumpname" bzip2 -9v "$dumpname" done - find -maxdepth 1 -mindepth 1 -type f -name "dumpall_*" \! -name '*.bz2' \! -name '*.gz' -mmin 720 | + find -maxdepth 1 -mindepth 1 -type f -name "dumpall_*" \! -name '*.bz2' \! -name '*.gz' -mmin +720 | while read dumpname; do echo "Compressing $dumpname" bzip2 -9v "$dumpname"