* [Comm] rsync и синхронизация репозитария
@ 2005-04-20 13:48 Olvin
2005-04-20 13:57 ` Andriy Dobrovol's'kii
0 siblings, 1 reply; 4+ messages in thread
From: Olvin @ 2005-04-20 13:48 UTC (permalink / raw)
To: community
Есть ли из подписчиков такие, кто сидит на канале 64K (входящий) и
использует сабжевую связку?
Я пробовал:
rsync -vvctrP --delete \
rsync.altlinux.org::ALTLinux/Sisyhus/files/noarch/RPMS/ \
/Data/ALTLinux/Sisyhus/files/noarch/RPMS
После получения списка файлов и проверки контрольных сумм уже имеющихся
файлов говорит, что возникла ошибка в протоколе (#12) и прекращает
работу. С другими серверами пробовал - один чёрт.
Подскажите жизнеспособную комбинацию аргументов.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] rsync и синхронизация репозитария
2005-04-20 13:48 [Comm] rsync и синхронизация репозитария Olvin
@ 2005-04-20 13:57 ` Andriy Dobrovol's'kii
2005-04-20 16:47 ` [Comm] " Michael Shigorin
0 siblings, 1 reply; 4+ messages in thread
From: Andriy Dobrovol's'kii @ 2005-04-20 13:57 UTC (permalink / raw)
To: community
Olvin wrote:
> Есть ли из подписчиков такие, кто сидит на канале 64K (входящий) и
> использует сабжевую связку?
> Я пробовал:
>
> rsync -vvctrP --delete \
> rsync.altlinux.org::ALTLinux/Sisyhus/files/noarch/RPMS/ \
> /Data/ALTLinux/Sisyhus/files/noarch/RPMS
>
> После получения списка файлов и проверки контрольных сумм уже имеющихся
> файлов говорит, что возникла ошибка в протоколе (#12) и прекращает
> работу. С другими серверами пробовал - один чёрт.
>
> Подскажите жизнеспособную комбинацию аргументов.
Было дело, сидел. Качал. Работало.
RSYNCARGS="-avut --partial --timeout=$TMOUT1 --delete"
Как-то так...
--
Rgrds,
Andriy
*********************************************************************
email: dobr at iop dot kiev dot ua Kyiv, Ukraine
Phone: (380-44) 525-7824 Department of Gas Electronics
Fax: (380-44) 525-2329 Institute of Physics of NASU
*********************************************************************
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Comm] Re: rsync и синхронизация репозитария
2005-04-20 13:57 ` Andriy Dobrovol's'kii
@ 2005-04-20 16:47 ` Michael Shigorin
2005-04-21 10:05 ` Andriy Dobrovol's'kii
0 siblings, 1 reply; 4+ messages in thread
From: Michael Shigorin @ 2005-04-20 16:47 UTC (permalink / raw)
To: community
[-- Attachment #1.1: Type: text/plain, Size: 271 bytes --]
On Wed, Apr 20, 2005 at 04:57:05PM +0300, Andriy Dobrovol's'kii wrote:
> RSYNCARGS="-avut --partial --timeout=$TMOUT1 --delete"
Где TMOUT1=500? Тогда attached. :)
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
[-- Attachment #1.2: rsync-all.sh --]
[-- Type: text/plain, Size: 1440 bytes --]
#!/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 Mozilla OpenOffice Daedalus"
#LIST="updates Sisyphus Mozilla Daedalus people/shrek"
LIST="updates Sisyphus backports Mozilla Daedalus"
#LIST="updates"
RSYNC=/usr/bin/rsync
RSYNCARGS="-rltgoDuz --partial --timeout=$TMOUT1 --delete --delete-after --exclude='*/2.0/*"
#RSYNCARGS="-rltgoDuz --partial --timeout=$TMOUT1 --delete "
RSHOME=~/rsync
MAINTAINER="root+lazy@localhost"
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 $FLAG
}
rm -f $LOCK
date >> $LOG
done
nice symlinks -dr $DESTROOT >/dev/null
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Comm] Re: rsync и синхронизация репозитария
2005-04-20 16:47 ` [Comm] " Michael Shigorin
@ 2005-04-21 10:05 ` Andriy Dobrovol's'kii
0 siblings, 0 replies; 4+ messages in thread
From: Andriy Dobrovol's'kii @ 2005-04-21 10:05 UTC (permalink / raw)
To: community
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Michael Shigorin wrote:
| On Wed, Apr 20, 2005 at 04:57:05PM +0300, Andriy Dobrovol's'kii wrote:
|
|>RSYNCARGS="-avut --partial --timeout=$TMOUT1 --delete"
|
|
| Где TMOUT1=500? Тогда attached. :)
|
|
|
|
-
------------------------------------------------------------------------
|
| #!/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 Mozilla OpenOffice Daedalus"
| #LIST="updates Sisyphus Mozilla Daedalus people/shrek"
| LIST="updates Sisyphus backports Mozilla Daedalus"
| #LIST="updates"
| RSYNC=/usr/bin/rsync
| RSYNCARGS="-rltgoDuz --partial --timeout=$TMOUT1 --delete
- --delete-after --exclude='*/2.0/*"
| #RSYNCARGS="-rltgoDuz --partial --timeout=$TMOUT1 --delete "
| RSHOME=~/rsync
| MAINTAINER="root+lazy@localhost"
|
| 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 $FLAG
| }
| rm -f $LOCK
| date >> $LOG
| done
|
| nice symlinks -dr $DESTROOT >/dev/null
|
Не, у меня он был тогда значительно больше... :)
А так, ты правильно определил первоисточник... :)
- --
Rgrds,
Andriy
*********************************************************************
email: dobr at iop dot kiev dot ua Kyiv, Ukraine
Phone: (380-44) 525-7824 Department of Gas Electronics
Fax: (380-44) 525-2329 Institute of Physics of NASU
*********************************************************************
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFCZ3sDYy1tb7+AynYRAt66AJ4+3RD2nNZ5zM9nRY2EgsRLGd98egCgp0/N
eMk+n5loHKdsNOsLxnnjsWM=
=8mEB
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-04-21 10:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-20 13:48 [Comm] rsync и синхронизация репозитария Olvin
2005-04-20 13:57 ` Andriy Dobrovol's'kii
2005-04-20 16:47 ` [Comm] " Michael Shigorin
2005-04-21 10:05 ` Andriy Dobrovol's'kii
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git