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: jayhem on Feb 17, '10 03:24:37PM

I'd say the 'cp' command is indeed perfect for that. It's funny how many people don't read the requirements (the dng's will never change) and over-engineer their solutions (and don't check existing comments).

While I agree that rsync is way better for keeping things in sync, being lazy on the command line and would probably type the shortest possible command, something like:

> cp -Rnpv /Volumes/LocalUSB/Photos /Volumes/RemoteUSB

this will simply copy the local Photos folder itself (with all its contents) to RemoteUSB, no point worrying about all the end-slashes, and double quotes aren't necessary if the path doesn't contain spaces (although in a shell script it's important to always enclose the paths between quotes)


Note about the RAW's: Even if you want to keep the originals untouched, you might want to add or change some of the embedded EXIF, IPTC or XMP metadata in order to better manage your digital image collection. There's even an awesome command-line tool for that: exiftool (http://www.sno.phy.queensu.ca/~phil/exiftool/). Of course, then you will have to use rsync ;)

hope this helps
JM



[ Reply to This | # ]