Changeset 328 in MondoRescue
- Timestamp:
- Jan 17, 2006, 11:42:18 AM (19 years ago)
- Location:
- branches/2.06/documentation
- Files:
-
- 20 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.06/documentation/Makefile
r327 r328 7 7 8 8 $(TARGET).txt: $(SRC) 9 docbook2txt -u $(TARGET).sgml -o $(TARGET).txt9 docbook2txt $(TARGET).sgml 10 10 11 11 $(TARGET).ps: $(SRC) $(DSL) $(IMAGES) 12 docbook2ps -d $(TARGET).dsl'#print' -o $(TARGET).ps $(TARGET).sgml 12 #docbook2ps -d $(TARGET).dsl'#print' -o $(TARGET).ps $(TARGET).sgml 13 docbook2ps $(TARGET).sgml 14 hugelatex -fmt=jadetex -mltex $(TARGET).tex 15 hugelatex -fmt=jadetex -mltex $(TARGET).tex 16 hugelatex -fmt=jadetex -mltex $(TARGET).tex 17 dvips $(TARGET).dvi -o $(TARGET).ps 13 18 14 19 $(TARGET)/index.html: $(SRC) $(DSL) $(IMAGES) 15 mkdir -p $(TARGET) 16 cd $(TARGET) 17 docbook2html -d $(TARGET).dsl'#html' $(TARGET).sgml 18 cd .. 20 rm -f $(TARGET) 21 docbook2html -d $(TARGET).dsl'#html' -o $(TARGET) $(TARGET).sgml 19 22 20 23 $(TARGET).html: $(SRC) $(DSL) $(IMAGES) 21 docbook2html -u -d $(TARGET).dsl'#txt' -o $(TARGET).html$(TARGET).sgml24 docbook2html -u -d $(TARGET).dsl'#txt' $(TARGET).sgml 22 25 23 26 $(TARGET).pdf: $(SRC) $(DSL) $(IMAGES) 24 docbook2html -u -d $(TARGET).dsl'#pdf' -o $(TARGET).pdf $(TARGET).sgml 27 docbook2pdf -d $(TARGET).dsl'#pdf' $(TARGET).sgml 28 hugepdflatex -fmt=jadetex -mltex $(TARGET).tex 29 hugepdflatex -fmt=jadetex -mltex $(TARGET).tex 30 hugepdflatex -fmt=jadetex -mltex $(TARGET).tex 31 dvips $(TARGET).dvi -o $(TARGET).pdf 25 32 26 33 $(TARGET).rtf: $(SRC) $(DSL) $(IMAGES) 27 docbook2rtf - u -d $(TARGET).dsl'#pdf' -o $(TARGET).rtf$(TARGET).sgml34 docbook2rtf -d $(TARGET).dsl'#pdf' $(TARGET).sgml 28 35 29 36 clean: -
branches/2.06/documentation/fdl.sgml
r324 r328 17 17 </blockquote> 18 18 19 <sect1 label="0">19 <sect1 id="fdl-preamble" label="0"> 20 20 <title>PREAMBLE</title> 21 21 … … 44 44 </sect1> 45 45 46 <sect1 label="1">46 <sect1 id="fdl-def" label="1"> 47 47 <title>APPLICABILITY AND DEFINITIONS</title> 48 48 … … 112 112 </sect1> 113 113 114 <sect1 label="2">114 <sect1 id="fdl-verbatimcp" label="2"> 115 115 <title>VERBATIM COPYING</title> 116 116 … … 130 130 </sect1> 131 131 132 <sect1 label="3">132 <sect1 id="fdl-quantitycp" label="3"> 133 133 <title>COPYING IN QUANTITY</title> 134 134 … … 172 172 </sect1> 173 173 174 <sect1 label="4">174 <sect1 id="fdl-modif" label="4"> 175 175 <title>MODIFICATIONS</title> 176 176 … … 303 303 </sect1> 304 304 305 <sect1 label="5">305 <sect1 id="fdl-combining" label="5"> 306 306 <title>COMBINING DOCUMENTS</title> 307 307 … … 330 330 </sect1> 331 331 332 <sect1 label="6">332 <sect1 id="fdl-collection" label="6"> 333 333 <title>COLLECTIONS OF DOCUMENTS</title> 334 334 … … 347 347 </sect1> 348 348 349 <sect1 label="7">349 <sect1 id="fdl-aggregation" label="7"> 350 350 <title>AGGREGATION WITH INDEPENDENT WORKS</title> 351 351 … … 368 368 </sect1> 369 369 370 <sect1 label="8">370 <sect1 id="fdl-translation" label="8"> 371 371 <title>TRANSLATION</title> 372 372 … … 384 384 </sect1> 385 385 386 <sect1 label="9">386 <sect1 id="fdl-term" label="9"> 387 387 <title>TERMINATION</title> 388 388 … … 397 397 </sect1> 398 398 399 <sect1 label="10">399 <sect1 id="fdl-futurerev" label="10"> 400 400 <title>FUTURE REVISIONS OF THIS LICENSE</title> 401 401 … … 418 418 </sect1> 419 419 420 <sect1 label="">420 <sect1 id="fdl-howto" label=""> 421 421 <title>How to use this License for your documents</title> 422 422 -
branches/2.06/documentation/mondorescue-howto.sgml
r327 r328 9 9 10 10 <book> 11 11 12 <bookinfo> 12 13 <title>MondoRescue HOWTO</title> … … 17 18 18 19 <pubdate> 19 20 20 in its latest version the 21 &curdate;</pubdate> 21 &curdate; 22 </pubdate> 23 22 24 <abstract> 23 25 <para> … … 31 33 </para> 32 34 </abstract> 35 33 36 <author> 34 37 <firstname>Bruno</firstname> … … 47 50 Bryan J. Smith 48 51 --> 52 49 53 <copyright> 50 54 <year>2000-2006</year> 51 55 <holder role="mailto:bcornec@users.berlios.de">Bruno Cornec</holder> 52 56 </copyright> 57 53 58 <legalnotice> 54 59 <title>License</title> … … 67 72 , or even if it breaks the hardware. All the software included in it, if not alr 68 73 eady copyrighted is released under the GPL. 69 70 74 </para> 71 75 </legalnotice> 76 72 77 <revhistory> 73 <revnumber>2.06</revnumber> 74 <date>2006-01-16</date> 75 <authorinitials>Bruno Cornec</authorinitials> 76 <revdescription> 77 <para> 78 First SGML version publically available, remade from the HTML docs of the project. 79 </para> 80 </revdescription> 78 <revision> 79 <revnumber>2.06</revnumber> 80 <date>2006-01-16</date> 81 <authorinitials>Bruno Cornec</authorinitials> 82 <revdescription> 83 <para> 84 First SGML version publically available, remade from the HTML docs of the project. 85 </para> 86 </revdescription> 81 87 </revision> 82 88 </revhistory> … … 114 120 However, software editors don't garantee you a lot either (re-read the contracts). 115 121 </para> 116 117 <sect2 id="newversion"><title>New versions of this document</title> 122 </sect1> 123 124 <sect1 id="newversion"><title>New versions of this document</title> 118 125 119 126 <para>The newest version of this document can always be found on … … 122 129 If you make a translation of this document into another language, please let meknow so that I can include a reference to it here. 123 130 </para> 124 </sect2> 125 <sect2><title>Suggestions / Feedback</title> 131 </sect1> 132 133 <sect1><title>Suggestions / Feedback</title> 126 134 <para> 127 135 I rely on you, the reader, to make this HOWTO useful. THis HOWTO is probably incomplete even if it tries to be accurate to the best of our knowledge. … … 148 156 any tangible help because you aren't either. That's what the log 149 157 file is for. It is located at <filename>/var/log/mondo-archive.log</filename>; and <filename>/var/log/miindi.log</filename> or at <filename>/var/log/mondo-restore.log</filename> 158 </para> 150 159 <para> 151 160 This document was originaly written by native english speakers, but is maintained by a non-native english speaker so help me correct mistaques instead of rumbling that I've done one :-) … … 159 168 Guylhem AZNAR <email>guylhem@rrremovethis.oeil.qc.ca</email>. 160 169 </para> 161 </sect 2>162 163 <sect 2id=thanks><title>Aknowledgements</title>170 </sect1> 171 172 <sect1 id=thanks><title>Aknowledgements</title> 164 173 165 174 <para>Thanks goes to these people for helping and adding to this … … 212 221 </itemizedlist> 213 222 214 </sect2> 215 216 <sect1 id="quickstart"><title>QuickStart</title> 223 </sect1> 224 </chapter> 225 226 <chapter id="quickstart"><title>QuickStart</title> 217 227 <itemizedlist mark="bullet" spacing="Compact"> 218 228 <listitem> … … 223 233 <listitem> 224 234 <para>Install the tarball, RPM, or DEB mindi and mondo 225 packages. (see < xref linkend="installation">Installation</xref>235 packages. (see <link linkend="installation">Installation</link> 226 236 for more details)</para> 227 237 </listitem> … … 447 457 <para>If you can boot, fine. If not, make a Mindi "Test" CD to 448 458 checkout the compatibility of your system. (see 449 < xref linkend="testingmindi">Testing Mindi</xref> for more459 <link linkend="testingmindi">Testing Mindi</link> for more 450 460 details). Remove the CD/floppy; boot your computer as usual; 451 461 execute as root</para> … … 493 503 <listitem> 494 504 <para>If you still cannot boot from Mindi's CD then please e-mail 495 the < xref linkend="feedback">mailing list</xref> for help.505 the <link linkend="feedback">mailing list</link> for help. 496 506 </para> 497 507 </listitem> … … 577 587 </itemizedlist> 578 588 579 </sect1> 589 </chapter> 590 591 <chapter id="overview"><title>Overview</title> 592 593 <sect1 id="mondorescue"> 594 <title>Mondo Rescue</title> 595 <para>Mondo Rescue backs up your file system to CD, tape, NFS 596 (archives stored remotely) or ISO's (archives stored locally). 597 Mondo uses afio as the backup engine; afio is a well-respected 598 replacement for tar. In the event of catastrophic data loss, you 599 may restore some or all of your system, even if your hard drives 600 are now blank. Mondo Rescue can do a lot of other cool 601 things:</para> 602 <itemizedlist> 603 <listitem> 604 <para>You can use Mondo to clone an installation of Linux. Just 605 backup the crucial stuff and exclude /home, /var/log, etc.</para> 606 </listitem> 607 <listitem> 608 <para>You can backup a non-RAID file system and restore it as RAID 609 including the root partition (if your kernel supports that).</para> 610 </listitem> 611 <listitem> 612 <para>You can backup a system running on one format and restore as 613 another format.</para> 614 </listitem> 615 <listitem> 616 <para>You can restructure your partitions, e.g. shrink/enlarge, 617 reassign devices, add hard drives, etc, before you partition and 618 format your drives. Mondo will restore your data and amend 619 /etc/lilo.conf and /etc/fstab accordingly.</para> 620 </listitem> 621 <listitem> 622 <para>You can backup Linux/Windows systems, including the boot 623 sectors. Mondo will make everything right at restore-time. 624 (However, do run "Scandisk" when you first boot into Windows, just 625 in case.)</para> 626 </listitem> 627 <listitem> 628 <para>You can use your Mondo backup CD to verify the integrity of 629 your computer.</para> 630 </listitem> 631 </itemizedlist> 632 <para>Mondo's principal virtue is that it protects you from the 633 problems that can arise when you reinstall completely from scratch. 634 If you want to wipe and restore your system every year just as a 635 matter of 'good practice', Mondo is not for you. However, if you 636 want to get up and running again in a hurry after someone breaks 637 into your computer and wipes it (or if you accidentally wipe it 638 yourself) then Mondo is definitely for you. It will permit you to 639 roll back to a known-good installation in a very short period of 640 time, sometimes as little as twenty minutes. Even if you backup 641 large amounts of data to tape daily and do not want to add yet 642 another backup regime, please consider backing up the core 643 filesystem (i.e. everything but the directories containing your 644 huge database and your prizewinning novel) every month or so, just 645 in case. You will be glad you did.</para> 646 <para>What is Mondo not?</para> 647 <para>Mondo is not an everyday backup program. It is not designed 648 to replace tar, afio, kbackup, etc. Mondo is designed to make it 649 possible to recover from scratch if necessary. Tar and afio offer a 650 quick, convenient way to backup small sets of files, sometimes to 651 removable media.</para> 652 </sect1> 653 654 <sect1 id="mindi"> 655 <title>Mindi</title> 656 <para> 657 Mindi Linux creates a set of boot/root floppy disk images 658 that will let you perform basic system maintenance on your Linux 659 distro. The principal virtues of Mindi's boot disks are the fact 660 that they contain your kernel, modules, tools and libraries. You 661 can ask for additional binaries (or other files) to be included on 662 the kit. The libraries will be added for you. 663 </para> 664 <para>Whichever modules were loaded at backup-time, they are 665 reloaded at boot-time. So, in theory, you will boot into almost the 666 same environment as you were in when you backed up. If you want to 667 add files to your Mindi boot disks, edit '<INSTALLPATH OF 668 MINDI>/mindi/deplist.txt' and add the files to that list. The 669 added files and dependencies, will be spread across the data disks 670 at run-time. 671 </para> 672 <para>Mindi makes sure that Mondo has all the tools it needs at 673 boot-time. Mondo uses fdisk, mkfs, cat, less, more, afio, gzip, 674 bzip2, your keyboard configuration, your glibc libraries, your 675 other libraries, your kernel, your modules, ... a lot! Mindi takes 676 care of all that, so that Mondo can get on with the job of backing 677 up or restoring your data. 678 </para> 679 <para>Mindi is also handy for making boot CDs/disks which stand on 680 their own. You do not need Mondo. Indeed, if you like, you could 681 use another backup/restore program with Mindi. Just add it to 682 Mindi's dependency list (type 'locate deplist.txt' to find it). 683 Mindi will include your software on its boot CD/disks the next time 684 you run mindi. 685 </para> 686 </sect1> 687 688 689 <sect1 id="linuxbackup"> 690 <title>Linux Backup</title> 691 <para>Mondo Rescue and Mindi Linux are used primarily as Linux 692 backup and cloning tools. The fall in prices of CD-RW drives and 693 writable discs will allow current users to keep good backups and 694 future users to leverage the cloning capability.</para> 695 <para>Tape drives are more likely to suit your needs if you run a 696 larger installation (or have lots of MP3's). Warning! OnStream 697 drives do not play well with Mondo. I do not know why. It is, in my 698 opinion, something which OnStream should look into. Mondo uses 699 fopen(), fread(), fwrite() and fclose() to interact with tape 700 drives. That works for most drives but some drives just don't like 701 that.</para> 702 <para>I have tested it thousands of times on my own computer with 703 my own data and with no alternate backup regime. It worked for me. 704 Thousands of users testify to Mondo's stability and its ease of 705 use. However, please test it on your own system before you rely on 706 it. In fact, do not rely on any software until you have tested it 707 to see if it performs as expected.</para> 708 <para>To establish that Mondo will behave well in an emergency, 709 please be prepared. Run a test backup as follows:-</para> 710 <itemizedlist> 711 <listitem> 712 <para>Run mondoarchive without any command-line options.</para> 713 </listitem> 714 <listitem>Backup a subset of files - e.g. /usr/local - to CD or 715 tape. Say 'yes' when asked if you want to verify them.</listitem> 716 <listitem>If you are not backing up to CD, please create boot 717 floppies when prompted.</listitem> 718 </itemizedlist> 719 <para>Next, restore archives to your live filesystem.</para> 720 <itemizedlist> 721 <listitem> 722 <para>When mondoarchive terminates, run mondorestore without any 723 command-line options.</para> 724 </listitem> 725 <listitem>Insert the CD or the first boot floppy when prompted. 726 Press <Enter>. Wait a moment.</listitem> 727 <listitem>Select a subset of files to restore, e.g. /usr/local/man 728 and /usr/local/bin. Hit OK.</listitem> 729 <listitem>Restore files to /tmp or /root/RESTORED or something 730 similar.</listitem> 731 <listitem>When mondorestore terminates, compare the restored files 732 to the originals using cmp or diff.</listitem> 733 </itemizedlist> 734 <para>Finally, simulate an emergency restore.</para> 735 <itemizedlist> 736 <listitem> 737 <para>Boot from CD/floppies.</para> 738 </listitem> 739 <listitem>Select 'Interactive Mode' at boot-time. (Type 740 'interactive' and hit <Enter>.)</listitem> 741 <listitem>Hit OK when shown the mountlist. Say 'yes' when asked if 742 you accept the mountlist.</listitem> 743 <listitem>Select files to restore, e.g. /usr/local/man and 744 /usr/local/bin. Hit OK.</listitem> 745 <listitem>Restore files to /tmp or /root/RESTORED or something 746 similar.</listitem> 747 <listitem>When mondorestore terminates, please reboot and compare 748 the restored files to the originals.</listitem> 749 </itemizedlist> 750 <para>FYI, the subroutines to repartition and reformat your drives 751 are very stable. If you are a RAID or LVM user, you 752 might encounter some difficulties when wiping and restoring 753 from scratch because of the sheer range of filesystem layouts and 754 the impossibility of testing Mondo on every single one. If you have 755 trouble, just drop to the command-line and partition/format 756 manually. Then, call mondorestore, select Interactive Mode, and say 757 'no' when asked if you want Mondo to partition or format your 758 drives for you.</para> 759 <para>You see, even if you have trouble, you still have two hands 760 and most of the tools you need - lvchange, pvcreate, fdisk, mkraid, 761 etc. - to do it manually. After you have prepped and formatted your 762 drives manually (if you have to), just run mondorestore again and 763 say 'no' when asked if you want to prep or format your drives. What 764 could be easier?</para> 765 </sect1> 766 767 <sect1 id="winbackup"> 768 <title>Windows Backup</title> 769 <para>Backing up windows partitions.</para> 770 <sect2 id="win95"><title>Windows ME/95/98</title> 771 <para>Verify that the partition is listed in /etc/fstab and is 772 mounted (e.g. /dev/hda1). Mondo will take care of everything else. 773 The files will be archived just like all other files in the live 774 file system. At restore-time, Mondo will take care of the boot 775 sector of /dev/hda1 prior to the restore.</para> 776 <para>Note: if Windows ME/95/98 is not located on /dev/hda1 or 777 /dev/sda1, then Mondo will not take care of the boot sector of 778 /dev/hda1. The user will have to boot from a DOS floppy and run SYS 779 C: to correct the Windows boot sector.</para> 780 </sect2> 781 <sect2 id="winnt"><title>Windows NT4/2K/XP</title> 782 <para>Windows NT4/2K/XP typically use the NTFS file system, not 783 VFAT.. The user should use '-x /dev/hda1' (or whichever device the 784 /dev/hda1. The user will have to boot from a DOS floppy and run SYS 785 C: to correct the Windows boot sector.</para> 786 </sect2><sect2 id="AEN13"><title>3.4.2. Windows NT4/2K/XP</title> 787 <para>Windows NT4/2K/XP typically use the NTFS file system, not 788 VFAT.. The user should use '-x /dev/hda1' (or whichever device the 789 Windows partition resides). Mondo will treat the partition as a 790 biggiefile. Mondo will also add an entry to the mountlist to 791 reflect the size and type of the partition. The user may not edit 792 that partition's size at restore-time (for obvious reasons).</para> 793 <para>Please bear in mind that Mondo was written for Linux users. 794 If Mondo does not backup or restore your Windows system well, you 795 might want to consider paying for 1-to-1 technical support. 796 Ironically, the only people to pay for 1-to-1 technical support 797 have been Linux users, whereas Windows users want a free ride. That 798 is one reason why the Linux community gives me warm fuzzies.</para> 799 </sect1> 800 801 <sect1 id="history"> 802 <title>Mondo Rescue and Mindi Linux 803 History</title> 804 <para>Mondo Rescue was created in December 1999 as a utility to 805 clone Linux/Windows installations. Norton Ghost would not do the 806 job, and my boss wanted to jump on the Linux bandwagon. So, I wrote 807 a few scripts and shoehorned them into the latest Linux-Mandrake 808 CD. Since that time, Mondo grew into a disaster recovery suite for 809 Linux and Windows. Mondo forced me to learn about the kernel, its 810 initrd initial ramdisk, modules, library dependencies, disk 811 partitioning, and the myriad differences between the Top 10 Linux 812 distributions.</para> 813 a few scripts and shoehorned them into the latest Linux-Mandrake 814 CD. Since that time, Mondo grew into a disaster recovery suite for 815 Linux and Windows. Mondo forced me to learn about the kernel, its 816 initrd initial ramdisk, modules, library dependencies, disk 817 partitioning, and the myriad differences between the Top 10 Linux 818 distributions.</para> 819 <para>The first formal release was made on February 18th, 2000. 820 Mondo is currently one of the top five Linux backup/restore 821 programs. Mondo has been compared favorably to ArcServe, Arkeia and 822 BRU. Although Mondo lacks the more advanced, enterprise-level 823 features of ArcServe and Arkeia, for workstations and small- to 824 medium-size servers it is ideal because it is small, fast, 825 efficient, stable, comes with source code, and is being actively 826 developed and supported.</para> 827 </sect1> 828 829 <sect1 id="sysreq"> 830 <title>System 831 Requirements</title> 832 <sect2 id="hwreq"> 833 <title>Hardware Requirements</title> 834 835 <para>Your computer must have:</para> 836 <itemizedlist> 837 <listitem> 838 <para>Intel(R)-compatible CPU</para> 839 </listitem> 840 <listitem> 841 <para>64MB of RAM (128MB recommended)</para> 842 </listitem> 843 <listitem> 844 <para>800MB of hard disk space free</para> 845 </listitem> 846 <listitem> 847 <para>CD writer, tape streamer, NFS share or some way to backup the 848 backups :)</para> 849 </listitem> 850 </itemizedlist> 851 <para>It is recommended that your computer have very good airflow. 852 The backup with Mondo Rescue and Mindi Linux will utilize your CPU, 853 CD drive and fixed disk(s) like very few other applications. With a 854 few hours of system backup activity, computers without sufficient 855 airflow may show symptoms such as not burning full CD discs. The 856 solution is a $20 or less additional fan at your local electronics 857 discount store.</para> 858 </sect2> 859 860 <sect2 id="kernelreq"> 861 <title>Kernel Requirements</title> 862 863 <para>Your kernel must have:</para> 864 <itemizedlist> 865 <listitem> 866 <para>stable loopfs support, which means it really needs to be 867 2.2.19 or 2.4.7 (or later)</para> 868 </listitem> 869 <listitem> 870 <para>CD-ROM device support</para> 871 </listitem> 872 <listitem> 873 <para>ISO9660 file system support</para> 874 </listitem> 875 <listitem> 876 <para>initrd ramdisk support (built-in)</para> 877 </listitem> 878 <listitem> 879 <para>Virtual memory file system support (built-in)</para> 880 </listitem> 881 <listitem> 882 <para>floppy disk support (built in)</para> 883 </listitem> 884 <listitem> 885 <para>ext2 file system support (built-in)</para> 886 </listitem> 887 <listitem> 888 <para>Support for the backup media (Tape, CD-RW, NFS, Hard 889 disk)</para> 890 </listitem> 891 <listitem> 892 <para>If the backup media is CD-RW then you need SCSI emulation 893 also</para> 894 </listitem> 895 </itemizedlist> 896 <para>Please note that the stock kernels of Red Hat 7.2, 7.3, 8.0, 897 Mandrake 8.2, 9.0, SuSE 7.x,, 8.x, and Slackware 8.x all meet 898 Mondo's requirements. If your kernel does not meet Mondo's 899 requirements then there is something wrong with it. Mondo's demands 900 are not unreasonable.</para> 901 <para>Mondo (specifically Mindi) does not require any specific 902 modules. It does require that your kernel support the initrd 903 initial ramdisk facility. Typically this is supported by the Linux 904 kernel. Modules used are needed to support the CD, floppy disks, 905 hard disks, etc. If the support is modular, then the modules will 906 be incorporated in a boot disk by Mindi. If the support is built-in 907 (static), then it will be available at boot-time by default.</para> 908 </sect2> 909 <sect2 id="swreq"> 910 <title>Software Requirements</title> 911 <para>See Mondo's <ulink url="../download.html">Download 912 page</ulink> for details.</para> 913 <para>Mondo requires afio, bzip2, cdrtools/cdrecord, ncurses, newt, 914 isolinux/syslinux, lzo (optional), lzop (optional), mkisofs, slang, 915 and a few other packages.</para> 916 <para>Good Linux distributions provide all these packages. If yours 917 does not then please go to the aforementioned Download page or surf 918 the Net, preferably the website of the distribution you are 919 using.</para> 920 <para>Mondo's expectations are not unreasonable, either of your 921 Linux distribution or of your kernel. However, if your distribution 922 fails to meet its expectations and you cannot find out how to 923 resolve them, please feel free to e-mail the 924 <ulink url="../../feedback/feedback.html">mailing 925 </sect2> 926 </sect1> 927 </chapter> 928 929 <chapter id="installation"> 930 <title>Installation</title> 931 932 <sect1 id="mindi-install"> 933 <title>Mindi Installation</title> 934 <para>If you are installing from a tarball then copy it to wherever 935 you have enough space, for example /tmp and type:</para> 936 <para></para> 937 <informaltable><tgroup cols="1"><tbody> 938 <row> 939 <entry> 940 941 bash# cd /tmpbash# tar -zxvf mindi-0.7x.tgzbash# cd mindi-0.7xbash# ./install.sh 942 943 </entry> 944 </row> 945 </tbody></tgroup></informaltable> 946 947 <para>This installs mindi into /usr/local/share/mindi and installs 948 links to the programs into /usr/local/sbin</para> 949 <para>Or, if you are installing from an RPM then copy it to 950 wherever you have enough space, for example /tmp and type:</para> 951 <para></para> 952 <informaltable><tgroup cols="1"><tbody> 953 <row> 954 <entry> 955 956 bash# rpm -Uvh /tmp/mindi-0.7x-x.i386.rpm 957 958 </entry> 959 </row> 960 </tbody></tgroup></informaltable> 961 962 <para>This installs mindi into /usr/share/mindi and installs links 963 to the programs into /usr/sbin. This may be /usr/local/share/mindi 964 and /usr/local/sbin, depending on the package you use. Different 965 Linux distributions put system files in different places. The funny 966 thing is, each distribution claims it is right and the others are 967 wrong. Oh, and they all agree that I mustn't have read the LFS! 968 :-)</para> 969 <para>Debian users may wish to first create a .deb file and then 970 use the debian package manager:</para> 971 <para></para> 972 <informaltable><tgroup cols="1"><tbody> 973 <row> 974 <entry> 975 976 bash# cd /tmpbash# alien mindi*.rpmbash# dpkg -i mindi*.deb 977 978 </entry> 979 </row> 980 </tbody></tgroup></informaltable> 981 982 <para>This installs mindi into /usr/share/mindi and installs links 983 to the programs into /usr/sbin</para> 984 </sect1> 985 986 <sect1 id="mondo-install"> 987 <title>Mondo Installation</title> 988 <para>If you are installing from a tarball then copy it to wherever 989 you have enough space, for example /tmp and type:</para> 990 <para></para> 991 <informaltable><tgroup cols="1"><tbody> 992 <row> 993 <entry> 994 995 bash# cd /tmpbash# tar -zxvf mondo-1.xx.tgzbash# cd mondo-1.xxbash# make && make install 996 997 </entry> 998 </row> 999 </tbody></tgroup></informaltable> 1000 1001 <para>This installs mondo into /usr/local/share/mondo and installs 1002 links to the programs into /usr/local/bin</para> 1003 <para>Or, if you are installing from an RPM then copy it to copy it 1004 to wherever you have enough space, for example /tmp and 1005 type:</para> 1006 <para></para> 1007 <informaltable><tgroup cols="1"><tbody> 1008 <row> 1009 <entry> 1010 1011 bash# rpm -Uvh /tmp/mondo-1.5x-x.i386.rpm 1012 1013 </entry> 1014 </row> 1015 </tbody></tgroup></informaltable> 1016 1017 <para>This installs mondo into /usr/share/mondo and installs links 1018 to the programs into /usr/bin</para> 1019 <para>Debian users may wish to first create a .deb file and then 1020 use the debian package manager:</para> 1021 <para></para> 1022 <informaltable><tgroup cols="1"><tbody> 1023 <row> 1024 <entry> 1025 1026 bash# cd /tmpbash# alien mondo*.rpmbash# dpkg -i mondo*.deb 1027 1028 </entry> 1029 </row> 1030 </tbody></tgroup></informaltable> 1031 1032 <para>This installs mondo into /usr/share/mondo and installs links 1033 to the programs into /usr/bin</para> 1034 </sect1> 1035 </chapter> 1036 1037 <chapter id="test"> 1038 <title>Tests</title> 1039 1040 <sect1 id="mindi-test"> 1041 <title>Testing Mindi</title> 1042 1043 <para>Mindi is a vital part of the backup procedure. If you have 1044 used Mondo before or if you are in a hurry, skip steps 6.2 and 6.3; 1045 go straight to QuickStart.</para> 1046 <para>However, if you have time or if you have been having trouble 1047 getting Mondo to work, I would recommend trying out Mindi directly 1048 (rather than via Mondo) to see if it can produce a bootable CD on 1049 your system.</para> 1050 <para>Make sure you are root while doing this, otherwise mindi will 1051 fail, now do this.</para> 1052 <para>If you have any problems, please:-</para> 1053 <itemizedlist> 1054 <listitem> 1055 <para>read /var/log/mindi.log</para> 1056 </listitem> 1057 <listitem>feel free to edit mindi (it's a shell script, btw) to try 1058 to fix the problem yourself</listitem> 1059 <listitem>contact the mailing list if you get stuck.</listitem> 1060 </itemizedlist> 1061 <para>Type:-</para> 1062 <para></para> 1063 <informaltable><tgroup cols="1"><tbody> 1064 <row> 1065 <entry> 1066 1067 bash# mindi 1068 1069 </entry> 1070 </row> 1071 </tbody></tgroup></informaltable> 1072 1073 <para>Example screen output, selecting to use your own kernel, to 1074 create boot disks, and to create a bootable CD image:</para> 1075 <para></para> 1076 <informaltable><tgroup cols="1"><tbody> 1077 <row> 1078 <entry> 1079 1080 Mindi Linux mini-distro generator v0.72 by HRabson <hugorabson@msn.com>-------------------------- 1081 ----------------------------------------------------Do you want to use your own kernel to build the boo 1082 t disk (y/n) ? yYour kernel is /boot/vmlinuz-2.4.14-k6 (v2.4.14-k6)Generating list of dependency files. 1083 ....................... Done.Analyzing your keyboard's configuration.Adding the following keyboard mapp 1084 ing tables:................... DoneDropping i686-optimized libraries if appropriate.............DoneAss 1085 embling dependency files........ Done.The files have been subdivided into 2 directories.Your mountlist 1086 will look like this:-DEVICE MOUNTPOINT FORMAT SIZE (MB)/dev/hda3 / ext2 996/dev/hda2 swap swap 127/dev/ 1087 hda4 /usr ext2 6189Tarring and zipping the groups......... Done.Creating data disk #1...#2... Done.1722 1088 KB boot disk was created OK............................ Done.2880KB boot disk was created OK........... 1089 ................. Done.In the directory '/root/images/mindi' you will find the images:-mindi-boot.1722. 1090 img mindi-boot.2880.img mindi-data-1.img mindi-data-2.imgWould you like to create boot+data floppy disk 1091 s now (y/n) ?yWARNING! THIS WILL ERASE YOUR FLOPPY DISKS.About to write boot disk. Please press ENTER.W 1092 riting boot disk.................................................. Done.About to write data disk #1. Pl 1093 ease press ENTER.Writing data disk #1........................... Done.About to write data disk #2. Plea 1094 se press ENTER.Writing data disk #2........................... Done.Shall I make a bootable CD image? ( 1095 y/n) yFinished.One 1.72MB boot disk, one 2.88MB boot disk and 2 data disks were created. 1096 1097 </entry> 1098 </row> 1099 </tbody></tgroup></informaltable> 1100 1101 <para>If your kernel is too large (more than about 900KB) then you 1102 cannot make boot floppies, although you can still make a bootable 1103 CD image. The easiest way to test Mindi in either case is to say 1104 'n' to its first question and 'y' to its second, then use the 1105 separate application cdrecord to make a bootable CD-R or 1106 CD-RW.</para> 1107 <para>Use the cdrecord application to write the CD image:</para> 1108 <para></para> 1109 <informaltable><tgroup cols="1"><tbody> 1110 <row> 1111 <entry> 1112 1113 bash# cd /root/images/mindibash# cdrecord -scanbus 1114 1115 </entry> 1116 </row> 1117 </tbody></tgroup></informaltable> 1118 1119 <para>The output of the above call to cdrecord will tell you your 1120 CD writer's node. It is usually '0,0,0'. Choose one of the 1121 following calls to write the CD, depending on whether the disk in 1122 the drive is a CD-R or a CD-RW. Please replace 'x,x,x' with your 1123 writer's node. For further information, type 'man cdrecord" from a 1124 Linux command line.</para> 1125 <para>If writing to a CD-RW Drive/Disc:</para> 1126 <para></para> 1127 <informaltable><tgroup cols="1"><tbody> 1128 <row> 1129 <entry> 1130 1131 bash# cdrecord -blank fast dev=x,x,x speed=4 mindi.iso (for CD-RW) 1132 1133 </entry> 1134 </row> 1135 </tbody></tgroup></informaltable> 1136 1137 <para>If writing to a CD-R Drive/Disc:</para> 1138 <para></para> 1139 <informaltable><tgroup cols="1"><tbody> 1140 <row> 1141 <entry> 1142 1143 bash# cdrecord dev=x,x,x speed=4 mindi.iso (for CD-R) 1144 1145 </entry> 1146 </row> 1147 </tbody></tgroup></informaltable> 1148 </sect1> 1149 <sect1 id="mondo-test"> 1150 <title>Testing Mondo</title> 1151 1152 </sect1> 1153 </chapter> 1154 1155 <chapter id="backup"> 1156 <title>Backup</title> 1157 1158 <sect1 id="backup-recommandations"> 1159 <title>Recommandations</title> 1160 <para>Mama does Mondo? Papa does Mondo? Is that a Dean Martin song? 1161 Well, anyway, here is how I backup my system:</para> 1162 <itemizedlist> 1163 <listitem> 1164 <para>Shut down all possible applications (this minimizes any 1165 compare differences following the backup)</para> 1166 </listitem> 1167 <listitem> 1168 <para>Type:</para> 1169 </listitem> 1170 </itemizedlist> 1171 <para></para> 1172 <informaltable><tgroup cols="1"><tbody> 1173 <row> 1174 <entry> 1175 1176 bash# mondoarchive 1177 1178 </entry> 1179 </row> 1180 </tbody></tgroup></informaltable> 1181 1182 <para>For most users, that should be enough. :-) Mondoarchive will 1183 usually autodetect your hardware and configure it for you.</para> 1184 <para>If you are a power user (or you like to control every detail 1185 of how Mondo runs) then you may want to look at the command-line 1186 switches. For example:-</para> 1187 <para></para> 1188 <informaltable><tgroup cols="1"><tbody> 1189 <row> 1190 <entry> 1191 1192 bash# mondoarchive -Ow4 -gF -I /home 1193 1194 </entry> 1195 </row> 1196 </tbody></tgroup></informaltable> 1197 1198 <para>Cdrecord will tell me where my CD recorder lives, in SCSI 1199 terms, which in my case is '0,0,0'. The call to mondoarchive tells 1200 Mondo that I want to backup everything to a 4x CD-RW drive that has 1201 a CD-RW disk in it. (Use -Oc instead of -Ow if you are using 1202 CD-R.)</para> 1203 <para>Please put the first CD-R(W) in the drive now. You will be 1204 prompted to insert CD #2 but you will not be prompted to insert the 1205 first disk. However, if you forget, do not worry: if Mondo fails to 1206 write the first (or any) disk, it will offer to retry, abort or 1207 fail.</para> 1208 <para>I run Mondo at the highest compression available ('-9) and 1209 then go to work. I then walk home at lunch (I live right by my 1210 workplace), change CD, eat lunch, and go back to work. When I get 1211 home, it has all been done.</para> 1212 <para>Your mileage may vary. Experiment. Find the speed/compression 1213 compromise that best suits your needs.</para> 1214 <para>If you are using cron then please use -F to make sure that 1215 Mondo does not prompt you to create bootable floppy disks. Cron 1216 does not handle user interaction well because it pipes stdin and 1217 stdout specially. Please consult cron's manual for more 1218 information. Jesse Keating has written a script for cron/Mondo 1219 users. It is available on the 1220 <ulink url="../../docs/docs.html">Documentation</ulink> 1221 page.</para> 1222 </sect1> 1223 1224 <sect1 id="backup-commands"> 1225 <title>Backup Commands and Options</title> 1226 1227 <para>Backup Command:</para> 1228 <para></para> 1229 <informaltable><tgroup cols="1"><tbody> 1230 <row> 1231 <entry> 1232 1233 mondoarchive <-option1> <-option2> ... <-optionN> 1234 1235 </entry> 1236 </row> 1237 </tbody></tgroup></informaltable> 1238 1239 <para>E.g.,</para> 1240 <para></para> 1241 <informaltable><tgroup cols="1"><tbody> 1242 <row> 1243 <entry> 1244 1245 bash# mondoarchive -E /mnt/dos /mnt/cdrom -9 -Oc 8 1246 1247 </entry> 1248 </row> 1249 </tbody></tgroup></informaltable> 1250 1251 <para>Would create backup CD to a CD-R disc at the highest 1252 compression level, writing at speed 2 and ignoring the /mnt/dos and 1253 /mnt/cdrom directories.</para> 1254 <para>To see a detailed list of switches and their meaning, see the 1255 <ulink url="http://www.mondorescue.org/download/mondoarchive.1.html">HTML 1256 man page</ulink> on the website or type 'man mondoarchive' at the 1257 console.</para> 1258 <sect2 id="backup-cdr"> 1259 <title>Standard Example With CD-R</title> 1260 <para></para> 1261 <informaltable><tgroup cols="1"><tbody> 1262 <row> 1263 <entry> 1264 1265 bash# mondoarchive -Oc 2 -g 1266 1267 </entry> 1268 </row> 1269 </tbody></tgroup></informaltable> 1270 1271 <para>Replace '2' in '-Oc2' with the writer's speed. If 1272 mondoarchive cannot find your CD-R then please add '-d 0,0,0' (or 1273 whatever your CD writer's SCSI node is; usually, it is 0,0,0) to 1274 the call.</para> 1275 <para>Please insert the first disk in the writer while the PC is 1276 chugging away. If Mondo needs additional CD-R(W) then it will ask 1277 for them.</para> 1278 </sect2> 1279 <sect2 id="backup-cdrw"> 1280 <title>Standard Example With CD-RW</title> 1281 <para></para> 1282 <informaltable><tgroup cols="1"><tbody> 1283 <row> 1284 <entry> 1285 1286 bash# mondoarchive -Ow 2 -g 1287 1288 </entry> 1289 </row> 1290 </tbody></tgroup></informaltable> 1291 1292 <para>Replace '2' in '-Ow2' with the writer's speed.</para> 1293 </sect2> 1294 <sect2 id="backup-tape"> 1295 <title>Standard Example With Tape</title> 1296 <para></para> 1297 <informaltable><tgroup cols="1"><tbody> 1298 <row> 1299 <entry> 1300 1301 bash# mondoarchive -Ot -d /dev/st0 -g 1302 1303 </entry> 1304 </row> 1305 </tbody></tgroup></informaltable> 1306 1307 <para>With previous versions of Mondo, you needed to specify the 1308 size of the tape. As of v1.51, that is no longer necessary.</para> 1309 </sect2> 1310 <sect2 id="backup-failsafe"> 1311 <title>Standard Example With Failsafe kernel</title> 1312 <para></para> 1313 <informaltable><tgroup cols="1"><tbody> 1314 <row> 1315 <entry> 1316 1317 bash# mondoarchive -k FAILSAFE -Ow 2 1318 1319 </entry> 1320 </row> 1321 </tbody></tgroup></informaltable> 1322 1323 <para>Due to slight policy differences in the Debian distribution 1324 approach, the '-k FAILSAFE' option is typically needed with 1325 Debian.</para> 1326 </sect2> 1327 <sect2 id="backup-network"> 1328 <title>Standard Example With Network Backup</title> 1329 <para></para> 1330 <informaltable><tgroup cols="1"><tbody> 1331 <row> 1332 <entry> 1333 1334 bash# mount 192.168.1.3:/home/nfs -t nfs /mnt/nfsbash# mondoarchive -OVn 192.168.1.3:/home/nfs -g -s 20 1335 0mbash# umount /mnt/nfs 1336 1337 </entry> 1338 </row> 1339 </tbody></tgroup></informaltable> 1340 1341 <para>The resultant ISO's can be burned to CD's if you want (which 1342 isn't a good idea unless you're a Mondo expert because they'll try 1343 to restore over a network by default, which is silly cos the 1344 archives are on the CD's). Or, you can boot from the Mindi floppies 1345 (or mondorescue.iso) and hit ENTER a few times to restore.</para> 1346 </sect2> 1347 </sect1> 1348 1349 &gfdl; 1350 580 1351 </book>
Note:
See TracChangeset
for help on using the changeset viewer.