From 81e27fab6a43d8a122a7e433b36d715d56159cc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20R=C3=BCdt?= <117752024+daniel-rdt@users.noreply.github.com> Date: Sun, 10 Nov 2024 12:10:19 +0100 Subject: [PATCH] add snakemake rule for rsync dry-run (#1402) --- Snakefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Snakefile b/Snakefile index 90a44c9d9..79e58c573 100644 --- a/Snakefile +++ b/Snakefile @@ -138,3 +138,15 @@ rule sync: rsync -uvarh --no-g {params.cluster}/results . || echo "No results directory, skipping rsync" rsync -uvarh --no-g {params.cluster}/logs . || echo "No logs directory, skipping rsync" """ + + +rule sync_dry: + params: + cluster=f"{config['remote']['ssh']}:{config['remote']['path']}", + shell: + """ + rsync -uvarh --ignore-missing-args --files-from=.sync-send . {params.cluster} -n + rsync -uvarh --no-g {params.cluster}/resources . -n || echo "No resources directory, skipping rsync" + rsync -uvarh --no-g {params.cluster}/results . -n || echo "No results directory, skipping rsync" + rsync -uvarh --no-g {params.cluster}/logs . -n || echo "No logs directory, skipping rsync" + """