Copy a large amount of files to usb drive

Clive Menzies clive at clivemenzies.co.uk
Sat Oct 28 12:31:59 UTC 2006


On (28/10/06 20:01), Stephen Liu wrote:
> Hi Clive,
> 
> - snip -
> 
> > You might want to check out rsync; also I would mount the drives:
> > $ sudo mkdir /mnt/hda1 /mnt/sda1
> > 
> > $ sudo mount -t ext3(or whatever) /dev/hda1 /mnt/hda1
> > $ sudo mount -t ext3(or whatever) /dev/sda1 /mnt/sda1
> > 
> > $ rsync -av /mnt/hda1/pdf /mnt/sda
> 
> Can owner and permission be retained?  Tks.

>From man rsync:

 rsync -avz foo:src/bar /data/tmp

This would recursively transfer all files from the directory src/bar on
the machine foo into the /data/tmp/bar directory on the local  machine.
The  files  are  transferred in “archive” mode, which ensures that sym‐
bolic links, devices, attributes, permissions,  ownerships,  etc.  are
preserved  in  the transfer.  Additionally, compression will be used to
reduce the size of data portions of the transfer.

So leaving of the z just leaves out the compression.

Regards

Clive

-- 
www.clivemenzies.co.uk ...
...strategies for business






More information about the ubuntu-users mailing list