move vm backup to namespace but vm id is equal

frankz

Renowned Member
Nov 16, 2020
427
27
68
Hi everyone,


I’m using Proxmox Backup Server and I’ve run into a problem with VM backups stored across namespaces.


On the same datastore, I have:


  • Backups in the root namespace

  • Additional backups inside a namespace coming from a remote node

The issue is that several VMs share the same VMID (e.g., `vm/100 both in the root and inside the namespace. When I try to move a backup from the namespace to the root, PBS refuses because the VMID already exists in the destination.


I understand that PBS requires unique VMIDs within the same namespace, but allows duplicates across different namespaces. However, I haven’t found a clean way to move a backup from a namespace to the root when the VMID is already taken.
 
Hi, @frankz
Ideally, you could create another namespace (parallel to the existing one) and place the backup of the non-unique VMID there.
 
Hi,

This is expected behavior in Proxmox Backup Server. VMIDs must be unique within the same namespace, so moving a backup to the root namespace will fail if the same VMID already exists there.

Currently, there is no way to rename or change the VMID of an existing backup. The available options are:
  • Remove the existing backup in the root namespace, then move the backup
  • Keep the backup in the namespace
  • Or restore and re-backup the VM with a different VMID