mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2026-01-21 21:47:37 +01:00
fix: move pull snapshots script to helper scripts
This commit is contained in:
8
helper_scripts/pull_snapshots.sh
Normal file
8
helper_scripts/pull_snapshots.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
if ssh backup-atlantis-array@atlantishq.de [[ -e /home/backup-atlantis-array/lock.rsync ]]; then
|
||||
echo "Lockfile found. Waiting 10s.."
|
||||
sleep 10
|
||||
else
|
||||
rsync backup-atlantis-array@atlantishq.de:/home/backup-atlantis-array/\* . -rP \
|
||||
--remove-source-files
|
||||
fi
|
||||
@@ -88,18 +88,19 @@ if __name__ == "__main__":
|
||||
vm_skip_list = ["harbor-registry", "backup", #"irc-new", #"kube1",
|
||||
"kube2",
|
||||
"kube1",
|
||||
#"mail",
|
||||
"mail",
|
||||
"opensearch",
|
||||
"monitoring",
|
||||
#"paperless",
|
||||
"paperless",
|
||||
"prometheus", "signal",
|
||||
"steam-master", "zabbix",
|
||||
"git",
|
||||
#"kathi", "usermanagement", "vpn", "ths", "nextcloud-athq"
|
||||
"kathi", "usermanagement", "vpn", "ths", "nextcloud-athq"
|
||||
]
|
||||
if vm.name() in vm_skip_list:
|
||||
continue
|
||||
|
||||
vm_white_list = []
|
||||
vm_white_list = ["kathi"]
|
||||
if vm_white_list:
|
||||
if not vm.name() in vm_white_list:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user