ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Vladimir Karpinsky <vkarpinsky@mail.ru>
To: community@lists.altlinux.org
Subject: Re: [Comm] Синхронизация каталогов.
Date: Wed, 08 Feb 2012 13:03:41 +0400
Message-ID: <4F323A6D.4030708@mail.ru> (raw)
In-Reply-To: <1328616024.10321.2.camel@localhost.localdomain>

07.02.2012 16:00, gBopHuk_alt пишет:
> Существует cync2, вроде заточенный под такие нужды rsync, пока сам
> разбираюсь с ней. Если найдёте работающий вариант с rsync, выложите
> пожалуйста, инструкцию как делали.

Выше по треду Михаил Шигорин уже озвучил команду, в моём случае надо 
добавить удаление файлов несуществующих в исходном каталоге. Стало быть 
получается так:

rsync -Pav --delete /path/source_dir /path.target_dir
или
rsync -Pav --delete-after /path/source_dir /path.target_dir

-P и -v потом можно будет убрать, добавить наоборот -q, а также по вкусу 
добавить -o, -g, --stats, --partial --log-file= и т.п.

Синхронизация каталогов объёмом более 50 ГБ и большим количеством 
файлов-подкаталогов с двумя различающимися файлами заняло около 4 минут. 
Собственно файлы скопировались почти мгновенно, практически всё время занял 
процесс сравнения.

-- 
	С уважением,
		Владимир.


  reply	other threads:[~2012-02-08  9:03 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-05 11:08 Vladimir Karpinsky
2012-02-05 11:12 ` Dmitry Chistikov
2012-02-05 11:24   ` Vladimir Karpinsky
2012-02-05 11:38     ` Vladimir Karpinsky
2012-02-05 12:04     ` Dmitry Chistikov
2012-02-06 11:36     ` Michael Shigorin
2012-02-06 12:55       ` Dmitry Derjavin
2012-02-06 13:11       ` Vladimir Karpinsky
2012-02-07 12:00 ` gBopHuk_alt
2012-02-08  9:03   ` Vladimir Karpinsky [this message]
2012-02-08 17:08     ` gBopHuk_alt
2012-02-08 17:34       ` Vladimir Karpinsky

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=4F323A6D.4030708@mail.ru \
    --to=vkarpinsky@mail.ru \
    --cc=community@lists.altlinux.org \
    /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 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