rsync equivalent of 'cp -al' ?
Chris Dennis
cgdennis at btinternet.com
Tue Jun 18 07:39:42 MDT 2013
Hello rsync people
I thought I knew how to use rsync, but I can't work out how to use it to
do the equivalent of
cp -al dir1 dir2
where dir1 and dir2 are both local and on the same disk.
In other words I want to make dir2 a copy of dir1, with every file
hard-linked to its counterpart in dir1.
Why not just use cp? Because I want to be able to do it as a user who
has sudo permission to run rsync but not cp.
cheers
Chris
--
Chris Dennis cgdennis at btinternet.com
Fordingbridge, Hampshire, UK
More information about the rsync
mailing list