This commit is contained in:
2025-03-11 21:17:51 +01:00
parent b6b2259a78
commit 729cceacd2

View File

@ -18,6 +18,7 @@ from wakeonlan import send_magic_packet
pid = os.getpid() pid = os.getpid()
host = platform.node().lower() host = platform.node().lower()
#input(host)
cmnd = "ps -ef|grep omv_backups.py|grep -v grep |grep -v {}|wc -l".format(pid) cmnd = "ps -ef|grep omv_backups.py|grep -v grep |grep -v {}|wc -l".format(pid)
status, output = subprocess.getstatusoutput(cmnd) status, output = subprocess.getstatusoutput(cmnd)
if int(output) > 0: if int(output) > 0:
@ -188,10 +189,12 @@ if _RESTORE:
STARTTIME = now.strftime("%Y-%m-%d_%H:%M:%S") STARTTIME = now.strftime("%Y-%m-%d_%H:%M:%S")
if _APP == "all": if _APP == "all":
_DATE = "latest" _DATE = "latest"
#_APP = ["nginx","ha","gitlab","mailu","bitwarden","esphome","grafana","ingluxdb","kestra","matter-server","mosquitto","octoprint","octoprint2","pihole","unify_block","webhub"] if host == "rpi5.home.lan":
cmnd = "ssh root@amd.home.lan 'ls /mnt/raid/backup/m-server/docker_data/latest'" _APP = ["nginx","ha","gitea","gitlab","mailu","bitwarden","esphome","grafana","ingluxdb","kestra","matter-server","mosquitto","octoprint","octoprint2","pihole","unify_block","webhub","homepage","watchtower"]
status, output = subprocess.getstatusoutput(cmnd) else:
_APP = output.splitlines() cmnd = "ssh root@amd.home.lan 'ls /mnt/raid/backup/m-server/docker_data/latest'"
status, output = subprocess.getstatusoutput(cmnd)
_APP = output.splitlines()
print(_APP) print(_APP)
#input("????") #input("????")
else: else: