Hello,
So I have one PBS Server on-site where all the clients and VMs get backed up. Very nice, super good deduplication and everything.
However, due to obvious reasons, a sync to a remote site is desirable.
I have on purpose for this configured a little Wireguard VPN that I connect to, then run the sync and then disconnect again from the VPN. This work beautifully and I can sync the local datastore to a remote PBS server using an API token and a dedicated namespace, to not mix things that do not belong together.
Currently, to achieve the sync, I made a little bash script, that first connects to the Wireguard VPN (using wg-quick), thn runs the datastore sync command from PBS, and then disconnects from the VPN again. I don't want the VPN connection to stay open longer than necessary.
When setting this up, I found it would be super convenient if the Proxmox Web GUI would offer the option to add pre-/post sync hook scripts, in this way, actions like connecting to a VPN and such could be performed before the sync starts.
Is there maybe already somehow the possibility, or could this be an interesting feature?
So I have one PBS Server on-site where all the clients and VMs get backed up. Very nice, super good deduplication and everything.
However, due to obvious reasons, a sync to a remote site is desirable.
I have on purpose for this configured a little Wireguard VPN that I connect to, then run the sync and then disconnect again from the VPN. This work beautifully and I can sync the local datastore to a remote PBS server using an API token and a dedicated namespace, to not mix things that do not belong together.
Currently, to achieve the sync, I made a little bash script, that first connects to the Wireguard VPN (using wg-quick), thn runs the datastore sync command from PBS, and then disconnects from the VPN again. I don't want the VPN connection to stay open longer than necessary.
When setting this up, I found it would be super convenient if the Proxmox Web GUI would offer the option to add pre-/post sync hook scripts, in this way, actions like connecting to a VPN and such could be performed before the sync starts.
Is there maybe already somehow the possibility, or could this be an interesting feature?