Difference between revisions of "Virsh snapshot-list"
Jump to navigation
Jump to search
↑ https://linux.die.net/man/1/virsh
Line 49: | Line 49: | ||
* <code>[[virsh list]]</code> | * <code>[[virsh list]]</code> | ||
* <code>[[virsh snapshot-create-as]]</code> | * <code>[[virsh snapshot-create-as]]</code> | ||
+ | * <code>[[virsh snapshot-info]]</code> | ||
== See also == | == See also == |
Revision as of 19:24, 20 September 2020
virsh snapshot-list domain [{--parent | --roots | --tree}] [{[--from] snapshot | --current} [--descendants]] [--metadata] [--no-metadata] [--leaves] [--no-leaves] [--inactive] [--active] [--disk-only] [--internal] [--external]
List snapshots for a domain, will list active, inactive and disk-only snapshots:
virsh snapshot-list VM_MACHINE_NAME Name Creation Time State ------------------------------------------------------------ Snapshot_name 2019-01-27 11:47:48 +0400 shutoff
$ virsh snapshot-list VM_MACHINE_NAME Name Creation Time State ------------------------------------------------------------ MY_Snapshot_name 2018-04-29 15:53:07 +0530 running
$ virsh snapshot-list VM_MACHINE_NAME --current Name Creation Time State ------------------------------------------------------------ error: Domain snapshot not found: the domain does not have a current snapshot error: Domain snapshot not found: the domain does not have a current snapshot
Snapshot-list for all VMs:
for VM_NAME in `virsh list --name`; do virsh snapshot-list $VM_NAME; done
To filter by state when snapshot was taken use:
virsh snapshot-list VM_MACHINE_NAME --active
virsh snapshot-list VM_MACHINE_NAME --inactive
virsh snapshot-list VM_MACHINE_NAME --disk-only
To filter by storage snapshot type use: --internal
or --external
(virsh snapshot-info can be also used)
virsh snapshot-list VM_MACHINE_NAME --internal
virsh snapshot-list VM_MACHINE_NAME --external
Related commands
See also
virsh
: Storage information, Connecting, Operations, Memory, Snapshots, Networking, CPU, release notes,virsh nodedev-list
- Virsh Snapshots:
virsh snapshot-create-as
,virsh snapshot-info
,virsh snapshot-list
,virsh blockjob
,virsh snapshot-revert (Destructive action)
,virsh snapshot-delete
- Virsh/KVM virsh Snapshots:
virsh snapshot-info
virsh domblklist --details
virsh dumpxml
- Create Live backups
Advertising: