1. Computing & Technology

Backup and Recovery How-To

From The Linux Documentation Project

of your ZIP disk. The function crunch in the script Prev takes multiple parameters to feed to tar . It can also take the --exclude parameter. So, for example, you can exclude the samba and X11 directories under /etc like so:


   


crunch etc --exclude etc/samba --exclude etc/X11 etc

Why those two? Because they're hard drive space hogs and we don't need them at boot time.

If you keep multiple kernels around, you can eliminate the modules for all of the kernels you won't boot to. Check your lilo.conf or grub.conf to see which kernel you will use, and then check /lib/modules for module directories you can exclude.

How to find more good candidates for exclusion? List the target directories with ls -alSr for individual files, and du | sort -n for directories.

Another (probably neater) way to exclude directories is to put a complete list of directories into a file, then refer to it via the tar option --exclude-from=FILENAME .

4.1.5. Initrd

If your system uses an initial RAM disk, or initrd, to boot, make sure that Prev creates the directory /initrd . The easiest way to do this is to ensure that it is included in the list of directories used in the directory creating loop toward the end.

Your system will probably use an initrd if it boots from a SCSI drive or has root on an ext3fs partition. Check /etc/lilo.conf to see if it calls for one.

Notes


   Prev    

I emphasize copy because mkisofs will mung the file in the directory from which it makes the ISO image.


   Prev    Home    Next
   Preparation         First Stage Restore

©2012 About.com. All rights reserved.

A part of The New York Times Company.