Re: [Dorset] Copying directories between discs

2015-07-21 Thread Ralph Corderoy
Hi John, > -a includes -r so you don't need both > -v gives you more output. > -c makes it checksum the files rather than looking only at file size ... > -H include hard links > -A include ACLS (extended file permissions) > -X include xattrs My mnemonic list of options to start with has grown to

Re: [Dorset] Copying directories between discs

2015-07-21 Thread Simon P Smith
On 21/07/15 13:07, John Carlyle-Clarke wrote: > > So: > *rsync -avHAX sda3/home sdb4/home *will copy the home directory itself to > sdb4/home/home > *rsync -avHAX sda3/home/ sdb4/home *will copy the *contents* of the home > directory to sdb4/home > > I expect the latter is what you want. > If t

Re: [Dorset] Copying directories between discs

2015-07-21 Thread Victor Churchill
( crossing with John's post, and largely consistent with it... :-) Ralph's right that you can probably use 'cp' rather than rsync, but it's not a great overhead and would mean that you could then do the same another time to keep b up to date with a. You need to have the 'recursive' option set for

Re: [Dorset] Copying directories between discs

2015-07-21 Thread John Carlyle-Clarke
Hi Clive- I find with commands like Rsync I remember recipes and use them all the time. I used to use *rsync -avcz *for everything ... -a includes -r so you don't need both -v gives you more output. -c makes it checksum the files rather than looking only at file size and datestamp, so is safer bu

Re: [Dorset] Copying directories between discs

2015-07-21 Thread Ralph Corderoy
Hi Clive, > sudo rsync -r -a sda3/home sdb4/home Since source and destination are on the same machine, and you're not trying to update an old copy to match an original that's since changed, you may as well use cp(1). Probably, sudo cp -a --preserve=all --sparse=always /home /mnt/sdb4/home

[Dorset] Copying directories between discs

2015-07-21 Thread C Wills
Please can anyone confirm the following statement as I've not used rsync before. sudo rsync -r -a sda3/home sdb4/home I'm trying to copy the Home folder (on sda3) containing 2 users onto another disc (sdb4) mounted in the same computer (ie not remote). I want to keep all permissions on all f