X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=scripts%2Fdebian%2Fsync-dd;h=30fb1d9c9db571b05a68057494f8a662adaea68b;hb=9fdbda9d482d590c92e2a0a4c92f91aaa491c6a6;hp=835442a059fd40730f66cf0fd724c83b056ffde0;hpb=d54173086cd471b74c54a1976f6a1c9e46286994;p=dak.git diff --git a/scripts/debian/sync-dd b/scripts/debian/sync-dd index 835442a0..30fb1d9c 100755 --- a/scripts/debian/sync-dd +++ b/scripts/debian/sync-dd @@ -69,15 +69,17 @@ 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/" \ --exclude "/database/*.db" \ --exclude ".da-backup.trace" \ - --exclude "/ftp/" \ + --exclude "/export/changelogs/tmp*/" \ + --exclude "/ftp" \ --exclude "lost+found" \ --exclude "/lock/" \ - --exclude "/mirror/" \ + --exclude "/mirror" \ --exclude "/morgue/" \ --exclude "/queue/bts_version_track/" \ --exclude "/queue/unchecked/" \ @@ -92,6 +94,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 \ @@ -103,18 +106,6 @@ if lockfile -r3 "${lockfile}"; then /srv/ftp.debian.org/ "${host2}:/srv/ftp.debian.org/" # command for the remote side: # command="rsync --server -lHogDtpre.iLsf -B8192 --timeout=3600 --delete-after . /srv/ftp.debian.org/" - - if [[ ${mode} == pool ]]; then - # Sync backports - rsync -aH -B8192 \ - --delete --delete-after \ - --timeout 3600 \ - -e 'ssh -o ConnectTimeout=30 -o SetupTimeout=30' \ - /srv/backports-master.debian.org/mirror/ \ - ries-sync3:/srv/backports.debian.org/htdocs/debian-backports/ - # And now tell static.debian.org that something changed - /usr/local/bin/static-update-component backports.debian.org - fi else echo "Couldn't get the lock, not syncing" exit 0