From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 29 Jul 2003 18:45:11 +0300 From: Michael Shigorin To: sisyphus@altlinux.ru Message-ID: <20030729154511.GO13660@osdn.org.ua> Mail-Followup-To: sisyphus@altlinux.ru References: <200307250944.29288.isa@mercuri.mk.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kadn00tgSopKmJ1H" Content-Disposition: inline In-Reply-To: <200307250944.29288.isa@mercuri.mk.ua> User-Agent: Mutt/1.4.1i Subject: [sisyphus] Re: sisyphus + synchro X-BeenThere: sisyphus@altlinux.ru X-Mailman-Version: 2.1.2 Precedence: list Reply-To: sisyphus@altlinux.ru List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jul 2003 15:45:18 -0000 Archived-At: List-Archive: --kadn00tgSopKmJ1H Content-Type: multipart/mixed; boundary="kR3zbvD4cgoYnS/6" Content-Disposition: inline Content-Transfer-Encoding: 8bit --kR3zbvD4cgoYnS/6 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit On Fri, Jul 25, 2003 at 09:44:29AM +0300, Alexandr R. Ogurtzoff wrote: > Поставил вчера на закачку Сизиф - всю папку, думал за ночь > вытянет. Однако видимо в момент синхронизациии Сизифа он на > одном из файлов остановился :-( См. аттач (или http://altlinux.org.ua/~mike/misc/rsync-all.txt) -- ---- WBR, Michael Shigorin ------ Linux.Kiev http://www.linux.kiev.ua/ --kR3zbvD4cgoYnS/6 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="rsync-all.sh" #!/bin/sh RSYNC_RSH=rsh MAXATTEMPTS=5 TMOUT1=500 TMOUT2=15 SRCROOT=rsync://rsync.altlinux.ru/ALTLinux # 2003-04-15 #SRCROOT=rsync://ibiblio.org/Linux/distributions/altlinux # 2002-12-07 #SRCROOT=rsync://ftp.leo.org/ALTLinux # 2002-12-09 DESTROOT=~ftp/pub/Linux/ALT #LIST="updates Sisyphus OpenOffice Mozilla" LIST="updates Sisyphus OpenOffice Mozilla" #LIST="updates" RSYNC=/usr/bin/rsync RSYNCARGS="-rltgoDu --partial --timeout=$TMOUT1 --delete --delete-after" RSHOME=~/rsync MAINTAINER=mike@osdn.org.ua for mirror in $LIST; do OK= attempt=1 LOG=$RSHOME/rsync-$mirror.log LOCK=$RSHOME/lock.$mirror FLAG=$DESTROOT/$mirror/__SYNCING__ date >> $LOG [ -f $LOCK ] && { ps auxww | grep rsync | mail -s "OSDN: $mirror: lockfile exists" $MAINTAINER 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 $RSYNC $RSYNCARGS $* $SRCROOT/$mirror/ $DESTROOT/$mirror \ >> $LOG 2>&1 && OK=1 sleep $TMOUT2 attempt=$(($attempt+1)) done [ -z "$OK" ] && { tail $LOG | mail -s "OSDN: $mirror trouble" $MAINTAINER rm -f $LOCK } || { rm -f $LOCK $FLAG } date >> $LOG done --kR3zbvD4cgoYnS/6-- --kadn00tgSopKmJ1H Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE/JpaGbsPDprYMm3IRAmMDAKC/ksmuYMUiOjmpuqrZDnLUOwIOxwCfRe5z 6rwfAqmn/fv2PXL8igHugzE= =Wcfz -----END PGP SIGNATURE----- --kadn00tgSopKmJ1H--