Working on backup scripts

This commit is contained in:
tb14
2025-01-11 07:46:46 -06:00
parent a76bfc5f9a
commit 1d36aaa621
4 changed files with 24 additions and 11 deletions
+9
View File
@@ -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.
+2
View File
@@ -8,6 +8,8 @@ echo
echo "This script will backup the files and directories listed in $HOME/setup-scripts/backup/backup-list.txt" echo "This script will backup the files and directories listed in $HOME/setup-scripts/backup/backup-list.txt"
echo 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 "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
echo "Would you like to continue?" echo "Would you like to continue?"
echo echo
+11 -11
View File
@@ -6,14 +6,14 @@
/etc/dhcpcd.conf /etc/dhcpcd.conf
/etc/ntp.conf /etc/ntp.conf
/etc/udev/rules.d/ /etc/udev/rules.d/
$HOME/.ssh/authorized_keys HOMEDIR/.ssh/authorized_keys
$HOME/.ssh/config HOMEDIR/.ssh/config
$HOME/.config/ HOMEDIR/.config/
$HOME/garim/ HOMEDIR/garim/
$HOME/.nbems/ HOMEDIR/.nbems/
$HOME/.fldigi/ HOMEDIR/.fldigi/
$HOME/.wl2k/ HOMEDIR/.wl2k/
$HOME/.conkyrc HOMEDIR/.conkyrc
$HOME/.flrig/ HOMEDIR/.flrig/
$HOME/.gnupg/ HOMEDIR/.gnupg/
$HOME/.gtktermrc HOMEDIR/.gtktermrc
+2
View File
@@ -0,0 +1,2 @@
# Version 1.0
- Minor modifications and testing. Added README.txt