As SeijiSensei said, rsync is THE tool for mirroring files between 2 locations.
Unix systems have been around a very long time. There are solutions, well-tested and optimized, for Linux that do pretty much everything.
rsync is one of those commands where seeing a few examples can clarify exactly how to use it. The general way to mirror entire directories is this:
Code:
$ rsynz -avz SOURCE TARGET
If you need more exact examples, google "rsync examples".
rsync is one of the top 5 greatest Unix inventions of all time, IMHO.
- Unix
- ssh (including scp, sftp, sshfs, and 20 other tools)
- rsync
- dd
Almost every backup tool on all Unix systems are based off rsync and ssh, for example. rsync is amazing.
Bookmarks