Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'How to use 'cp' as a simple but reliable backup tool' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
How to use 'cp' as a simple but reliable backup tool
Authored by: sclough on Feb 17, '10 10:18:50AM

This is exactly what rsync is made for and I'd wager it would be faster than cp on this. The rsync command you'd want if you want to keep them exactly in sync is:

rsync -avrze --delete "/Volumes/LocalUSB/Photos/" "/Volumes/RemoteUSB/Photos/"

If you just want to move the new ones, but don't care about deleting off the remote usb files that have been deleted from local usb, you'd just remove the --delete option.



[ Reply to This | # ]
How to use 'cp' as a simple but reliable backup tool
Authored by: jayhem on Feb 17, '10 03:30:53PM

actually, rsync is slower than cp. The fastest way is to use cp combined with 'tar'



[ Reply to This | # ]