From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Wed, 20 Apr 2005 19:47:45 +0300 From: Michael Shigorin To: community@altlinux.ru Message-ID: <20050420164745.GR15011@osdn.org.ua> Mail-Followup-To: community@altlinux.ru References: <42665DA1.6050308@rambler.ru> <42665FB1.4010604@iop.kiev.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+jhVVhN62yS6hEJ8" Content-Disposition: inline In-Reply-To: <42665FB1.4010604@iop.kiev.ua> User-Agent: Mutt/1.4.2.1i Subject: [Comm] Re: rsync =?koi8-r?b?ySDTyc7I0s/OydrBw8nRINLF0M/aydTB0snR?= X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: community@altlinux.ru List-Id: Mailing list for ALT Linux users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2005 16:49:10 -0000 X-List-Received-Date: Wed, 20 Apr 2005 16:49:10 -0000 Archived-At: List-Archive: List-Post: --+jhVVhN62yS6hEJ8 Content-Type: multipart/mixed; boundary="7LkOrbQMr4cezO2T" Content-Disposition: inline --7LkOrbQMr4cezO2T Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 20, 2005 at 04:57:05PM +0300, Andriy Dobrovol's'kii wrote: > RSYNCARGS=3D"-avut --partial --timeout=3D$TMOUT1 --delete" =E7=C4=C5 TMOUT1=3D500? =F4=CF=C7=C4=C1 attached. :) --=20 ---- WBR, Michael Shigorin ------ Linux.Kiev http://www.linux.kiev.ua/ --7LkOrbQMr4cezO2T Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="rsync-all.sh" Content-Transfer-Encoding: quoted-printable #!/bin/sh RSYNC_RSH=3Drsh MAXATTEMPTS=3D5 TMOUT1=3D500 TMOUT2=3D15 SRCROOT=3Drsync://rsync.altlinux.ru/ALTLinux # 2003-04-15 #SRCROOT=3Drsync://ibiblio.org/Linux/distributions/altlinux # 2002-12-07 #SRCROOT=3Drsync://ftp.leo.org/ALTLinux # 2002-12-09 DESTROOT=3D~ftp/pub/Linux/ALT #LIST=3D"updates Sisyphus Mozilla OpenOffice Daedalus" #LIST=3D"updates Sisyphus Mozilla Daedalus people/shrek" LIST=3D"updates Sisyphus backports Mozilla Daedalus" #LIST=3D"updates" RSYNC=3D/usr/bin/rsync RSYNCARGS=3D"-rltgoDuz --partial --timeout=3D$TMOUT1 --delete --delete-afte= r --exclude=3D'*/2.0/*" #RSYNCARGS=3D"-rltgoDuz --partial --timeout=3D$TMOUT1 --delete " RSHOME=3D~/rsync MAINTAINER=3D"root+lazy@localhost" for mirror in $LIST; do OK=3D attempt=3D1 LOG=3D$RSHOME/rsync-$mirror.log LOCK=3D$RSHOME/lock.$mirror FLAG=3D$DESTROOT/$mirror/__SYNCING__ date >> $LOG [ -f $LOCK ] && { ps auxww | grep rsync | mail -s "OSDN: $mirror: lockfile exists" $MAINTAI= NER echo "Lockfile for $mirror exists, quitting" >> $LOG continue } trap "rm -f $LOCK; exit 1" INT touch $LOCK $FLAG while [ -z "$OK" -a $attempt -lt $MAXATTEMPTS ]; do=20 $RSYNC $RSYNCARGS $* $SRCROOT/$mirror/ $DESTROOT/$mirror \ >> $LOG 2>&1 && OK=3D1 sleep $TMOUT2 attempt=3D$(($attempt+1)) done [ -z "$OK" ] && { tail $LOG | mail -s "OSDN: $mirror trouble" $MAINTAINER } || { rm -f $FLAG } rm -f $LOCK date >> $LOG done nice symlinks -dr $DESTROOT >/dev/null --7LkOrbQMr4cezO2T-- --+jhVVhN62yS6hEJ8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFCZoexbsPDprYMm3IRAkpLAJ48uZcALcixytuhSv/KqNA65ayiUgCgrh2h TUojAg2Kr3xGPO4McUxhAd0= =BgDV -----END PGP SIGNATURE----- --+jhVVhN62yS6hEJ8--