Rsnapshot preexec

backuprsnapshot

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..

Best Answer

Oh well, looks like i DO have to use a wrapper script.

If anyone has a better idea, feel free to post.

Related Topic