script snippet for auto snapshot creation

pille99

Active Member
Sep 14, 2022
360
28
28
here

nothing special but still usefully - i added to my scheduled task and it runs all hour
Bash:
for i in $(qm list | awk '/[0-9]/{print $1}' ); do qm snapshot "$i" SS"$(date +"%Y_%m_%d_%I_%M_%p")" -description "Auto Snapshot every Hour" -vmstate 0 ; done

what is does:
snapshot of all VMs on the single Proxmox Node/server
no Memory
 
Last edited:

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!