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: