summaryrefslogtreecommitdiff
path: root/backup.sh
blob: 74c3189db38dda323803c548ec1e60940ecbdf5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
if [ $# -ne 1 ]
then
 echo "Usage: $0 [file suffix]" 
 exit 1
fi

archive_name=$(date +%m.%d.%y."$1".tar)
shopt -s extglob
tar -cf $archive_name !(*gz)
pigz -9 $archive_name