- Table of Contents
- Copyright
- About the Lead Authors
- About the Contributing Authors
- Acknowledgments
- Tell Us What You Think!
- Introduction
- I. Red Hat Linux Installation and User Services
- Chapter 1. Introduction to Red Hat Linux
- Chapter 2. Installation of Your Red Hat System
- Chapter 3. LILO and Other Boot Managers
- Chapter 4. Configuring the X Window System, Version 11
- Chapter 5. Window Managers
- Chapter 6. Connecting to the Internet
- Chapter 7. IRC, ICQ, and Chat Clients
- Chapter 8. Using Multimedia and Graphics Clients
- II. Configuring Services
- Chapter 9. System Startup and Shutdown
- Chapter 10. SMTP and Protocols
- Chapter 11. FTP
- Chapter 12. Apache Server
- Chapter 13. Internet News
- Chapter 14. Domain Name Service and Dynamic Host Configuration Protocol
- Chapter 15. NIS: Network Information Service
- Chapter 16. NFS: Network Filesystem
- Chapter 17. Samba
- III. System Administration and Management
- Chapter 18. Linux Filesystems, Disks, and Other Devices
- Chapter 19. Printing with Linux
- Chapter 20. TCP/IP Network Management
- Chapter 21. Linux System Administration
- Chapter 22. Backup and Restore
- Chapter 23. System Security
- IV. Red Hat Development and Productivity
- Chapter 24. Linux C/C++ Programming Tools
- Chapter 25. Shell Scripting
- Chapter 26. Automating Tasks
- Chapter 27. Configuring and Building Kernels
- Chapter 28. Emulators, Tools, and Window Clients
- V. Appendixes
- A. The Linux Documentation Project
- B. Top Linux Commands and Utilities
- C. The GNU General Public License
- D. Red Hat Linux RPM Package Listings
Selecting a Backup Tool
Many tools are available for making backups. In addition to numerous third-party applications, Red Hat Linux comes with some standard tools for performing this task. This section examines two of them, tar and cpio.
tar and cpio are very similar. Both are capable of storing and retrieving data from almost any media. In addition, both tar and cpio are ideal for small systems, which Red Hat Linux systems often are. For example, the following tar command saves all files under /home to the standard output (which can then be redirected to your system's backup device or directory):
$ tar c /home >home.tar
The c option tells tar to create a new archive, and the specified directory is used to gather the files. The output is redirected to the file named home.tar.
cpio, although similar to the tar command, has several advantages. First, it packs data more efficiently. Second, it is designed to back up arbitrary sets of files. (tar is designed to back up subdirectories.) Third, cpio is designed to handle backups that span over several tapes. Finally, cpio skips over bad sections on a tape and continues, but tar crashes and burns.
AMANDA
If you're looking for more sophisticated backup software, you can also try AMANDA, the Advanced Maryland Automatic Network Disk Archiver. This free software, from the University of Maryland at College Park, can be used over a network to back up multiple computer filesystems to a single, large-capacity tape drive. Some features include graceful error recovery, compression, scheduling, encryption, and high-speed backup operation.
Red Hat Linux does not include a copy of AMANDA, which is meant for use with high-capacity tape drives, but which may also be used with floptical, CDR, or CD -RW drives. AMANDA is a sophisticated backup tool with features rivaling those of commercial software backup products. Some of these features include network operation, incremental backups, scheduling, and full dump and restore operations.
You can retrieve a copy of AMANDA from ftp://ftp.amanda.org/pub/amanda. The file as distributed by amanda.org will be in a compressed tar archive. Decompress the file and follow instructions for installation. If you'd prefer, you can download a copy in RPM format from http://rpmfind.net/linux/RPM/amanda.html.
To use AMANDA, you'll first need to assign correct user and group permissions to a designated holding directory, then create and edit a default configuration file. The configuration file tells AMANDA how much disk space to use, and what type of backup device is available. After initial configuration, AMANDA commands (and options) are generally run using the su command like this:
# su amanda -c
"amandacommand [cmdoptions]"
AMANDA is a complex but capable backup system (begging for a graphical interface!). For a short tutorial by John R. Jackson, browse to http://www.backupcentral.com/amanda.html. You'll find an FAQ, along with other documentation, and example configuration files under the /usr/share/doc/amanda-2.4.1p1/ directory. AMANDA Tape Backup information, along with the latest release may be found at http://sourceforge.net/project/?group_id=120. For more information, see http://www.amanda.org.
Backup Strategies and Operations | Next Section

Account Sign In
View your cart