automated restore/copy to external usb.

TErxleben

Renowned Member
Oct 20, 2008
215
11
83
  1. I would like to automatically restore VMs from a PBS via CLI. Is there anything like qmrestore VM_ID-latest to do that?
  2. So I would like to write vzdump files from a PBS to external media.
  3. Has anything happened in the meantime instead of using tapes from external usb plates?
  4. Of course I would like this functionality the best in the webgui

 
I would like to automatically restore VMs from a PBS via CLI. Is there anything like qmrestore VM_ID-latest to do that?
In order to restore a VM on PVE, you can use a qmrestore <archive> <vmid>, e.g. qmrestore pbs-local:backup/vm/200/2025-02-04T08:06:09Z 1000. To list the backup snapshots on the cli, you can use a command such as pvesm list <storage>, in my example above that would translate to pvesm list pbs-local.
So I would like to write vzdump files from a PBS to external media.
I assume with vzdump files you mean vma archives? That is currently not possible and has already been requested, see https://bugzilla.proxmox.com/show_bug.cgi?id=3263. Please add you usecase with further details of the requirements there.
Has anything happened in the meantime instead of using tapes from external usb plates?
Since Proxmox Backup Server in version 3.3.0 there are removable datastores, which are datastores associated with a filesystem located on a removable media such as e.g. USB drives.
Of course I would like this functionality the best in the webgui
What functionality are you referring to here exactly? You mean the vma export? Your first point explicitly asks for cli commands, while the removable datastores are already exposed in the WebUI.
 
  • Like
Reactions: Johannes S
In a script, however, I have to laboriously determine the corresponding file name. I therefore want something like qmrestore <from> <VMids> <to> e.g. qmrestore pbs-local: backup -200 201 202 , which just plays back the last backups. Even better would be: qmrestore pbs-local: backup -200,201,202 /mnt /backup/ --vma