It is not hard to write such script. I suggest a better solution called snapshots. rsnapshot is a filesystem snapshot utility. It can take incrementalsnapshots of local and remote filesystems for any number of machines. You can backup those directories to another harddisk on same system or another server. You will also get hourly, montly, daily and weekly snapshots. Can you tell us more about your Linux distro?
__________________
Vivek Gite
Linux Evangelist
 Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
 Always use CODE tags for posting system output and commands!
 Do you run a Linux? Let's face it, you need help
|