Created
September 26, 2014 19:57
-
-
Save moonwatcher/8b97c0d9f16402b19c31 to your computer and use it in GitHub Desktop.
how to tar a run directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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