Re: rsync replacing symlinks without warning (resend)

2024-02-09 Thread Kevin Korb via rsync
I'm not really blaming the user. If it were up to me, -v would include -i. On 2/9/24 05:36, Andreas Gruenbacher wrote: On Sun, Feb 4, 2024 at 7:20 PM Kevin Korb via rsync wrote: rsync's -v is fairly useless. Learn to use -i instead or in addition to. Well, note that I didn't say anything

Re: rsync replacing symlinks without warning (resend)

2024-02-09 Thread Andreas Gruenbacher via rsync
On Sun, Feb 4, 2024 at 7:20 PM Kevin Korb via rsync wrote: > rsync's -v is fairly useless. Learn to use -i instead or in addition to. Well, note that I didn't say anything about the lib/ directory in that command; it's just that rsync decided to remove the symlink component from the path

Re: rsync replacing symlinks without warning (resend)

2024-02-04 Thread Kevin Korb via rsync
rsync's -v is fairly useless. Learn to use -i instead or in addition to. On 2/4/24 12:58, Andreas Gruenbacher via rsync wrote: Hello, when trying to rsync files between hosts, I ran into a surprising case in which rsync replaces a symlink with a directory, with no indication of any kind. In

rsync replacing symlinks without warning (resend)

2024-02-04 Thread Andreas Gruenbacher via rsync
Hello, when trying to rsync files between hosts, I ran into a surprising case in which rsync replaces a symlink with a directory, with no indication of any kind. In the following reproducer, rsync is called as follows: rsync --verbose --recursive --relative --delete a/./lib/modules b/

[Bug 10629] rsync follows symlinks that point to same directory / endless loop

2021-11-08 Thread just subscribed for rsync-qa from bugzilla via rsync
https://bugzilla.samba.org/show_bug.cgi?id=10629 --- Comment #2 from Kevin Korb --- Since find is one of the few utilities that actually corrects for symlink loops you can use it as a workaround. Something like: cd /source/path ; find -L . -print | rsync ... --copy-links --files-from=- ./

[Bug 10629] rsync follows symlinks that point to same directory / endless loop

2021-11-08 Thread just subscribed for rsync-qa from bugzilla via rsync
https://bugzilla.samba.org/show_bug.cgi?id=10629 Timothee Besset changed: What|Removed |Added CC||tt...@ttimo.net --- Comment #1 from

[Bug 5820] make rsync update symlinks/devices/specials atomically

2020-07-27 Thread just subscribed for rsync-qa from bugzilla via rsync
https://bugzilla.samba.org/show_bug.cgi?id=5820 Wayne Davison changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

feature request: rsync dereference symlinks on cmdline

2015-05-15 Thread Ken Chase
This post http://unix.stackexchange.com/questions/153262/get-rsync-to-dereference-symlinked-dirs-presented-on-cmdline-like-find-h explains most of what i want, but basically, looking for a find -H option to rsync. Reason is so that I can hit a source (or target!) dir in rsync by making a nice

[Bug 10629] New: rsync follows symlinks that point to same directory / endless loop

2014-05-25 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=10629 Summary: rsync follows symlinks that point to same directory / endless loop Product: rsync Version: 3.1.1 Platform: All OS/Version: Linux Status: NEW

rsync and symlinks

2009-09-01 Thread Jignesh Shah
Hi, I have one question regarding handling of symlinks in rsync. If I have /source directory in which I have 100s of sub directories of directories and each one has symlink to some directories out side the /source directory hierarchy. Does rsync follows all those symlinks and syncs the data if I

Re: rsync and symlinks

2009-09-01 Thread Carlos Carvalho
Jignesh Shah (jignesh.shah1...@gmail.com) wrote on 1 September 2009 11:30: Hi, I have one question regarding handling of symlinks in rsync. If I have /source directory in which I have 100s of sub directories of directories and each one has symlink to some directories out side the /source

Re: rsync and symlinks

2009-09-01 Thread Jignesh Shah
Thanks Carlos. ... rsync copy symlinks as symlinks What about the contents pointed by simlinks? Could you please also elaborate on Only if it's inside source. Thanks, Jignesh On Tue, Sep 1, 2009 at 8:25 PM, Carlos Carvalho car...@fisica.ufpr.brwrote: Jignesh Shah (jignesh.shah1

Re: rsync and symlinks

2009-09-01 Thread Carlos Carvalho
Jignesh Shah (jignesh.shah1...@gmail.com) wrote on 1 September 2009 22:17: Thanks Carlos. ... rsync copy symlinks as symlinks What about the contents pointed by simlinks? If they exist on the destination at the same place the symlink will point to them, otherwise they'll dangling

rsync replaces symlinks on destination

2009-02-18 Thread Laurent Raufaste
Hi, I need an option to make rsync not replace a symlink on destination, but for files. Something like --keep-links. Let's suppose I have this setup: - source-dir/source-file - destination-dir/destination-file (symlink to ../real-destination-file) - real-destination-file After doing an rync

Re: rsync replaces symlinks on destination

2009-02-18 Thread Laurent Raufaste
2009/2/18 Laurent Raufaste analo...@glop.org: Let's suppose I have this setup: - source-dir/source-file - destination-dir/destination-file (symlink to ../real-destination-file) - real-destination-file I forgot to tell that source-file and destination-file have the same name. It would look

Re: rsync replaces symlinks on destination

2007-09-04 Thread Matt McCutchen
On 9/4/07, aaa aaa aaa aaa [EMAIL PROTECTED] wrote: I keep local mirrors of slackware-current and slackware-12.0 for personal use (Slackware Linux is one of the oldest Linux distributions). My big issue is the lack of hdd free space. At the moment of the release the directory trees are

rsync replaces symlinks on destination

2007-09-03 Thread aaa aaa aaa aaa
$ cd /tmp $ echo 123 aaa $ echo 123 bbb $ ln -s bbb ccc $ ls -la aaa bbb ccc - bbb $ rsync aaa ccc $ ls -la aaa bbb ccc This example shows that symlink ccc was replaced with a regular file, which implies that during a remote sync the content of the aaa will be downloaded. However, files aaa

Re: rsync replaces symlinks on destination

2007-09-03 Thread Matt McCutchen
. If you explain more concretely what you were hoping to accomplish by having rsync follow symlinks in the destination, I might be able to suggest a better approach. Matt -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr

[Bug 2913] rsync of symlinks on =bsd needs lutimes(2) and lchmod(2)

2005-07-31 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=2913 --- Additional Comments From [EMAIL PROTECTED] 2005-07-31 03:38 --- the patch applies clean to: cvs co -D '2005-07-07 22:53:59-' which refers to the latest src rev in the patch [not knowing which tag or date to apply to].

[Bug 2913] rsync of symlinks on =bsd needs lutimes(2) and lchmod(2)

2005-07-31 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=2913 [EMAIL PROTECTED] changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|

[Bug 2913] rsync of symlinks on =bsd needs lutimes(2) and lchmod(2)

2005-07-26 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=2913 --- Additional Comments From [EMAIL PROTECTED] 2005-07-26 09:27 --- Created an attachment (id=1336) -- (https://bugzilla.samba.org/attachment.cgi?id=1336action=view) Use lchmod and lutimes, if present Please test this patch and see if

[Bug 2913] New: rsync of symlinks on =bsd needs lutimes(2) and lchmod(2)

2005-07-24 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=2913 Summary: rsync of symlinks on =bsd needs lutimes(2) and lchmod(2) Product: rsync Version: 2.6.5 Platform: All OS/Version: FreeBSD Status: NEW Severity

Re: rsync preserving symlinks on mirror

2004-06-05 Thread Wayne Davison
On Thu, Jun 03, 2004 at 01:24:30PM -0700, Wayne Davison wrote: There is one possible option I thought of. A special-case that would allow a symlink to a dir to remain untouched if the sending side was sending us a dir. I developed this option more fully and renamed it to be --keep-dirlinks.

rsync preserving symlinks on mirror

2004-06-03 Thread Keld Jørn Simonsen
Hi! I am using rsync succesfully to maintain my mirrors. I have one problem, tho. To improve speeds of my filesystems, I have created a raid 0 of 4 disks, and I place the most heavily copied disks there. The fs has subdirectories, one for each set of typically .iso files, such as Mandrakelinux

Re: rsync preserving symlinks on mirror

2004-06-03 Thread Wayne Davison
On Thu, Jun 03, 2004 at 07:23:33PM +0200, Keld J?rn Simonsen wrote: I would like to be able to just do a symlink from the original tree to the directory on the raid, Then you must either (1) tell rsync to expand all symlinks, (2) avoid having rsync copy the non-matching symlink, (3) duplicate

Re: rsync preserving symlinks on mirror

2004-06-03 Thread Keld Jørn Simonsen
On Thu, Jun 03, 2004 at 10:41:06AM -0700, Wayne Davison wrote: On Thu, Jun 03, 2004 at 07:23:33PM +0200, Keld J?rn Simonsen wrote: I would like to be able to just do a symlink from the original tree to the directory on the raid, Then you must either (1) tell rsync to expand all symlinks,

Re: rsync preserving symlinks on mirror

2004-06-03 Thread Wayne Davison
On Thu, Jun 03, 2004 at 08:54:24PM +0200, Keld J?rn Simonsen wrote: Hmm, I want to keep the symlinks in the original tree. So I think there is no way to have both: keeping the original symlinks and having my own symlinks are mutually exclusive options. Yes, and I apparently got your transfer