[SOLVED] Determine if backup is run interactively vs scheduled

I didn’t realise this. How would I set my script to a single backup job and not as a node-wide default?

Thank you
Like already mentioned in this thread:
You should be able to set the script just for the scheduled job with
Code:
pvesh set /cluster/backup/backup-f1bd3b15-737e --script /path/to/script
Of course the backup ID and path will be different in your case. You can use cat /etc/pve/jobs.cfg to find the ID.
 
Just checking in to see if the situation has changed since this thread began. Are we in a position yet where Proxmox provides the required information to a hookscript to allow it to distinguish between a scheduled backup and a manually started one?
Hi @fiona - just checking in on this again. Has this feature been implemented yet, and if so, how do I make use of it? I've had another look at the hook script documentation and can't see anything that looks related.

Thank you
 
Hi @fiona - just checking in on this again. Has this feature been implemented yet, and if so, how do I make use of it? I've had another look at the hook script documentation and can't see anything that looks related.
The patch referenced earlier was applied long ago, but the information is not yet passed on to the hook script. Please open a feature request on the bug tracker for this describing your use case and linking back to the forum thread here: https://bugzilla.proxmox.com/