[TriLUG] copying files
Alan Porter
porter at trilug.org
Tue Jun 19 21:52:05 EDT 2012
The other reason that I like 'rsync' over some sort of 'tar -cf - $(find -mtime 5) | whatever' is that the rsync solution is resilient, recovers from failures.
That is, if you had a cron job that ran this copy every 5 minutes, and for whatever reason one of the copies failed, the find/cp command would not recover the missed files, while the rsync WOULD make up for lost copies.
I sometimes even use rsync for local copies:
rsync -av /src/dir/ /dest/dir/ <-- trailing slashes important
The remote version would be:
rsync -av /src/dir/ user at host:/dest/dir/
-- # ɹǝʇɹoԀ uɐl∀
More information about the TriLUG
mailing list