notes-template for new backup jobs?

Oct 7, 2019
793
325
108
Spain
I can edit /etc/vzdump.conf and add a custom notes-template, say:

Code:
notes-template: {{vmid}}-{{guestname}} ({{node}}-{{cluster}})

Then if I try to backup a VM, the notes-template value is applied. But if I add a new backup job at datacenter level the notes-template is not applied. In fact, no value from /etc/vzdump.conf is used as default values for a new backup job. Tested on 7.2 and 7.3.

Is that the intended behavior? If yes, why?

Thanks in advance!
 
The backup from the datacenter level takes the notes-templates from the /etc/pve/jobs.cfg file.
 
When the job is already created, yes, thats expected.

But when you create a new backup job (it still does not exist in /etc/pve/hjobs.cfg), the GUI could get its default values from /etc/vzdump.cfg (or some other file if that makes more sense), instead of the default values so the user does not have to adapt the settings every time.
 
I ran into this issue today too. Changed the default in /etc/vzdump.conf to {{guestname}} @ {{node}}, created a new backup job, found that the note on the backup read {{guestname}}. I left the note template intentionally empty on the job.
If I do a manual backup of a VM, the notes correctly show as {{guestname}} @ {{hostname}}.

How do I change the default for backup jobs?

I ran the test on v7.3-6.

I've also found that adding a script stanza in /etc/vzdump.conf _will_ be excuted both from manual backups and from backup jobs. So adding a script that changes the notes on the backup works for both instances. It seems to be just the notes-template is only observed for manual backups and not for backup jobs.
 
Last edited:
As mentioned in the bug: I have no clue what I have been testing yesterday, but today everything is working exactly as expected.

Leave the notes screen empty on the backup job, and the configuration in vzdump.conf will be observed on every node.
 

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!