Re: cannot reach syncproxy.backports.org
Hello Axel,
Axel Beckert <beckert@phys.ethz.ch> writes:
> Our mirror didn't have any obvious problems the last few syncs
Sorry, my fault. I ommitted a RSYNC_PROXY setting inbetween two script
versions. Now it's working fine. FYI I'm including my changes to
sync-bpo.sh below.
Yours
Karsten
%-
$ diff -u sync-bpo.sh.orig sync-bpo.sh
--- /home/kheymann/sync-bpo.sh 2008-01-09 09:53:49.000000000 +0100
+++ sync-bpo.sh 2008-01-09 09:54:01.000000000 +0100
@@ -1,7 +1,8 @@
#! /bin/sh
#
# sync-bpo.sh: 2 pass mirror script for backports.org
-# Copyright (C) 2005 Goswin von Brederlow <brederlo@informatik.uni-tuebingen.de>
+# Copyright (C) 2008 Karsten Heymann <karsten.heymann@telecolumbus.de>
+# 2005 Goswin von Brederlow <brederlo@informatik.uni-tuebingen.de>
# 2004 Mattias Wadenstein <maswan@debian.org>
#
# This program is free software; you can redistribute it and/or
@@ -20,13 +21,16 @@
#
# $Id: sync-debian-amd64.sh,v 1.00 2005/05/07 17:14:41 mrvn Exp $
+# 2008-01-09: added rsync proxy support. -- Karsten Heymann
+# 2008-01-03: load options from /etc/sync-bpo.conf first. -- Karsten Heymann
# 2005-12-31: source config file based on script's name. -- Peter Palfrader
set -e
# Read config
-NAME="`basename $0`"
-. $HOME/.$NAME.conf
+NAME="`basename $0 .sh`"
+[ -r "/etc/$NAME.conf" ] && . /etc/$NAME.conf
+[ -r "$HOME/.$NAME.conf" ] && . $HOME/.$NAME.conf
# Provide default options for anything missing
######################################################################
@@ -38,6 +42,7 @@
RSYNC_PATH=${RSYNC_PATH:-":backports.org"}
RSYNC_USER=${RSYNC_USER:-""}
RSYNC_PASSWORD=${RSYNC_PASSWORD:-""}
+RSYNC_PROXY=${RSYNC_PROXY:-""}
TO=${TO:-"$HOME/$RSYNC_HOST"}
LOG=${LOG:-"$HOME/mirror.log"}
MAILTO=${MAILTO:-"root@localhost"}
@@ -62,6 +67,7 @@
cd "$HOME"
umask 022
export RSYNC_PASSWORD
+export RSYNC_PROXY
# Check to see if another sync is in progress
if $LOCKFILE >> "$LOG" 2>&1 -! -l 43200 -r 0 "$TO/$LOCK"; then
%-
--
Karsten Heymann <karsten.heymann@telecolumbus.de>
Systemadministrator IP
Tele Columbus Kundenservice GmbH
Schillerstraße 58
10627 Berlin
Telefon: +49.30.3388-1981
Telefax: +49.30.3388-91981
E-Mail: karsten.heymann@telecolumbus.de
Sitz der Gesellschaft: Peiner Straße 8, 30519 Hannover
Geschäftsführer: Robert E. Fowler III, Vorsitzender
Thomas Braun, Helmut Kohl, Dr. Hans Ulrich Lienau, Dietmar Schickel,
Markus Schmid
Amtsgericht Hannover HRB 61501
Reply to: