Skip to content

Instantly share code, notes, and snippets.

@k0z4c
Created November 5, 2023 12:23
Show Gist options
  • Select an option

  • Save k0z4c/02cf1b4c6f310ea7092199625198242b to your computer and use it in GitHub Desktop.

Select an option

Save k0z4c/02cf1b4c6f310ea7092199625198242b to your computer and use it in GitHub Desktop.
list all snapshots for every vm
for id in $(qm list | awk '{ print $1 }' | tail -n +2); do
qm config $id | grep '^name:' | awk '{print $2}'
qm listsnapshot $id;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment