Skip to content

Instantly share code, notes, and snippets.

@moonwatcher
Created September 26, 2014 19:57
Show Gist options
  • Select an option

  • Save moonwatcher/8b97c0d9f16402b19c31 to your computer and use it in GitHub Desktop.

Select an option

Save moonwatcher/8b97c0d9f16402b19c31 to your computer and use it in GitHub Desktop.
how to tar a run directory
function tar_sequence() {
RUN="$1"
SUBJECT="archive creation for $RUN finished"
(
cd /export/data1/gencore;
[ -d "$RUN" ] && tar --use-compress-prog=pbzip2 --exclude="Data/Intensities/L00*/C*.1" -cf /export/data1/flowcell/$RUN.tar.bz2 $RUN;
RESULT="result: $?"
echo $RESULT
echo $RESULT | mail -s "$SUBJECT" lg1883@nyu.edu
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment