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

[dak/master] include backports archive in (pool) sync



---
 scripts/debian/sync-dd |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/scripts/debian/sync-dd b/scripts/debian/sync-dd
index 7022a5b..2a7dcb7 100755
--- a/scripts/debian/sync-dd
+++ b/scripts/debian/sync-dd
@@ -1,6 +1,6 @@
 #! /bin/bash
 
-# Copyright (C) 2011, Joerg Jaspert <joerg@debian.org>
+# Copyright (C) 2011,2013, Joerg Jaspert <joerg@debian.org>
 # Copyright (C) 2012, Ansgar Burchardt <ansgar@debian.org>
 #
 # This program is free software; you can redistribute it and/or
@@ -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
-- 
1.7.2.5


Reply to: