Search for backup containing comment

harmonyp

Member
Nov 26, 2020
196
4
23
47
When a VM is backed up in PBS it's given a comment for the machine hostname.

How can I search through all backups filtering certain hostnames. I have a backup but I do not know the VMID.

Not able to find where this data is stored.
 
When a VM is backed up in PBS it's given a comment for the machine hostname.

How can I search through all backups filtering certain hostnames. I have a backup but I do not know the VMID.

Not able to find where this data is stored.
Hi,
the comment is part of the backups snapshot manifest and contained in the response when listing snapshots, e.g. by
Code:
proxmox-backup-client snapshot list --output-format json
(you can also use json-pretty if you want a human readable output)
or via the corresponding api endpoint [0]. So you could create a small script filtering out snapshots using this.

The comment you will also see in the WebUI when listing snapshots of a datastore, so that might help to find the snapshot you are looking for as well, if you have access to the WebUI.

[0] https://pbs.proxmox.com/docs/api-viewer/index.html#/admin/datastore/{store}/snapshots