ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Nick S. Grechukh" <ngrechukh@ua.fm>
To: devel@altlinux.ru
Subject: Re: [devel] Re: sis mirroring script
Date: Tue, 11 May 2004 18:00:04 +0300
Message-ID: <200405111800.05887.ngrechukh@ua.fm> (raw)
In-Reply-To: <20040428140120.GX26609@osdn.org.ua>

В сообщении от Среда 28 Апрель 2004 17:01 Michael Shigorin написал(a):
>rsync(1) видели? ;-)
про rsync-daily:

а почему не использовать rsync -b --backup-dir=/path-to/20040510 ?
тогда daily каталоги - бэкапы файлов _ушедших_ в этот день. но будет сложно 
сформировать зеркало на произвольную дату.

я сейчас докручиваю другой вариант, когда в daily каталогах лежат файлы 
которые  _появились_ в этот день. полный сизиф генерится путем ln:

список_файлов_на_сервере | while read $blabla; do datefirst=`find $pathto 
-name "$blabla" |tailn -n 1`; ln $datefirst $pathto/current; done

- получаем в какой день файл возник и линкуем его. неслинкованными остаются  
неактуальные(на указанную дату) файлы.
имхо удобней схемы hardlink: без дополнительных движений видно, чем отличаются 
сегодняшний и завтрашний. можно даже держать каждый день как отдельную 
компоненту.

а зеркало на любую дату сгенерить не проблема если сохранить 
список_файлов_на_сервере. 

-- 
-------------------------
WBR, Nick S. Grechukh

Refractory Trading House
network administrator

  parent reply	other threads:[~2004-05-11 15:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-28 13:37 [devel] " Nick S. Grechukh
2004-04-28 14:01 ` [devel] " Michael Shigorin
2004-04-28 15:53   ` Nick S. Grechukh
2004-04-28 18:45     ` [devel] components (was: sis mirroring script) Michael Shigorin
2004-04-29  9:52       ` Nick S. Grechukh
2004-05-11 15:00   ` Nick S. Grechukh [this message]
2004-05-11 16:35     ` [devel] Re: sis mirroring script Michael Shigorin

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=200405111800.05887.ngrechukh@ua.fm \
    --to=ngrechukh@ua.fm \
    --cc=devel@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 Team development discussions

This inbox may be cloned and mirrored by anyone:

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

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


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