mirror of
https://gitlab.sectorq.eu/jaydee/omv_backup.git
synced 2025-07-01 15:48:33 +02:00
added v3
This commit is contained in:
@ -18,6 +18,7 @@ from wakeonlan import send_magic_packet
|
||||
pid = os.getpid()
|
||||
|
||||
host = platform.node().lower()
|
||||
#input(host)
|
||||
cmnd = "ps -ef|grep omv_backups.py|grep -v grep |grep -v {}|wc -l".format(pid)
|
||||
status, output = subprocess.getstatusoutput(cmnd)
|
||||
if int(output) > 0:
|
||||
@ -188,10 +189,12 @@ if _RESTORE:
|
||||
STARTTIME = now.strftime("%Y-%m-%d_%H:%M:%S")
|
||||
if _APP == "all":
|
||||
_DATE = "latest"
|
||||
#_APP = ["nginx","ha","gitlab","mailu","bitwarden","esphome","grafana","ingluxdb","kestra","matter-server","mosquitto","octoprint","octoprint2","pihole","unify_block","webhub"]
|
||||
cmnd = "ssh root@amd.home.lan 'ls /mnt/raid/backup/m-server/docker_data/latest'"
|
||||
status, output = subprocess.getstatusoutput(cmnd)
|
||||
_APP = output.splitlines()
|
||||
if host == "rpi5.home.lan":
|
||||
_APP = ["nginx","ha","gitea","gitlab","mailu","bitwarden","esphome","grafana","ingluxdb","kestra","matter-server","mosquitto","octoprint","octoprint2","pihole","unify_block","webhub","homepage","watchtower"]
|
||||
else:
|
||||
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)
|
||||
#input("????")
|
||||
else:
|
||||
|
Reference in New Issue
Block a user