From: Torsten Werner Date: Wed, 9 Mar 2011 08:15:00 +0000 (+0100) Subject: Merge branch 'master' into dbtests X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=edae3d82ea0b9cebbb3921930e1e62028efc73fd;hp=08b2323f564252585cce5ce8d10a09f9861dff80;p=dak.git Merge branch 'master' into dbtests --- diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions index a4190637..692101bc 100644 --- a/config/debian/dinstall.functions +++ b/config/debian/dinstall.functions @@ -525,16 +525,11 @@ 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' \! -name '*.xz' -mmin +720 | - while read dumpname; do - echo "Compressing $dumpname" - bzip2 -9fv "$dumpname" - done - find -maxdepth 1 -mindepth 1 -type f -name "dumpall_*" \! -name '*.bz2' \! -name '*.gz' \! -name '*.xz' -mmin +720 | - while read dumpname; do - echo "Compressing $dumpname" - bzip2 -9fv "$dumpname" - done + find -maxdepth 1 -mindepth 1 -type f -name 'dump_*' \! -name '*.bz2' \! -name '*.gz' \! -name '*.xz' -mmin +720 -print0 \ + | xargs --no-run-if-empty -0 -P4 -n16 xz -9v + + find -maxdepth 1 -mindepth 1 -type f -name "dumpall_*" \! -name '*.bz2' \! -name '*.gz' \! -name '*.xz' -mmin +720 \ + | xargs --no-run-if-empty -0 -P4 -n16 xz -9v finddup -l -d $base/backup }