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: spullara on Feb 17, '10 09:43:28AM

I'd use rsync instead just in case you modify the originals down the line:

cp -npRv "/Volumes/LocalUSB/Photos/" "/Volumes/RemoteUSB/Photos/"

becomes

rsync --progress -av /Volumes/LocalUSB/Photos /Volumes/RemoteUSB

--progress shows you progress as it runs, -av enables all the options for backups. If you add in --delete it will remove files that you deleted from the source directory. Rsync will also work remotely over ssh if need be. Though you don't necessarily need it, the latest version of rsync is even better and you can install that with macports.

---
"The messiness cannot go into the program; it piles up around the programmer." -- Ellen Ullman, Close to the Machine



[ Reply to This | # ]