Skip to content

Commit

Permalink
add snakemake rule for rsync dry-run (#1402)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-rdt authored Nov 10, 2024
1 parent d1a504b commit 81e27fa
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
"""

0 comments on commit 81e27fa

Please sign in to comment.