Linux Complete Backup and Recovery HOWTO

Charles Curley

           
        

Revision History
Revision 2.142022-04-08Revised by: c^2
Fdisk now returns the string gpt in either upper or lower case. Other improvements.
Revision 2.132019-07-24Revised by: c^2
save.metadata no longer changes all /dev/sda device names to /dev/hda names. Major changes in the README.
Revision 2.122018-06-09Revised by: c^2
Added checksum generation and testing to improve reliability.
Revision 2.112017-07-29Revised by: c^2
Several improvements after working with Debian 9.
Revision 2.102017-07-12Revised by: c^2
We now check to see if the Perl UUID module is installed and in Perl's module path. Also, this is our first release under git.
Revision 2.92014-01-06Revised by: c^2
Added a new file, which is a list of excludes for use by get.target.
Revision 2.82011-06-13Revised by: c^2
Maintenance release. Many edits due to changes in technology. URL fixes.
Revision 2.72010-01-12Revised by: c^2
More improvements in make.fdisk: Removed a bug related to UUIDs and found a better way to get them.
Revision 2.62009-12-24Revised by: c^2
Improvements in make.fdisk: we now have a better way to get UUIDs, and we can preserve them for swap space.
Revision 2.52008-04-24Revised by: c^2
Changed shebangs in the backup scripts to point to bash instead of sh because some ubunutu installations don't make sh a symlink to bash.
Revision 2.42007-11-08Revised by: c^2
Some Debian/Ubuntu adaptations. see the notes below on them.
Revision 2.32007-05-26Revised by: c^2
Changes for FHS compliance. Changes in save.metadata to handle the libata problem.
Revision 2.22006-07-11Revised by: c^2
Clarified that the ZIP disk is not required, and there are alternatives.
Revision 2.12006-03-28Revised by: c^2
Added notes for NTFS. Edited the To Do list. Started work on LVM and using Finnix.
Revision 2.02005-10-12Revised by: c^2
Notes for Fedora Core 4. Removed notes for older versions of FC and Red Hat. Also, changes in the writeup and scripts to reflect using Knoppix instead of tomsrtbt. See the scripts for change notes. Changed some scripts so that long lines don't fall off the right side of printed pages (oops).
Revision 1.82005-02-19Revised by: c^2
Added notes for Fedora Core 3
Revision 1.72004-05-11Revised by: c^2
Adjusted copyright language.
Revision 1.62004-04-29Revised by: c^2
Added Knoppix notes, Syslinux, PPART, QtParted, some other rescue CDs, and made some fixes.
Revision 1.52003-12-19Revised by: c^2
Fedora 1 and GRUB notes.
Revision 1.42003-08-17Revised by: c^2
Some notes on burning CD-ROMs, and more on files to exclude.
Revision 1.32003-04-24Revised by: c^2
Substituted new email address and URL for old.
Revision 1.22003-02-12Revised by: c^2
Added Red Hat 8.0 notes, support for FAT32, split the first stage restore scripts, and other minor changes. Notes on Amanda.
Revision 1.12002-09-10Revised by: c^2
New code to handle ext3 partitions in make.fdisk, and a note on initrd.
Revision 1.02002-07-24Revised by: c^2
We now use bz2 compression in the first stage, have the run time option to check for bad blocks, and have a script that runs the entire first stage.

Abstract

Imagine your disk drive has just become a very expensive hockey puck. Imagine you have had a fire, and your computer case now looks like something Salvador Dalĩ would like to paint. Now what?

Total restore, sometimes called bare metal recovery, is the process of rebuilding a computer after a catastrophic failure. In order to make a total restoration, you must have complete backups, not only of your file system, but of partition information and other data. This HOWTO is a step-by-step tutorial on how to back up a Linux computer so as to be able to make a bare metal recovery, and how to make that bare metal recovery. It includes some related scripts.


Table of Contents
1. Introduction
1.1. Copyright Information
1.2. Disclaimers
1.3. New Versions
1.4. Credits
1.5. Feedback
1.6. Translations
2. Overview
2.1. Limitations
3. Preparation
3.1. Installing the ZIP Drive
3.2. Backup Server
4. Creating the Stage 1 Back Up
4.1. The Archive
4.2. Theme And Variations
5. First Stage Restore
5.1. Booting
5.2. Restoration
6. Second Stage Restoration
7. Distribution Specific Notes
7.1. Debian/Ubuntu
7.2. Fedora
7.3. Knoppix
7.4. Finnix
8. Application Specific Notes
8.1. Logical Volume Manager
8.2. LUKS
8.3. systemd
8.4. Selinux
8.5. GRUB
8.6. Tripwire
8.7. Squid
8.8. Arkeia
8.9. Amanda
8.10. NTFS
9. Some Advice for Disaster Recovery
10. What Now?
10.1. To Do
11. The Scripts
11.1. First Stage
11.2. Second Stage
11.3. Backup Server Scripts
11.4. Miscellaneous Files
12. Resources
A. GNU Free Documentation License
0. PREAMBLE
1. APPLICABILITY AND DEFINITIONS
2. VERBATIM COPYING
3. COPYING IN QUANTITY
4. MODIFICATIONS
5. COMBINING DOCUMENTS
6. COLLECTIONS OF DOCUMENTS
7. AGGREGATION WITH INDEPENDENT WORKS
8. TRANSLATION
9. TERMINATION
10. FUTURE REVISIONS OF THIS LICENSE
11. How to use this License for your documents