X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fdinstall.functions;h=dbbf30a8702b415701e62645e8dc43f9a86f11bf;hb=ff2cf9010509cf5bb16b612991777b7f950b5065;hp=692101bc9a0de627a54f0c1b666f846efa7b5142;hpb=9b0dd2e416176b3518ce06a73bcc379342f1dbbf;p=dak.git diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions index 692101bc..dbbf30a8 100644 --- a/config/debian/dinstall.functions +++ b/config/debian/dinstall.functions @@ -209,6 +209,7 @@ function packages() { cd $configdir #apt-ftparchive generate apt.conf dak generate-packages-sources + dak contents generate } function pdiff() { @@ -439,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() { @@ -526,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 }