I'm reading the docs and am unable to find an option to store a comment via proxmox-backup-client, similar to vzdump notes in the gui. Is this possible?
If I understood you correctly, then yes, you can do that! There's the subcommand snapshot notes show <snapshot> and snapshot notes update <snapshot> <new-note> for the Proxmox Backup client. So if I want to change the note of some backup I could do:
Bash:
proxmox-backup-client snapshot notes update "ct/123/2024-11-28T14:08:00Z" "Some new note" --repository mydatastore
The same can be done from the PBS WebGUI when double clicking on the "Comment" of a backup snapshot in Datastore > mydatastore > Content, expanding the specific backup group.
Ok, but I think there's an issue on that. If I have a script where I backup something, and later want to create a comment, how do I find the ID of the backup I've just done?
It depends on how you have written your scripts, but you could retrieve it either from the output of the vzdump command, e.g. for the container with the vmid 123 on the PVE node mynode and for the PBS instance pbs:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.