backup hooks on a cluster backing up to NAS

yatesco

Renowned Member
Sep 25, 2009
215
5
83
Howdy,

I have a script which offsites the backups of a single host and is integrated using the hooks.pl approach. Now I am moving to a cluster (of 3 nodes), and the backup storage is shared (NAS), I can't quite figure out to get the backup process to call my script on the relevant hooks.

I fully expect it is something silly so please feel free to call me a numpty, just as long as you also give me the solution ;-)

Thanks!
 
Hi!

There's some work in progress to make such hookscripts storeable and available on storages configured in PVE, but it's not yet finished for backup scripts.

So, until then you could just place it on a shared storage, or even /etc/pve (if it's <512KB) and then set the "--script" parameter in the job, so that it can be called from all nodes.