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.