Add vmsnapshot creating script

Adds timestamp to the name of external snapshot
This commit is contained in:
2025-11-16 08:18:10 +07:00
parent ec9003865c
commit 92be717a21

11
vmsnapshot Normal file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/bash
prefix="hosting_"
vmlist="antonkaretnikov alexanderboliubysh dorjisandakov sergeymoskalenko katerinenikitina kirillsavchenko nikitamochalov danilreutov anastasiatsygankova egorkaikov stepanyankov daniilivlev mariaborzykh irinakatalanina mariagerasimenko evgeniatroshinovskaya marinerusskikh vsevolodignatenko konstantinbekbauov egorparkhomenko"
postfix="_vm"
for var in $vmlist
do
name=$prefix$var$postfix
virsh snapshot-create-as $name $(date --utc +%Y-%m-%d) --disk-only --atomic
done