X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=scripts%2Fdebian%2Fsync-dd;h=405f06c87b5cfc9f5153993f5089131bf21b6cd8;hb=3c93b7d0ad5cbc7d51cf2fbb934cee027c262b71;hp=7022a5bf9f5e8a8b9a45d8376324eac3199e04f9;hpb=fb5855be7cecad423390fcc07d931c4caeabb986;p=dak.git diff --git a/scripts/debian/sync-dd b/scripts/debian/sync-dd index 7022a5bf..405f06c8 100755 --- a/scripts/debian/sync-dd +++ b/scripts/debian/sync-dd @@ -1,6 +1,6 @@ #! /bin/bash -# Copyright (C) 2011, Joerg Jaspert +# Copyright (C) 2011,2013, Joerg Jaspert # Copyright (C) 2012, Ansgar Burchardt # # This program is free software; you can redistribute it and/or @@ -74,12 +74,14 @@ if lockfile -r3 "${lockfile}"; then ${extra1} \ --exclude "/backup/*.xz" \ --exclude "/backup/dump*" \ + --exclude "/build-queues/" \ --exclude "/database/*.db" \ --exclude ".da-backup.trace" \ --exclude "lost+found" \ --exclude "/lock/" \ --exclude "/mirror/" \ --exclude "/morgue/" \ + --exclude "/queue/bts_version_track/" \ --exclude "/queue/unchecked/" \ --exclude "/s3kr1t" \ --exclude "/scripts/s3kr1t" \ @@ -103,6 +105,18 @@ 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