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: randalla on Feb 17, '10 09:40:02AM

I prefer rsync.

rsync -avE /source/dir/ /backup/dir/

Maybe it's because I want changed files to be copied instead of just new files.

Throw a --delete in there incase you want to remove stuff that has been removed on the source:

rsync -avE --delete /source/dir/ /backup/dir/

The above is the built in rsync. If you are using the rsync from macports, like me, it would be:

rsync -avX --delete /source/dir/ /backup/dir/

The 10.6 installed version is 2.6.9. The macports version (that I have installed...) is 3.0.6.


Xaren Development

[ Reply to This | # ]