From c7b89b8ed186a053821683b65bdfc4356a8b6fcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <henrik@trineo.org> Date: Fri, 27 Mar 2020 07:39:32 +0100 Subject: [PATCH] FIX: path and argument --- backup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup.py b/backup.py index 9373776..1bdbeaf 100755 --- a/backup.py +++ b/backup.py @@ -43,14 +43,14 @@ out : str A YAML text representation of the backup process. """ - command = ["./backup.sh"] + command = ["./utils/backup.sh"] env = os.environ.copy() if not directory: os.makedirs("/tmp/caosdb/tmpfiles/backup/", exist_ok=True) directory = tempfile.mkdtemp(dir="/tmp/caosdb/tmpfiles/backup/", prefix="backup.") - command.append("--backupdir={}".format(directory)) + env["BACKUPDIR"] = directory result = subprocess.run(command, cwd=os.path.dirname(__file__), env=env) -- GitLab