Backup notes not working...

dixie2000

Member
May 16, 2023
93
7
8
According to documentation, "You can add notes to backups using the Edit Notes button in the UI or via the storage content API.
It is also possible to specify a template for generating notes dynamically for a backup job and for manual backup. The template string can contain variables, surrounded by two curly braces, which will be replaced by the corresponding value when the backup is executed.
"

For example, if I choose {{cluster}} I get no substitution, just {{cluster}} on the email report.

Any help is apprecitated!
 
the template string will be evaluated for setting the note on the backup storage. the email will contain the backup job/task settings, which will contain the template string, not the resolved note.
 
  • Like
Reactions: Lukas Wagner
So then this is "normal" in bold:

vzdump 103 100 108 --mailto xxxxx@xxxxx.com --quiet 1 --storage PBS-VM --prune-backups 'keep-last=3' --notes-template '{{guestname}}' --mode stop --mailnotification always
 
Yes, take a look at your PBS in the datastore at VM 103. Your cluster name should be there in the notes.

Btw. If you use a PBS you should configure "keep all" on PVE and let the PBS do the prune job.
 

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!