Commit 8821d03f authored by Valentina Galata's avatar Valentina Galata
Browse files

archive: script for code archive (for paper, issue #127)

parent 3a04b60c
#!/bin/bash -l
# execute from base code directory
ARCHIVE="/scratch/users/vgalata/ONT_pilot_manuscript/code_archive/$(date +"%Y%m%d")"
mkdir -p "${ARCHIVE}"
# copy data
rsync -rtP --prune-empty-dirs --links --exclude=".git*" --exclude=".snakemake" --exclude="submodules" --exclude="*.pyc" . "${ARCHIVE}/" && \
cd "$(dirname ${ARCHIVE})" && \
tar -cvf - "$(basename ${ARCHIVE})" | pigz --best -p 1 > "$(basename ${ARCHIVE}).tar.gz"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment