mirror of
https://gitlab.sectorq.eu/jaydee/python.git
synced 2025-12-14 10:44:52 +01:00
bitwarden
This commit is contained in:
@@ -141,7 +141,7 @@ while not is_port_open(BACKUP_HOST, port):
|
|||||||
print(f"Port {port} on {BACKUP_HOST} is open.")
|
print(f"Port {port} on {BACKUP_HOST} is open.")
|
||||||
|
|
||||||
if _RESTORE:
|
if _RESTORE:
|
||||||
topic = "sectorq/omv/backups/{}".format(b.lower())
|
topic = "sectorq/omv/restore/{}".format(_APP)
|
||||||
client.connect(broker,1883,60)
|
client.connect(broker,1883,60)
|
||||||
msg = {"status":"inactive","bak_name":b,"start_time":"inactive","end_time":"inactive","progress":0}
|
msg = {"status":"inactive","bak_name":b,"start_time":"inactive","end_time":"inactive","progress":0}
|
||||||
|
|
||||||
@@ -150,8 +150,8 @@ if _RESTORE:
|
|||||||
now = datetime.datetime.now()
|
now = datetime.datetime.now()
|
||||||
BACKUP_HOST = "root@omv.home.lan"
|
BACKUP_HOST = "root@omv.home.lan"
|
||||||
BACKUP_DEVICE = "/srv/dev-disk-by-uuid-2f843500-95b6-43b0-bea1-9b67032989b8"
|
BACKUP_DEVICE = "/srv/dev-disk-by-uuid-2f843500-95b6-43b0-bea1-9b67032989b8"
|
||||||
BACKUP_DIR = f"/backup/{host}/{b}"
|
BACKUP_DIR = f"/backup/{host}"
|
||||||
NEW_BACKUP_DIR = f"{BACKUP_DEVICE}/backup/{host}/{b}"
|
NEW_BACKUP_DIR = f"{BACKUP_DEVICE}/backup/m-server/docker_data/latest/{_APP}"
|
||||||
DATETIME = now.strftime("%Y-%m-%d_%H-%M-%S")
|
DATETIME = now.strftime("%Y-%m-%d_%H-%M-%S")
|
||||||
SOURCE_DIR = f"{BACKUP_DIR}/{_APP}"
|
SOURCE_DIR = f"{BACKUP_DIR}/{_APP}"
|
||||||
if _FIRST:
|
if _FIRST:
|
||||||
|
|||||||
Reference in New Issue
Block a user