summaryrefslogtreecommitdiff
path: root/backup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'backup.sh')
-rwxr-xr-xbackup.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/backup.sh b/backup.sh
index 74c3189..2b26a8d 100755
--- a/backup.sh
+++ b/backup.sh
@@ -6,8 +6,12 @@ then
fi
archive_name=$(date +%m.%d.%y."$1".tar)
-shopt -s extglob
-tar -cf $archive_name !(*gz)
+
+cd src
+make clean
+cd ../
+
+tar -cf "$archive_name" src &&
pigz -9 $archive_name