sync/scripts/archive_and_compress.sh

4 lines
105 B
Bash
Raw Normal View History

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