[Bug 7870] --link-dest=${SRC} ${SRC} ${DST} can be smarter

2012-01-20 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=7870 --- Comment #1 from Brian J. Murrell 2012-01-20 23:20:36 UTC --- Hi. I filed bug 8712 as I was not sure if my situation there is the same as you are describing here. Could you take a look at 8712 and see if that describes what you are referring t

[Bug 8712] New: --link-dest doesn't work if target file exists (but needs updating)

2012-01-20 Thread samba-bugs
https://bugzilla.samba.org/show_bug.cgi?id=8712 Summary: --link-dest doesn't work if target file exists (but needs updating) Product: rsync Version: 3.0.7 Platform: All OS/Version: Linux Status: NEW Severi

Re: --link-dest doesn't work if target file exists (but needs updating)

2012-01-20 Thread Brian J. Murrell
On 12-01-20 06:01 PM, Kevin Korb wrote: > Someone has requested it: > https://bugzilla.samba.org/show_bug.cgi?id=7870 I'm not really sure that is the same bug. Maybe it is. Not convinced though. I guess I can file my own bug and ask 7870's OP to see if it's the same issue. > But is seems like

Re: --link-dest doesn't work if target file exists (but needs updating)

2012-01-20 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Someone has requested it: https://bugzilla.samba.org/show_bug.cgi?id=7870 But is seems like an rm -rf and a cp -al would do the same thing. On 01/20/12 17:56, Brian J. Murrell wrote: > On 12-01-20 05:42 PM, Kevin Korb wrote: >> Am I understanding ri

Re: --link-dest doesn't work if target file exists (but needs updating)

2012-01-20 Thread Brian J. Murrell
On 12-01-20 05:42 PM, Kevin Korb wrote: > Am I understanding right that your source and your link-dest are > actually the same path? Yes they are! > If so what are you trying to do that wouldn't > be accomplished with a simple 'cp -l'? Not all of the files in source and dest are supposed to be t

Re: --link-dest doesn't work if target file exists (but needs updating)

2012-01-20 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am I understanding right that your source and your link-dest are actually the same path? If so what are you trying to do that wouldn't be accomplished with a simple 'cp -l'? Also, when using --link-dest the target is treated differently. Normally the

--link-dest doesn't work if target file exists (but needs updating)

2012-01-20 Thread Brian J. Murrell
Using: # rsync --version rsync version 3.0.7 protocol version 30 Copyright (C) 1996-2009 by Andrew Tridgell, Wayne Davison, and others. Web site: http://rsync.samba.org/ Capabilities: 64-bit files, 64-bit inums, 32-bit timestamps, 64-bit long ints, socketpairs, hardlinks, symlinks, IPv6,