On Thu, Feb 09, 2006 at 02:07:10PM +0000, Barry Samuels wrote:
I have two hard drives in my computer. One is the working drive and the other is a backup copy of the working drive. The backup drive is updated once a day where files have changed.
I want to be able to run a script, at intervals, which will check all the files on the backup drive and delete those which are no longer present on the working drive.
The root directory on the working drive will, of course, be / and the root of the backup drive will be something like /mnt/point.
I'm having considerable difficulty in working out how to do this.
Some help would be very welcome from the scripting experts.
I'm pretty sure that rsync can do this for you all on a single command line.