ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Andrew Fefilov <faqa@blok-caf.ru>
To: community@altlinux.ru
Subject: Re: [Comm] rsync и unsafe ссылки
Date: Wed, 15 Dec 2004 15:20:29 +0400
Message-ID: <20041215112029.GB4490@faa.lan.blok-caf.ru> (raw)
In-Reply-To: <879602617.20041215160635@generation.ru>

On Wed, Dec 15, 2004 at 04:06:35PM +0500, Yakov Hrebtov wrote:
> Здравствуйте, Andrew.
> 
> Вы писали 15 декабря 2004 г., 15:46:12:
> 
> AF> Вообщем, чего-то я не допонял. Вот что у меня:
> 
> AF> [faqa@faa tmp]$ ls -l test-rsync/
> AF> итого 0
> AF> -rw-r--r--    1 faqa     users           0 Дек 15 14:32 test.file
> AF> lrwxrwxrwx    1 faqa     users          11 Дек 15 14:38 test-out-rsync ->
> AF> ../test-out
> 
> AF> Т.е. ссылка test-out-rsync сслыается на директорию test-out, которая
> AF> находится вне исходной директории test-rsync. Дальше:
> 
> AF> [faqa@faa tmp]$ rsync -av test-rsync /opt/backup/distrib/tmp/   
> AF> building file list ... done
> AF> test-rsync/
> AF> test-rsync/test-out-rsync -> ../test-out
> AF> test-rsync/test.file
> AF> wrote 177 bytes  read 36 bytes  426.00 bytes/sec
> AF> total size is 11  speedup is 0.05
> 
> AF> [faqa@faa tmp]$ l /opt/backup/distrib/tmp/test-rsync/
> AF> итого 8
> AF> -rw-r--r--    1 faqa     users           0 Дек 15 14:32 test.file
> AF> drwxr-xr-x    2 faqa     users        4096 Дек 15 14:38 ./
> AF> lrwxrwxrwx    1 faqa     users          11 Дек 15 14:41 test-out-rsync ->
> AF> ../test-out
> AF> drwxr-xr-x    3 faqa     users        4096 Дек 15 14:41 ../
> 
> AF> Т.е. получили разорванную ссылку в destination. Вы этого хотите?
> 
> Да, я хочу чтоб было именно так!
> Только: этот пример не будет работать, если вы будете синхронизировать
> с удаленной машины.
Ну, как сказать. Вот:

[faqa@faa tmp]$ rsync -av test-rsync proxy2:tmp/
faqa@proxy2's password: 
building file list ... done
test-rsync/
test-rsync/test-out-rsync -> ../test-out
test-rsync/test.file
wrote 177 bytes  read 36 bytes  10.92 bytes/sec
total size is 11  speedup is 0.05
[faqa@faa tmp]$ ssh proxy2
faqa@proxy2's password: 
Last login: Wed Dec 15 10:46:08 2004 from faa.lan.blok-caf.ru
[faqa@proxy2 faqa]$ ls -l tmp/test-rsync/
итого 0
-rw-r--r--    1 faqa     faqa            0 Дек 15 14:32 test.file
lrwxrwxrwx    1 faqa     faqa           11 Дек 15 15:16 test-out-rsync ->
../test-out

> Чтоб понять мою проблему при синхронизации в пределах одной машины
> попробуйте удалить Ваш файл ../test-out (т.о. разорвите ссылки,
> лежащие в test-rsync/), затем удалите всё в /opt/backup/distrib/tmp/
> и заново попробуйте
> [faqa@faa tmp]$ rsync -av test-rsync /opt/backup/distrib/tmp/
> 
> после этого
> ls -l /opt/backup/distrib/tmp/test-rsync/
> 
> и увидите, что там не окажется test-out-rsync!!!
> В этом проблема.
Да, тут Вы правы. Но мне, честно говоря, не очень понятна необходимость
копирования битых ссылок.
 
> Надеюсь сейчас мне удалось объяснить.
Пока чисто умозрительно :)

-- 
С уважением,
Фефилов Андрей.


  reply	other threads:[~2004-12-15 11:20 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
2004-12-15 11:06       ` Re[2]: " Yakov Hrebtov
2004-12-15 11:20         ` Andrew Fefilov [this message]
2004-12-15 11:41           ` 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=20041215112029.GB4490@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