From d45b6f2ab1c178c6a889173ca98a5f1ca640ff72 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Sun, 7 Jul 2013 01:07:59 +0200 Subject: [PATCH] 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. --- scripts/debian/sync-dd | 2 ++ 1 file changed, 2 insertions(+) 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 \ -- 2.39.5