rsnapshot preexec

Posted by Zulakis on Server Fault See other posts from Server Fault or by Zulakis
Published on 2012-09-22T14:17:03Z Indexed on 2012/09/22 15:39 UTC
Read the original article Hit count: 374

Filed under:
|

I am mounting my remote backup volume using a rsnapshot cmd_preexec script.

If the /mnt/backup directory doesn't exist when starting rsnapshot i get this error:

ERROR: /mnt/backup does not exist.  

If the directory exists and the preexec mounting fails, it does not stop rsnapshot resulting in the backup being backed up on the completely wrong server...

What should I do about this?

Edit:
I know that I could use a wrapper-script, but I don't want to do this..

© Server Fault or respective owner

Related posts about backup

Related posts about rsnapshot