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: ScottTFrazer on Feb 17, '10 09:10:36AM
The only problem with your solution is that it won't recognize that a source file has changed, which makes it a bad backup solution for files that may be edited.

the rsync command you are looking for would look like this:

rsync -a -E -v /Volumes/LocalUSB/Photos/ /Volumes/RemoteUSB/Photos/
If you're afraid that you'll blow something up with rsync, remember the "--dry-run" option which will output what the command would do, without actually changing any files.

You might also consider adding the "-P" command which would keep partial files in the event of a failure (not very useful) but also shows the progress of each copy as it happens. I wouldn't use this option in a cron job though

[ Reply to This | # ]