Steve wrote:
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.
I know everybody's been recommending rsync, but I might suggest that you also look at unison (http://www.cis.upenn.edu/~bcpierce/unison/index.html - it's also included with SuSE). I've found it very easy to use.
Steve
Going back years -- I used unison, then it developed a problem around about a glibc change. I started using rsync when it first came out and have used it ever since, though unison seems to have been back on track. I'd have no qualms using either, they're both excellent. Some suggestions were to use tools that depended on dump, bad choice as dump has been stagnant for years, it only does ext2 and may be ext3. As the guy says, it's a matter of which tools and where to download them from. Some pundits write that the weakness of Linux is that there are too many applications that do the same thing, which leads to confusion, but I say only the confused get further confused, you can successfully give verbal directions to a blind person, you stand no chance with a confused person. Regards Sid. -- Sid Boyce .... Hamradio G3VBV and keen Flyer =====LINUX ONLY USED HERE=====