backup postscript/postcommand

ddarko

Member
Jul 4, 2009
30
0
6
Poland
I would ask you to add the ability to execute arbitrary commands (bash script) after the backup operation.

for example:
in a CRON is:
0 3 * * * root vzdump --quiet 1 --mode snapshot --all 1 --compress lzo --storage backup

I converts to:
0 3 * * * root vzdump --quiet 1 --mode snapshot --all 1 --compress lzo --storage backup && /opt/move_backup.sh

Of course, if I modify this task in the panel I lose "&& /opt/move_backup.sh". Is it possible to add in create a backup task in panel field called "execute after" or something similar?

Maybe there is a better way to bring your own command after the backup job?
 
if he wanted to get the name of backup performed and hook launch a script or command to restore the VM on another machine, as I can get the name of the VM that has just dump?

That's right. Thanks, but I still do not see that in the Proxmox web panel.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!