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

Aug 30, 2023
96
20
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