This commit is contained in:
Евгений Храмов 2023-06-01 19:42:44 +03:00
parent 30c2024c1b
commit 13bad49747

@ -101,7 +101,7 @@ def backup(g):
source = [f"{dir_config}"] source = [f"{dir_config}"]
backup_path = input("Введите конечный путь для бэкапа, по умолчанию ******") backup_path = input("Введите конечный путь для бэкапа, по умолчанию ******")
if not backup_path: if not backup_path:
backup_path = "/home/a11" backup_path = f"{dir_server_ark}Backups"
today = backup_path + os.sep + time.strftime('%Y_%m_%d') today = backup_path + os.sep + time.strftime('%Y_%m_%d')
target = f"{backup_path}/" + g + "_backup-" + time.strftime('%H_%M_%S') + '.zip' target = f"{backup_path}/" + g + "_backup-" + time.strftime('%H_%M_%S') + '.zip'
@ -994,6 +994,7 @@ def zero(x=""):
"""Потом пригодится (нет)""" """Потом пригодится (нет)"""
return "" return ""
if not os.path.exists(dir_config + "config"): if not os.path.exists(dir_config + "config"):
dir_server = path_server() dir_server = path_server()
else: else: