2019-12-18 02:12:02 -08:00
#!/bin/bash
2025-01-11 08:38:36 -06:00
NOW = $( date +"%Y%m%d" )
2019-12-18 11:24:45 -08:00
FILE = " config-backup. $NOW .tar.bz "
2019-12-18 02:12:02 -08:00
2019-12-18 02:15:25 -08:00
clear
echo
echo
2019-12-18 02:12:02 -08:00
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."
2025-01-11 07:46:46 -06:00
echo
echo "IMPORTANT: The included list-backup.txt file is generic. You MUST modify the file paths from HOMEDIR to your actual home directory before running"
2019-12-18 02:12:02 -08:00
echo
echo "Would you like to continue?"
echo
select yn in "Yes" "No" ; do
case $yn in
Yes )
2025-01-11 08:38:36 -06:00
tar -cvjf $HOME /$FILE --exclude= trace.txt* -T $HOME /setup-scripts/backup/list-backup.txt
2019-12-18 02:12:02 -08:00
break; ;
No ) break; ;
esac
done