diff --git a/scripts/archive_and_compress.sh b/scripts/archive_and_compress.sh new file mode 100755 index 0000000..1386094 --- /dev/null +++ b/scripts/archive_and_compress.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +source=${1%/}; # cut off trailing "/" +tar cfv $source.tar $source && xz $source.tar; diff --git a/scripts/decompress_and_unarchive.sh b/scripts/decompress_and_unarchive.sh new file mode 100755 index 0000000..b0f34c2 --- /dev/null +++ b/scripts/decompress_and_unarchive.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +source=$1; +archive=${source%.xz}; # cut off trailing ".xz" +unxz $source && tar xfv $archive