Re: rsync equivalent of 'cp -al' ?

2013-06-18 Thread Chris Dennis
On 18/06/13 17:35, Kevin Korb wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If you make a link to a link you make a link to all of its links. The effect is the same. Good point -- I hadn't thought of it like that. Thanks for the tip. cheers Chris On 06/18/13 12:27, Chris Dennis wr

Re: rsync equivalent of 'cp -al' ?

2013-06-18 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If you make a link to a link you make a link to all of its links. The effect is the same. On 06/18/13 12:27, Chris Dennis wrote: > On 18/06/13 16:53, Kevin Korb wrote: >> -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 >> >> The -H there isn't needed

Re: rsync equivalent of 'cp -al' ?

2013-06-18 Thread Chris Dennis
On 18/06/13 16:53, Kevin Korb wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The -H there isn't needed and could only cause increased memory usage. I realise that --link-dest implies hard links between directories, but I use -H as well to maintain any hard links within the source direct

Re: rsync equivalent of 'cp -al' ?

2013-06-18 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 The -H there isn't needed and could only cause increased memory usage. On 06/18/13 11:49, Chris Dennis wrote: > On 18/06/13 15:02, Kevin Korb wrote: rsync -vai > --lin-dest=/path/to/source/ /path/to/source/ /path/to/target/ Note > that if you try it

Re: rsync equivalent of 'cp -al' ?

2013-06-18 Thread Chris Dennis
On 18/06/13 15:02, Kevin Korb wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 rsync -vai --lin-dest=/path/to/source/ /path/to/source/ /path/to/target/ Note that if you try it with relative paths the link-dest will be relative to the source not . Thank you Kevin. I'd forgotten that --link

Re: rsync equivalent of 'cp -al' ?

2013-06-18 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 rsync -vai --lin-dest=/path/to/source/ /path/to/source/ /path/to/target/ Note that if you try it with relative paths the link-dest will be relative to the source not . On 06/18/13 09:39, Chris Dennis wrote: > Hello rsync people > > I thought I knew h

rsync equivalent of 'cp -al' ?

2013-06-18 Thread Chris Dennis
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