-if lockfile -r3 "${lockfile}"; then
- rsync -aH -B8192 \
- ${extra1} \
- --exclude "/backup/*.xz" \
- --exclude "/backup/dump*" \
- --exclude "/database/*.db" \
- --exclude ".da-backup.trace" \
- --exclude "lost+found" \
- --exclude "/lock/" \
- --exclude "/mirror/" \
- --exclude "/morgue/" \
- --exclude "/queue/unchecked/" \
- --exclude "/s3kr1t" \
- --exclude "/scripts/s3kr1t" \
- --exclude "/tmp/" \
- --delete --delete-after \
- --timeout 3600 \
- -e 'ssh -o ConnectTimeout=30 -o SetupTimeout=30' \
- /srv/ftp-master.debian.org/ "${host1}:/srv/ftp-master.debian.org/"
- # command for the remote side:
- # command="rsync --server -lHogDtpre.iLsf -B8192 --timeout=3600 --delete-after . /srv/ftp-master.debian.org/"
+if lockfile -r3 "${lockfile}" 2> /dev/null; then
+ case "${mode}" in
+ sync)
+ rsync -aH -B8192 \
+ ${extra1} \
+ --exclude "/.nobackup" \
+ --exclude "/archive/" \
+ --exclude "/backup/*.xz" \
+ --exclude "/backup/dump*" \
+ --exclude "/build-queues/" \
+ --exclude "/database/*.db" \
+ --exclude ".da-backup.trace" \
+ --exclude "/export/changelogs/tmp*/" \
+ --exclude "/ftp" \
+ --exclude "lost+found" \
+ --exclude "/lock/" \
+ --exclude "/mirror" \
+ --exclude "/morgue/" \
+ --exclude "/queue/bts_version_track/" \
+ --exclude "/queue/unchecked/" \
+ --exclude "/s3kr1t" \
+ --exclude "/scripts/s3kr1t" \
+ --exclude "/tmp/" \
+ --exclude "/public/incoming.debian.org" \
+ --exclude "/tiffani/" \
+ --delete --delete-after \
+ --timeout 3600 \
+ -e 'ssh -o ConnectTimeout=30 -o SetupTimeout=30' \
+ /srv/ftp-master.debian.org/ "${host1}:/srv/ftp-master.debian.org/"
+ # command for the remote side:
+ # command="rsync --server -lHogDtpre.iLsf -B8192 --timeout=3600 --delete-after . /srv/ftp-master.debian.org/"