From: Ansgar Burchardt Date: Sat, 6 Jul 2013 23:07:59 +0000 (+0200) Subject: sync-dd: exclude .nobackup X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d45b6f2ab1c178c6a889173ca98a5f1ca640ff72;p=dak sync-dd: exclude .nobackup 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. --- diff --git a/scripts/debian/sync-dd b/scripts/debian/sync-dd index 1c9b95b6..4fa3e87e 100755 --- a/scripts/debian/sync-dd +++ b/scripts/debian/sync-dd @@ -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 \