This commit is contained in:
2023-11-12 17:22:01 +01:00
parent 63a1e4d447
commit d4b3003693

View File

@@ -97,7 +97,7 @@ def restic_backup(dirpath: str, tagslist: list = None):
volumes = {dirpath: {'bind': dirpath, 'mode': 'ro'},
arguments.sshfolder: {'bind': '/root/.ssh', 'mode': 'ro'},
arguments.passwordfile: {'bind': "/repopassword", 'mode': 'ro'}}
command = f"backup {dryrun} {tagscommand} {dirpath}"
command = f"backup {dryrun} {tagscommand} '{dirpath}'"
hostname = "restic"
environment = ["RESTIC_PASSWORD_FILE=/repopassword",
f"RESTIC_REPOSITORY={repo}"]