From: Andrew Fefilov <faqa@blok-caf.ru>
To: community@altlinux.ru
Subject: Re: [Comm] rsync и unsafe ссылки
Date: Wed, 15 Dec 2004 14:46:12 +0400
Message-ID: <20041215104612.GA4490@faa.lan.blok-caf.ru> (raw)
In-Reply-To: <1495486337.20041215130022@generation.ru>
On Wed, Dec 15, 2004 at 01:00:22PM +0500, Yakov Hrebtov wrote:
> Здравствуйте, Andrew.
>
> Вы писали 15 декабря 2004 г., 12:55:07:
>
> AF> On Wed, Dec 15, 2004 at 11:37:54AM +0500, Yakov Hrebtov wrote:
> >> Здравствуйте!
> >>
> >> Подскажите, как с помощью rsync копировать unsafe (разованные) ссылки?
> >> Проблема в следующем:
> >> Я синхронизирую дерево каталогов с одной машины на другую. На source
> >> машине rsync сервер, на destination -- rsync клиент. В
> >> Синхронизируемом дереве каталогов есть симв. ссылки, указывающие за
> >> пределы синхронизируемого дерева. В итоге после синхронизации этих
> >> ссылок нет вообще. Мне же нужно чтоб после синхронизации на destination
> >> эти ссылки присутствовали, но были разорванными. Сделать мне этого не
> >> удается.
> >> Ситуацию, конечно, можно смоделировать по-другому -- на одной машине.
> >> Например создать в каталоге ./src изначально разорванную ссылку и попробовать
> >> rsync -a ./src ./dst
> >> в итоге в dst этой ссылки нет...
> >>
> >> Странно что есть опция --safe-links и нет обратной ей (или я
> >> протормозил и не нашел)
>
> AF> Из man rsync:
> AF> --copy-unsafe-links copy links outside the source tree
> AF> Оно ? Это на М2.2. Сам не пробовал.
> Нет - это не оно (насколько я понял по кр. мере).
> Из man rsync:
> --copy-unsafe-links
> This tells rsync to copy the referent of symbolic links that
> point outside the copied tree.
> Т.е. копируется то, куда указывает ссылка, а не сама ссылка.
Вообщем, чего-то я не допонял. Вот что у меня:
[faqa@faa tmp]$ ls -l test-rsync/
итого 0
-rw-r--r-- 1 faqa users 0 Дек 15 14:32 test.file
lrwxrwxrwx 1 faqa users 11 Дек 15 14:38 test-out-rsync ->
../test-out
Т.е. ссылка test-out-rsync сслыается на директорию test-out, которая
находится вне исходной директории test-rsync. Дальше:
[faqa@faa tmp]$ rsync -av test-rsync /opt/backup/distrib/tmp/
building file list ... done
test-rsync/
test-rsync/test-out-rsync -> ../test-out
test-rsync/test.file
wrote 177 bytes read 36 bytes 426.00 bytes/sec
total size is 11 speedup is 0.05
[faqa@faa tmp]$ l /opt/backup/distrib/tmp/test-rsync/
итого 8
-rw-r--r-- 1 faqa users 0 Дек 15 14:32 test.file
drwxr-xr-x 2 faqa users 4096 Дек 15 14:38 ./
lrwxrwxrwx 1 faqa users 11 Дек 15 14:41 test-out-rsync ->
../test-out
drwxr-xr-x 3 faqa users 4096 Дек 15 14:41 ../
Т.е. получили разорванную ссылку в destination. Вы этого хотите?
--
С уважением,
Фефилов Андрей.
next prev parent reply other threads:[~2004-12-15 10:46 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-15 6:37 Yakov Hrebtov
2004-12-15 7:55 ` Andrew Fefilov
2004-12-15 8:00 ` Re[2]: " Yakov Hrebtov
2004-12-15 10:46 ` Andrew Fefilov [this message]
2004-12-15 11:06 ` Yakov Hrebtov
2004-12-15 11:20 ` Andrew Fefilov
2004-12-15 11:41 ` Re[2]: " Yakov Hrebtov
2004-12-15 11:44 ` [Comm] " Michael Shigorin
2004-12-15 11:51 ` Yakov Hrebtov
2004-12-15 12:20 ` Michael Shigorin
2004-12-15 12:32 ` Yakov Hrebtov
2004-12-15 12:34 ` Michael Shigorin
2004-12-15 12:50 ` Yakov Hrebtov
2004-12-15 12:52 ` Michael Shigorin
2004-12-15 13:00 ` Yakov Hrebtov
2004-12-15 13:06 ` Michael Isachenkov
2004-12-15 18:34 ` Michael Shigorin
2004-12-16 4:30 ` Re[2]: " Yakov Hrebtov
2004-12-16 7:27 ` Michael Isachenkov
2004-12-17 19:28 ` Michael Shigorin
2004-12-20 4:51 ` Yakov Hrebtov
2004-12-20 8:06 ` Michael Shigorin
2004-12-20 8:26 ` Yakov Hrebtov
2004-12-15 13:19 ` Mike Lykov
2004-12-16 4:10 ` Re[2]: " Yakov Hrebtov
2004-12-17 19:26 ` [Comm] [JT] " Michael Shigorin
2004-12-15 12:08 ` [Comm] " Andrew Fefilov
2004-12-15 12:25 ` Re[2]: " Yakov Hrebtov
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=20041215104612.GA4490@faa.lan.blok-caf.ru \
--to=faqa@blok-caf.ru \
--cc=community@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 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