mirror of
https://gitlab.sectorq.eu/jaydee/omv_backup.git
synced 2025-09-13 12:10:12 +02:00
build
This commit is contained in:
@@ -240,7 +240,7 @@ if _STOP:
|
|||||||
continue
|
continue
|
||||||
cmnd = f"docker stop {c.split()[-1]}"
|
cmnd = f"docker stop {c.split()[-1]}"
|
||||||
status, running_containers = subprocess.getstatusoutput(cmnd)
|
status, running_containers = subprocess.getstatusoutput(cmnd)
|
||||||
def restore_job():
|
def restore_job(_APP):
|
||||||
logging.info("Starting Restore")
|
logging.info("Starting Restore")
|
||||||
now = datetime.datetime.now()
|
now = datetime.datetime.now()
|
||||||
STARTTIME = now.strftime("%Y-%m-%d_%H:%M:%S")
|
STARTTIME = now.strftime("%Y-%m-%d_%H:%M:%S")
|
||||||
@@ -703,7 +703,7 @@ def backup_job(server):
|
|||||||
|
|
||||||
|
|
||||||
if _RESTORE:
|
if _RESTORE:
|
||||||
restore_job()
|
restore_job(_APP)
|
||||||
sys.exit()
|
sys.exit()
|
||||||
if _SSH_TEST:
|
if _SSH_TEST:
|
||||||
user = "root"
|
user = "root"
|
||||||
|
Reference in New Issue
Block a user