On Wed, 15 Dec 2004, Paul W. Abrahams wrote:
I'm looking for a utility to be used for a disk-to-disk backup that recurses through a directory and does the following for each file and subdirectory:
1. If the backup file exists but the original doesn't, the backup is deleted.
2. If the backup file exists and is as new as the original, no copying is done.
3. If the backup file does not exist, the original is copied to the backup.
I could certainly write a shell script using "find" for doing this, but I wonder if there's some handy-dandy utility around that already does it for me.
man rsync.
You can use it over ssh, too.
rsync -e ssh
rsync -e 'ssh -l someuser' ....
--
Carpe diem - Seize the day.
Carp in denim - There's a fish in my pants!
Jon Nelson