fixed mail backup/restore

This commit is contained in:
Spitap
2022-07-27 15:51:22 +02:00
parent ee2ccf0647
commit 563979a7dd
2 changed files with 7 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ class Backup():
def __init__(self, config, bashArg, nomail):
self.config = config
self.destinationPath = ""
self.BACKUPDIRECTORY = ["mails/", "custom/", "databases/"]
self.BACKUPDIRECTORY = ["custom/", "databases/"]
self.nomail = nomail
self.isBash = False
self.bash = ""
@@ -126,7 +126,7 @@ class Backup():
f" ({home_path}) seems not right...", utils.RED)
else:
dst = self.destinationPath + self.BACKUPDIRECTORY[0] + "vmail/"
dst = self.destinationPath + "mails/"
if os.path.exists(dst):
shutil.rmtree(dst)