From d920291979050abdf891d197321dc13ae589fc6f Mon Sep 17 00:00:00 2001 From: Michael Eischer <eischer@cs.fau.de> Date: Wed, 1 Jul 2020 19:22:00 +0200 Subject: [PATCH] Cleanup upload script rsync excludes --- scripts/queue/upload.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/queue/upload.py b/scripts/queue/upload.py index 6d46240..78cac3e 100755 --- a/scripts/queue/upload.py +++ b/scripts/queue/upload.py @@ -36,8 +36,9 @@ def queue(queue_name, experiment_name): + quote("/bin/bash", "-c", " ".join(quote("mkdir", "-p", config["queue.upload"]))), stdout=subprocess.DEVNULL, cwd=MAIN_DIR, check=True) subprocess.run(["rsync", "-ahe", "ssh", "--delete", - "--exclude=/terraform", "--exclude=/out", "--exclude=/results", "--exclude=/remote-runner", - "--exclude=/.git", "--exclude=/.idea", "--exclude=/tmp", "--exclude=/bin", "--exclude=.mypy_cache", + "--exclude=bin", "--exclude=out", "--exclude=tmp", + "--exclude=results", "--exclude=remote-runner", + "--exclude=.git", "--exclude=.idea", "--exclude=.mypy_cache", "--exclude=.terraform", "./", "{}@{}:{}/".format(config["queue.user"], config["queue.host"], config["queue.upload"])], cwd=MAIN_DIR, check=True) -- GitLab