[SOLVED] Execute command after a specific backup job on a specific day of the week

Aug 30, 2023
77
11
8
Luxembourg
I'm looking at the example vzdump-hook-script.pl and scratching my head on how to achieve the following:
  • Run a system command at the end of a specific backup job and only on a specific day - the job runs every day at 23:00 but I only want the command run on Sundays
I can figure out the "end of backup job" & "specific day", but I cannot see how to check if it's a specific backup job and no other - only want the command to run for that. Anyone know?
 
you can set the hook script only for that job?
 
add "script /path/to/script" to the job definition in /etc/pve/jobs.cfg
 
  • Like
Reactions: Taomyn

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!