]> git.decadent.org.uk Git - dak.git/commitdiff
sync-dd: exclude .nobackup
authorAnsgar Burchardt <ansgar@debian.org>
Sat, 6 Jul 2013 23:07:59 +0000 (01:07 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sat, 6 Jul 2013 23:07:59 +0000 (01:07 +0200)
On the mirror a .nobackup file is present to exclude the mirror copy
from backups. Exclude it so that rsync will not delete the file.

scripts/debian/sync-dd

index 1c9b95b68ad0f4c1963d8d7dfd58d93040c4d48a..4fa3e87e0c8b04bf87d6b0cf84f6773db89da98f 100755 (executable)
@@ -69,6 +69,7 @@ trap cleanup EXIT TERM HUP INT QUIT
 if lockfile -r3 "${lockfile}"; then
     rsync -aH -B8192 \
        ${extra1} \
+        --exclude "/.nobackup" \
         --exclude "/backup/*.xz" \
        --exclude "/backup/dump*" \
         --exclude "/build-queues/" \
@@ -92,6 +93,7 @@ if lockfile -r3 "${lockfile}"; then
    # command="rsync --server -lHogDtpre.iLsf -B8192 --timeout=3600 --delete-after . /srv/ftp-master.debian.org/"
 
    rsync -aH -B8192 \
+       --exclude "/.nobackup" \
        --exclude mirror \
        --exclude rsync/ \
        --exclude lost+found \