ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Maxim Tyurin <mrkooll@tdr.pibhe.com>
To: Sisyphus mailing list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] rsync и локальное зеркало Sisyphus'а
Date: Fri, 14 Mar 2003 12:20:26 +0200
Message-ID: <20030314102026.GG25341@mrkooll.tdr.pibhe.com> (raw)
In-Reply-To: <20030314090614.BCAEFACC@troitsky.atvc.ru>

On Fri, Mar 14, 2003 at 12:06:14PM +0300, Igor Dobryninsky wrote:
>   Добрый день.
> 
>   Когда-то давно я настроил обновление локального зеркада Sisyphus'а по
> rsync. Настроил и забыл. Обновления идут, зеркалом пользуемся - никаких,
> вроде бы, проблем.
> 
>   Сегодня полез я в это зеркало через mc и обнаружил там некоторое кол-во
> битых ссылок, в основном на более старые версии пакетов, чем текущие. Т.е.
> например в SRPMS.classic есть нормальная ссылка
> FloodGuard-1.1.0-alt4.src.rpm -> ../SRPMS.master/FloodGuard-1.1.0-alt4.src.rpm
> и битая
> FloodGuard-1.1.0-alt3.src.rpm -> ../SRPMS.master/FloodGuard-1.1.0-alt3.src.rpm
> 
>   Полез на ftp.altlinux.ru и увидел, что там этих ссылок нет, более того,
> обнаружил у себя два лишних каталога SRPMS и classic, видимо оставшиеся от
> старых добрых времён.
> 
>   Обновления делаются с опцией --delete-after, но ссылки, отсутствующие на
> ftp, но имеющиеся в лок.зеркале, не удаляются. Сначала я подумал, что они
> есть в rsync-репозитарии, удалил парочку и просинхронизировался. Они не
> появились вновь, значит их там таки нет. Тогда вопрос - почему они не
> удаляются rsync'ом самостоятельно? Причем, не удаляются только некоторые
> ссылки, основная масса удаляется.
> 
>   Команда на обновление выглядит так:
> rsync -lrtvz --partial --stats --delete-after \
> rsync.altlinux.ru::ALTLinux/Sisyphus/ \
> /var/ftp/pub/distributions/ALTLinux/Sisyphus

Я с этим тоже сталкивался. Решил с пом-ю костыля
#!/bin/bash
cd /var/ftp/Sisyphus && find -type l | while read d; do rm "$d"; done 
rsync -vrltpog --partial --progress --delete-after rsync.altlinux.ru::ALTLinux/Sisyphus /home/ALTLinux
-- 

With Best Regards, Maxim Tyurin
mailto: MrKooll@mail.ru
JID:	MrKooll@jabber.pibhe.com
			


      reply	other threads:[~2003-03-14 10:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-14  9:06 Igor Dobryninsky
2003-03-14 10:20 ` Maxim Tyurin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030314102026.GG25341@mrkooll.tdr.pibhe.com \
    --to=mrkooll@tdr.pibhe.com \
    --cc=sisyphus@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git