Testing backup and restore scripts

This commit is contained in:
tb14
2019-12-18 02:12:02 -08:00
parent 72a3e238ee
commit 537c255c75
3 changed files with 79 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
NOW=$(date +"%m-%d-%Y")
FILE="backup.$NOW.tar.bz"
echo "This script will backup the files and directories listed in $HOME/setup-scripts/backup/backup-list.txt"
echo
echo "The resulting compressed .tar.bz file can be used to restore most of your system's configuration settings after a fresh install."
echo
echo "Would you like to continue?"
echo
select yn in "Yes" "No"; do
case $yn in
Yes )
tar -cvjf $FILE -T $HOME/setup-scripts/backup/backup-list.txt
break;;
No ) break;;
esac
done