can i add vm-name into proxmox backup file name or pbs task/datastore contents ?

RolandK

Famous Member
Mar 5, 2019
1,016
220
108
52
i'm curious why proxmox only stores vm id and timestamp in the backup filename (also in pbs), but not the vm name.

this makes things intransparent, because i need extra steps to map a name to a "binary blob" i cannot easily derive the vm name from, especially when the backup is getting archived and later restored from the archive.

is there a way to make the vm-name appear in the pbs dashboard/datastore and/or is there a way to encode the vm name in the vzdump backup filename?
 
i'm curious why proxmox only stores vm id and timestamp in the backup filename (also in pbs), but not the vm name.

this makes things intransparent, because i need extra steps to map a name to a "binary blob" i cannot easily derive the vm name from, especially when the backup is getting archived and later restored from the archive.

is there a way to make the vm-name appear in the pbs dashboard/datastore and/or is there a way to encode the vm name in the vzdump backup filename?
with proxmox-backup-client you can name them using option --backup-id
https://forum.proxmox.com/threads/naming-backups-from-proxmox-backup-client.76471/
 
Hi, don't want create new thread, so I'll add it here - it's related and someone might find it usefull...

This script executed in /mnt/datastore/datastorename/vm will name backups based on VM names. Obviously needs to be run manually (ssh/teminal), everytime new VM exist and back up.

Bash:
#!/bin/bash

for i in `ls -d ./*/*/` ; do dd if=$i/qemu-server.conf.blob bs=1 skip=12 2>/dev/null | zstdcat | grep name > $i/../notes ; d
one

Screenshot from 2022-11-02 12-07-51.png