mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
Working on backup scripts
This commit is contained in:
@@ -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.
|
||||||
@@ -9,6 +9,8 @@ echo "This script will backup the files and directories listed in $HOME/setup-sc
|
|||||||
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
|
||||||
|
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 "Would you like to continue?"
|
||||||
echo
|
echo
|
||||||
select yn in "Yes" "No"; do
|
select yn in "Yes" "No"; do
|
||||||
|
|||||||
+11
-11
@@ -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
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
# Version 1.0
|
||||||
|
- Minor modifications and testing. Added README.txt
|
||||||
Reference in New Issue
Block a user