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
@@ -9,6 +9,8 @@ echo "This script will backup the files and directories listed in $HOME/setup-sc
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
+11 -11
View File
@@ -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
+2
View File
@@ -0,0 +1,2 @@
# Version 1.0
- Minor modifications and testing. Added README.txt