sync/scripts/archive_and_compress.sh

4 lines
105 B
Bash
Executable File

#!/usr/bin/env bash
source=${1%/}; # cut off trailing "/"
tar cfv $source.tar $source && xz $source.tar;