list all backups

taich

Member
Aug 15, 2020
113
16
23
64
Hi,

I run Proxmox Backup Server 3.2-3 and want to know how to list all backups of a certain VM on command line.
Even more how to delete a backup from command line.
 
Hi,

I run Proxmox Backup Server 3.2-3 and want to know how to list all backups of a certain VM on command line.
Even more how to delete a backup from command line.
Hi,
you can either use the proxmox-backup-client snapshot list [group] command and the proxmox-backup-client snapshot forget <snapshot>, or if you use the Proxmox VE storage based access you can use pvesm list <pbs-storage> --vmid <vmid> and pvesm free <volid>
 
Hi,
you can either use the proxmox-backup-client snapshot list [group] command and the proxmox-backup-client snapshot forget <snapshot>, or if you use the Proxmox VE storage based access you can use pvesm list <pbs-storage> --vmid <vmid> and pvesm free <volid>
Hi,

1. proxmox-backup-client snapshot list [group]

I have no idea what group to use? Is there a way to get a list of all available groups?

2. proxmox-backup-client snapshot forget <snapshot>

I Got this error:
proxmox-backup-client snapshot forget 230
Error: unable to get (default) repository

3. pvesm list <pbs-storage> --vmid <vmid>

I Got this error:
pvesm list Backup1 --vmid 230
storage 'Backup1' does not exist

How to find the right name of the storage?

4. pvesm free <volid>

what is the volid? where to get a list of available volid's?
 
1. proxmox-backup-client snapshot list [group]

I have no idea what group to use? Is there a way to get a list of all available groups?
As indicated by the square brackets, the group is optional, you can list all snapshots by not specifying the group. Since you want to list backups of a PVE VM, your group would be e.g. vm/230. Groups typically follow the schema vm/<VMID>, ct/<VMID> or host/<HOSTNAME>, depending on the type of snapshot. See also https://pbs.proxmox.com/docs/terminology.html#backup-group

2. proxmox-backup-client snapshot forget <snapshot>

I Got this error:
proxmox-backup-client snapshot forget 230
Error: unable to get (default) repository
You will have to setup the default repository or specify it via CLI for the command to work, please have a look at https://pbs.proxmox.com/docs/backup-client.html for detailed information about how to use the proxmox-backup-client.

3. pvesm list <pbs-storage> --vmid <vmid>

I Got this error:
pvesm list Backup1 --vmid 230
storage 'Backup1' does not exist
This seems the way you want to go, since your intention is to manage PVE backups I guess. The error indicates that the storage cannot be found by this name, please check the name and status of your PBS storage via the output of pvesm status.

4. pvesm free <volid>

what is the volid? where to get a list of available volid's?
The volid uniquely identifies the volume in the cluster, you get it from the pvesm list output.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!