Friday, June 29, 2007

synchronize files between laptop and usb disk

following is the command i used to synchronize music files on my laptop and external usb disk. /share/music/files/ is the path on my laptop.

rsync -avzC /share/music/files/ /media/usbdisk/music/files
-a == archive
-v == verbose
-z == use compression while transferring files
-C == exclude common CVS files and directories
trailing / on a path means to only copy the contents of that path

No comments: