mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
Testing backup and restore scripts
This commit is contained in:
Executable
+19
@@ -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
|
||||
Reference in New Issue
Block a user