From: Ivan Fedorov <ns@altlinux.ru>
To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru>
Subject: Re: [sisyphus] использование rsync
Date: Mon, 27 Dec 2004 15:03:46 +0800
Message-ID: <41CFB3D2.7090506@altlinux.ru> (raw)
In-Reply-To: <20041225171351.GA2586@nomad.office.altlinux.org>
[-- Attachment #1: Type: text/plain, Size: 944 bytes --]
Dmitry V. Levin пишет:
>>Дополнительно, из рабочего каталога во временную "корзину" уходили
>>файлы с удаленными ссылками. Это же "ядро" хорошо работает и с
>>off-line синхронизацией от CD срезов Sysiphus.
>
>
> Немного другую схему, реализующую описанную выше задачу, можно посмотреть
> на следующем примере:
>
> 1. создаём модель:
> $ mkdir src dst backup
> $ touch src/same src/new dst/old
> $ cp -a src/same dst/
> $ echo src >src/changed
> $ echo dest >dst/changed
>
> 2. готовим каталог для синхронизации:
> $ cp -al dst new
>
> 3. закачиваем:
> $ rsync -rt src/ new/ --partial --delete-after --backup --backup-dir=$PWD/backup
IMHO лучше 2 и 3 объеденить, используя ключ --link-dest у rsync.
Результат тот же, но немного быстрее, и за 1 проход...
>
> 4. анализируем результат:
> $ find backup -type f
> backup/changed
> backup/old
> $ find new -type f -links 1
> new/changed
> new/new
> $ find new -type f -not -links 1
> new/same
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-12-27 7:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-24 10:02 [sisyphus] специфика wget Vladimir
2004-12-24 10:08 ` Dmitry V. Levin
2004-12-24 11:58 ` Vladimir
2004-12-24 12:51 ` Ivan Fedorov
2004-12-24 14:19 ` Vladimir
2004-12-25 8:28 ` Ivan Fedorov
2004-12-25 17:13 ` [sisyphus] использование rsync Dmitry V. Levin
2004-12-27 7:03 ` Ivan Fedorov [this message]
2004-12-27 9:10 ` fmfm
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=41CFB3D2.7090506@altlinux.ru \
--to=ns@altlinux.ru \
--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