I have a server with rsync running nightly as a cron job to backup/mirror one disk to another, ie:
Code:
rsync -au /mnt/Disk-1 /mnt/Disk-3/Disk-1_backup
This works fine, but I'd like to add the --delete option so I wouldn't have to do that manually. The reason I haven't done it is fairly simple: if something happens to "Disk-1", and it becomes unmounted (perhaps unmountable), all that mirrored data will be erased from "Disk-3", and the backup will have done me no good. Is there a way to use the --delete option, but keep it from running if "Disk-1" would not be mounted?
Thanks