]> git.decadent.org.uk Git - dak.git/blobdiff - config/debian/dinstall.functions
we do want -n1, not -n16. we want as many parallel xz as we can
[dak.git] / config / debian / dinstall.functions
index 508e60e6435b7016143853b31bd0119b623b1cdd..dbbf30a8702b415701e62645e8dc43f9a86f11bf 100644 (file)
@@ -440,7 +440,7 @@ function mirror() {
     echo "Running on host: $(hostname -f)" >> ${TRACEFILE}
     echo "Archive serial: ${SERIAL}" >> ${TRACEFILE}
     cd ${mirrordir}
-    rsync -aH --link-dest ${ftpdir} --delete --delete-after --ignore-errors ${ftpdir}/. .
+    rsync -aH --link-dest ${ftpdir} --delete --delete-after --delete-excluded --exclude Packages.*.new --exclude Sources.*.new  --ignore-errors ${ftpdir}/. .
 }
 
 function expire() {
@@ -527,10 +527,10 @@ function compress() {
     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 -print0 \
-        | xargs --no-run-if-empty -0 -P4 -n16 xz -9v
+        | xargs --no-run-if-empty -0 -P4 -n1 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
+        | xargs --no-run-if-empty -0 -P4 -n1 xz -9v
     finddup -l -d $base/backup
 }