diff --git a/backup/README.txt b/backup/README.txt new file mode 100644 index 0000000..73c189f --- /dev/null +++ b/backup/README.txt @@ -0,0 +1,9 @@ +#### Backup and Restore scripts ### + +This script is a simple implementation of TAR to create an archive of your configurations files. The intent is a simple method to backup your configs and modifications from a clean install in order to facilitate an easier restore or fresh install in the future. + +The backup.sh script will read the directories or files you have listed in the list-backup.txt file. The resulting archive, when passed to the restore.sh will attempt to copy the files back to the same locations. + +LIMITATIONS: +-- YOU must ensure the files and directories listed in the list-backup.txt file are correct and what you need to backup. +-- YOU must have the same user name (home directory name) on the machine you are restoring to. e.g. if your current machine is user AB01 and home directory is then /home/AB01/, the new install must have the same name. diff --git a/backup/backup.sh b/backup/backup.sh index bca92e6..882b729 100755 --- a/backup/backup.sh +++ b/backup/backup.sh @@ -8,6 +8,8 @@ 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 diff --git a/backup/list-backup.txt b/backup/list-backup.txt index 7dc9adf..9bfa486 100644 --- a/backup/list-backup.txt +++ b/backup/list-backup.txt @@ -6,14 +6,14 @@ /etc/dhcpcd.conf /etc/ntp.conf /etc/udev/rules.d/ -$HOME/.ssh/authorized_keys -$HOME/.ssh/config -$HOME/.config/ -$HOME/garim/ -$HOME/.nbems/ -$HOME/.fldigi/ -$HOME/.wl2k/ -$HOME/.conkyrc -$HOME/.flrig/ -$HOME/.gnupg/ -$HOME/.gtktermrc +HOMEDIR/.ssh/authorized_keys +HOMEDIR/.ssh/config +HOMEDIR/.config/ +HOMEDIR/garim/ +HOMEDIR/.nbems/ +HOMEDIR/.fldigi/ +HOMEDIR/.wl2k/ +HOMEDIR/.conkyrc +HOMEDIR/.flrig/ +HOMEDIR/.gnupg/ +HOMEDIR/.gtktermrc diff --git a/changelogs/CHANGELOG-backups.md b/changelogs/CHANGELOG-backups.md new file mode 100644 index 0000000..dad0bea --- /dev/null +++ b/changelogs/CHANGELOG-backups.md @@ -0,0 +1,2 @@ +# Version 1.0 +- Minor modifications and testing. Added README.txt