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.
|
||||
@@ -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
|
||||
|
||||
+11
-11
@@ -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
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
# Version 1.0
|
||||
- Minor modifications and testing. Added README.txt
|
||||
Reference in New Issue
Block a user