mirror of
https://gitlab.sectorq.eu/jaydee/python.git
synced 2025-12-14 02:34:53 +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.")
|
||||
|
||||
if _RESTORE:
|
||||
topic = "sectorq/omv/backups/{}".format(b.lower())
|
||||
topic = "sectorq/omv/restore/{}".format(_APP)
|
||||
client.connect(broker,1883,60)
|
||||
msg = {"status":"inactive","bak_name":b,"start_time":"inactive","end_time":"inactive","progress":0}
|
||||
|
||||
@@ -150,8 +150,8 @@ if _RESTORE:
|
||||
now = datetime.datetime.now()
|
||||
BACKUP_HOST = "root@omv.home.lan"
|
||||
BACKUP_DEVICE = "/srv/dev-disk-by-uuid-2f843500-95b6-43b0-bea1-9b67032989b8"
|
||||
BACKUP_DIR = f"/backup/{host}/{b}"
|
||||
NEW_BACKUP_DIR = f"{BACKUP_DEVICE}/backup/{host}/{b}"
|
||||
BACKUP_DIR = f"/backup/{host}"
|
||||
NEW_BACKUP_DIR = f"{BACKUP_DEVICE}/backup/m-server/docker_data/latest/{_APP}"
|
||||
DATETIME = now.strftime("%Y-%m-%d_%H-%M-%S")
|
||||
SOURCE_DIR = f"{BACKUP_DIR}/{_APP}"
|
||||
if _FIRST:
|
||||
|
||||
Reference in New Issue
Block a user