MondoRescue HOWTO: Utilisation and Configuration of Mondo and Mindi under Linux (Version 3.2.2-r3752) | ||
---|---|---|
We recommend that you read this complete HOWTO. However, if you are too busy or impatient, then please use this QuickStart guide to stay out of trouble.
Install the tarball, RPM, or DEB mindi and mondo packages. (see Installation for more details)
Execute as root (type 'su -' to become root if you are not logged in as root)
Try to boot from the first media of the backup. Choose 'Compare Mode' by typing compare at the boot screen.
If you can boot, fine. If not, make a Mindi "Test" CD to checkout the compatibility of your system. (see Testing Mindi for more details). Remove the media; boot your computer as usual; execute as root
(for CD-R)
bash# cdrecord dev=0,0,0 speed=4 -eject -v mindi.iso |
bash# wodim dev=0,0,0 speed=4 -eject -v mindi.iso |
(for CD-RW)
bash# cdrecord dev=0,0,0 speed=4 blank=fast -eject -v mindi.iso |
bash# wodim dev=0,0,0 speed=4 blank=fast -eject -v mindi.iso |
Reboot your system with the created Mindi CD, with the BIOS set to boot from CD. If the result is a command line in 'Expert' mode, your system checks out. Remove the CD and reboot your system.
If you still cannot boot from Mindi's CD then please e-mail the mondorescue mailing list for help.
When making a backup on a live system, there will always be processes running that will write out data on the system after you have made the backup and before you have made the compare, this will result in difference showing up when comparing your backup. For a full explanation and what can be done to avoid this, please read this section.
This QuickStart covers the ideal case. Upon receiving any system feedback/errors, read each related HOWTO section.
Example 2-1. A test backup of your /home directory to CD-Rs using the command line
The 'c' means you must be writing to CD-Rs, not CD-RWs (the latter would require 'w' instead of 'c'). The '4' is the speed of your CD writer. The string after -I is the path to be backed up. The '-gF' means you are going to see the pretty yellow-on-blue screen instead of the boring white-on-black screen. :) It also means Mondo will not offer to create physical boot media for you. It is assumed that you are able to boot from the CD which Mondo has generated.
Example 2-2. A backup of your whole filesystem to NFS using the command line
bash# mkdir -p /mnt/nfs |
bash# mount nfs://192.168.1.28:/home/nfs /mnt/nfs |
bash# mondoarchive -OVn nfs://192.168.1.28:/home/nfs -gF[...] |
bash# umount /mnt/nfs |
bash# cdrecord dev=0,0,0 speed=4 -eject -v /var/cache/mindi/mindi.iso |
Note that you have to mount the NFS partition, backup to it, unmount it, and create a boot CD to allow you to restore from scratch if necessary. To reassure yourself that you will be able to restore from the NFS share even if your PC is wiped, please boot from the Mindi CD and type 'compare'. The on-screen instructions from that point on should be sufficient.
Example 2-3. A backup of your whole filesystem to tape using the command line
In this case, we assume Syslinux is incompatible with your boot media. For some reason, some BIOSes just don't like Syslinux. If you find this to be the case for your computer, please use '-L' to force Mondo to use LILO instead of Syslinux as the boot loader for its media. (NB: This has nothing to do with which boot loader your hard drive uses.) Also, it is a good habit to specify your tape streamer with '-d <device>'. You don't usually need to but it's good to be on the safe side. Some computers call your tape streamer /dev/osst0, some call it /dev/ftape, ... Also, depending on the tape streamer model, a tape should be inserted in the tape drive before starting mondoarchive, otherwise it may not recognize the drive.