X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Fdebian%2Fsync-dd;h=2a7dcb7835fb54a76908d1b5924f7307485b0e07;hb=63984f2fb55d3dd16ed5ff3b3257448d1b5b225b;hp=5554623f3efd08b718472b62715d6a6af1b66a8a;hpb=01c3e3976cf234ca463ded32f09ea238251b0155;p=dak.git diff --git a/scripts/debian/sync-dd b/scripts/debian/sync-dd index 5554623f..2a7dcb78 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 @@ -70,8 +70,8 @@ trap cleanup EXIT TERM HUP INT QUIT # Also, NEVER use --delete-excluded! if lockfile -r3 "${lockfile}"; then - rsync -aH -B8192 - ${extra1} + rsync -aH -B8192 \ + ${extra1} \ --exclude "/backup/*.xz" \ --exclude "/backup/dump*" \ --exclude "/database/*.db" \ @@ -91,7 +91,7 @@ if lockfile -r3 "${lockfile}"; then # command for the remote side: # command="rsync --server -lHogDtpre.iLsf -B8192 --timeout=3600 --delete-after . /srv/ftp-master.debian.org/" - rsync -avH -B8192 \ + rsync -aH -B8192 \ --exclude mirror \ --exclude rsync/ \ --exclude lost+found \ @@ -103,6 +103,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