diff --git a/main.py b/main.py index 1c9e9b6..f7c8abb 100644 --- a/main.py +++ b/main.py @@ -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}"]