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