added Linux-Complete-Backup-and-Recovery-HOWTO-REWRITE.adoc and Backup-Script-sh.sh

This commit is contained in:
Jason S. Evans 2016-02-24 14:30:19 +01:00
parent 2edcfc711e
commit 77d607809a
3 changed files with 2212 additions and 16 deletions

View File

@ -0,0 +1,33 @@
#!/bin/bash
####################################
#
# Backup to NFS mount script.
#
####################################
# What to backup.
backup_files="/home /var/spool/mail /etc /root /boot /opt"
# Where to backup to.
dest="/mnt/backup"
# Create archive filename.
day=$(date +%A)
hostname=$(hostname -s)
archive_file="$hostname-$day.tgz"
# Print start status message.
echo "Backing up $backup_files to $dest/$archive_file"
date
echo
# Backup the files using tar.
tar czf $dest/$archive_file $backup_files
# Print end status message.
echo
echo "Backup finished"
date
# Long listing of files in $dest to check file sizes.
ls -lh $dest

File diff suppressed because it is too large Load Diff

View File

@ -2,16 +2,9 @@
Introduction
------------
The normal bare metal restoration process is: install the operating
system from the product disks. Install the backup software, so you can
restore your data. Restore your data. Then you get to restore
functionality by verifying your configuration files, permissions, etc.
The normal bare metal restoration process is: install the operating system from the product disks. Install the backup software, so you can restore your data. Restore your data. Then you get to restore functionality by verifying your configuration files, permissions, etc.
The process and scripts explained in this HOWTO will save re-installing
the operating system. The process explained here will restore only files
that were backed up from the production computer. Your configuration
will be intact when you restore the system, which should save you hours
of verifying configurations and data.
The process and scripts explained in this HOWTO will save re-installing the operating system. The process explained here will restore only files that were backed up from the production computer. Your configuration will be intact when you restore the system, which should save you hours of verifying configurations and data.
[[copyright]]
Copyright Information
@ -57,8 +50,7 @@ mucking with the material, especially the scripts, in this HOWTO.
New Versions
~~~~~~~~~~~~
You can find this document at its
link:&myurl;/Linux-Complete-Backup-and-Recovery-HOWTO.html[home page] or
You can find this document at its link:&myurl;/Linux-Complete-Backup-and-Recovery-HOWTO.html[home page] or
at the http://www.tldp.org/[Linux Documentation Project] web site in
many formats. Please comment to
@ -844,11 +836,7 @@ get from the file `fdisk.hdX` in the root directory of the ZIP drive.
Then re-run it.
_______________________________________________________________________________________________________________________________________________________________________________________________
*Note*
If you have other operating systems or file systems to restore, now is a
good time to do so. When you've done that, reboot to your restoration
Linux and continue your first stage restoration.
Note: If you have other operating systems or file systems to restore, now is a good time to do so. When you've done that, reboot to your restoration Linux and continue your first stage restoration.
_______________________________________________________________________________________________________________________________________________________________________________________________
If you have LVM volumes to restore, now is the time to run `make.lvs`