[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] 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 1c9b95b..4fa3e87 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 \
-- 
1.7.10.4



Reply to: