this my scenario: all commands are local rsync -a file1 file2 cp -l file2 file3 chown some_other_existing_user:group file1 rsync -a file1 file2 now file2 and file3 are both hard links and permissions are shared in both, versus rsync creating new file2. Desired behavior is to create new file if permissions have changed versus changing file2 in place. Is there any workaround for this. Thank you very much, Farid __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
On Sun, Feb 06, 2005 at 10:23:21PM -0800, Alex Farid Aliev wrote:> Desired behavior is to create new file if permissions > have changed versus changing file2 in place.Rsync doesn't have any logic to try to deal with hard-links from files inside of the transfer to files outside of the transfer. If you're doing some kind of a backup, check into the --link-dest option: you would transfer into an empty hierarchy and let rsync create the hard- links for identical files (in both attributes and content). ..wayne..
Maybe Matching Threads
- [PATCH v2] xfstests: btrfs/316: cross-subvolume sparse copy
- Doubts on incremental backup and command repetition
- [LLVMdev] Redefining function
- [PATCH v3] xfstests: btrfs/316: cross-subvolume sparse copy
- [LLVMdev] Compile units in debugging intrinsics / globals