source: MondoRescue/branches/2.06/documentation/mondorescue-howto.sgml @ 327

Last change on this file since 327 was 327, checked in by bcornec, 14 years ago

Use docbook-utils

File size: 18.7 KB
Line 
1<!DOCTYPE BOOK PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
2<!ENTITY curdate "DDD">
3<!ENTITY curver "VVV">
4
5<!ENTITY WWWB "http://www.mondorescue.org/">
6<!ENTITY WWW '<ulink url="http://www.mondorescue.org">MondoRescue</ulink>'>
7<!ENTITY gfdl SYSTEM "fdl.sgml">
8]>
9
10<book>
11<bookinfo>
12<title>MondoRescue HOWTO</title>
13<subtitle>
14Utilisation and Configuration of Mondo and Mindi under Linux (Version &curver;)
15</subtitle>
16<graphic fileref="images/protected-by-mondo.png" align="center">
17
18<pubdate>
19
20in its latest version the
21&curdate;</pubdate>
22<abstract>
23<para>
24This document describes the use of mondo and mindi tools to realize disaster recovery backup of your systems. It provides information on installation, backup and restore modes, hardware and software requirements, and answers to some frequently asked questions.
25The goals are to offer a general view of the functions and their best usages.
26Mondo Rescue is a Disaster Recovery Solution which allows you
27to effortlessly backup and interactively restore Linux, Windows and
28other supported filesystem partitions to/from CD/DVD-+R/RW media, tape,
29NFS, ... and Mindi Linux provides the bootable emergency restore
30CD/floppy set which Mondo uses at boot-time.
31</para>
32</abstract>
33<author>
34<firstname>Bruno</firstname>
35<surname>Cornec</surname>
36<affiliation>
37<orgname>MondoRescue Project</orgname>
38<address><email>bcornec@users.berlios.de</email></address>
39</affiliation>
40</author>
41<!--
42Hugo Rabson
43Mikael Hultgren
44Stan Benoit
45Randy Delfs
46Cafeole
47Bryan J. Smith
48-->
49<copyright>
50<year>2000-2006</year>
51<holder role="mailto:bcornec@users.berlios.de">Bruno Cornec</holder>
52</copyright>
53<legalnotice>
54<title>License</title>
55<para>
56</para>
57<para>
58This HOWTO is a free documentation. you may copy, redistribute and/or modify it under the terms of the
59<Link LinkEnd="gfdl">
60GNU Free Documentation License, Version 1.1
61</link>.</para>
62<para>
63or any later version published by the Free Software Foundation; with no Invarian
64t Sections, Front-Cover Texts or Back-Cover Texts. This document is distributed
65hoping it will be useful, but <emphasis>without any guaranty</emphasis>; you're
66completely responsible of its use, and coulnd't complain in case it doesn't work
67, or even if it breaks the hardware. All the software included in it, if not alr
68eady copyrighted is released under the GPL.
69
70</para>
71</legalnotice>
72<revhistory>
73<revnumber>2.06</revnumber>
74<date>2006-01-16</date>
75<authorinitials>Bruno Cornec</authorinitials>
76<revdescription>
77<para>
78First SGML version publically available, remade from the HTML docs of the project.
79</para>
80</revdescription>
81</revision>
82</revhistory>
83</bookinfo>
84
85<toc></toc>
86<lot></lot>
87
88
89<chapter id="about">
90<title>About this Guide</title>
91
92<sect1 id="purpose">
93<title>Purpose / Scope of this Guide</title>
94
95<para>
96This HOWTO serves to help people get started with using
97mondo/mindi as way to backup/restore their system. This is a work
98constantly evolving. It was started by Hugo Rabson and has
99since been worked upon by a number of people. See the
100'<ulink url="&WWWB;about.html#devteam">About</ulink>' web
101page for a list of members of the development team.</para>
102
103<para>There are many ways to contribute to the Linux movement
104without actually writing code. One of the most important is writing
105documentation, allowing each person to share their knowledge with
106thousands of others around the world. This HOWTO is designed to
107help you get familiar with how Mondo/Mindi works.</para>
108
109<para>
110Opinions expressed here are those of the authors.
111Informations are provided in the aim to be useful to the readers.
112However, there can't be, through this document, any warranty of any kind
113on the way it works on your systems, nor the author could be responsible for any problem caused by the use of these informations.
114However, software editors don't garantee you a lot either (re-read the contracts).
115</para>
116
117<sect2 id="newversion"><title>New versions of this document</title>
118
119<para>The newest version of this document can always be found on
120MondoRescue's homepage &WWW;.</para>
121<para>
122If you make a translation of this document into another language, please let meknow so that I can include a reference to it here.
123</para>
124</sect2>
125<sect2><title>Suggestions / Feedback</title>
126<para>
127I 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.
128If you have any suggestions, corrections, recommandations or congratulations :-) don't hesitate to send them to me
129<email>bcornec@users.berlios.de</email>,
130and I will try to incorporate them in a next revision or to the mondorescue mailling list at <ulink url="http://lists.sourceforge.net/lists/listinfo/mondo-devel">http://lists.sourceforge.net/lists
131/listinfo/mondo-devel</ulink>;
132e-mail the list at
133<ulink url="mailto:mondo-devel@lists.sourceforge.net">mondo-devel@lists.sourceforge.net</ulink>;
134tell us what is wrong and how it should be fixed.
135Include the section title and recommended changes. Whenever possible, include
136the exact, spell-checked, grammar-checked text that you think would
137improve the document.
138</para>
139<para>See Mondo's
140<ulink url="../../feedback/feedback.html">Feedback</ulink> page for
141more information.
142</para>
143<para>
144Please note that we do our best to help everyone but it is
145difficult for us to help you if you do not attach a log file to
146your e-mail. Let me say that again - attach your log file to your
147e-mail! Thank you. Without it we can't offer
148any tangible help because you aren't either. That's what the log
149file 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>
150<para>
151This 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 :-)
152</para>
153<para>
154I am also willing to answer general questions on MondoRescue, the best I can.
155Before doing so, please read all of the information in this HOWTO, and then send me detailed information about the problem, especially including the logs generated by the tools, or traces obtained (Did I say that already :-].
156</para>
157<para>
158If you publish this document on a CD-ROM or in hardcopy form, a complimentary copy would be appreciated; mail me for my postal address. Also consider making a donation to the Linux Documentation Project to help support free documentation for Linux. Contact the Linux HOWTO coordinator,
159Guylhem AZNAR <email>guylhem@rrremovethis.oeil.qc.ca</email>.
160</para>
161</sect2>
162
163<sect2 id=thanks><title>Aknowledgements</title>
164
165<para>Thanks goes to these people for helping and adding to this
166HOWTO.</para>
167
168<para>Document maintainer:</para>
169<itemizedlist mark="bullet" spacing="Compact">
170<listitem>
171<para>Bruno Cornec</para>
172</listitem>
173</itemizedlist>
174<para>Original Design Assistance by:</para>
175<itemizedlist>
176<listitem>
177<para>Xion Network.com</para>
178</listitem>
179</itemizedlist>
180<para>Original Document Assistance by:</para>
181<itemizedlist>
182<listitem>
183<para>Cafeole</para>
184</listitem>
185<listitem>
186<para>Troff</para>
187</listitem>
188<listitem>
189<para>Randy Delfs</para>
190</listitem>
191<listitem>
192<para>Mikael Hultgren</para>
193</listitem>
194</itemizedlist>
195<para>Original LinuxDoc and LaTeX Reformat by:</para>
196<itemizedlist>
197<listitem>
198<para>Bryan J. Smith</para>
199</listitem>
200</itemizedlist>
201<para>Original DocBook Reformat by:</para>
202<itemizedlist>
203<listitem>
204<para>Mikael Hultgren</para>
205</listitem>
206</itemizedlist>
207<para>Original author; 1.6x material:</para>
208<itemizedlist>
209<listitem>
210<para>Hugo Rabson</para>
211</listitem>
212</itemizedlist>
213
214</sect2>
215
216<sect1 id="quickstart"><title>QuickStart</title>
217<itemizedlist mark="bullet" spacing="Compact">
218<listitem>
219<para>We recommend that you read this complete
220HOWTO. However, if you are too busy or impatient, then
221please use this QuickStart guide to stay out of trouble.</para>
222</listitem>
223<listitem>
224<para>Install the tarball, RPM, or DEB mindi and mondo
225packages. (see <xref linkend="installation">Installation</xref>
226for more details)</para>
227</listitem>
228<listitem>
229<para>Execute as root (type 'su -' to become root if you are not
230logged in as root)</para>
231<para></para>
232
233<informaltable><tgroup cols="1"><tbody>
234<row>
235<entry>
236
237bash# mondoarchive
238
239</entry>
240</row>
241</tbody></tgroup></informaltable>
242
243</listitem>
244</itemizedlist>
245<para></para>
246
247<informaltable><tgroup cols="2"><tbody>
248<row>
249<entry>
250<ulink url="images/mamain.png"><inlinemediaobject><imageobject>
251<imagedata fileref="images/mamain-mini.png">
252</imageobject></inlinemediaobject>
253</ulink>
254</entry>
255<entry>
256Choose from the list of supported backup media types. The media you
257will use most often are CD/DVD-+R, CD/DVD-+RW, tape, NFS and hard disk. If
258you want to backup/restore over a network, choose 'NFS'. If you
259want to backup/restore to/from a local partition or if you simply
260want to store the ISO images in a local directory until you have
261time or facilities to burn them to CD's, choose 'hard disk'. If you
262choose 'CD/DVD-R[W]' or 'tape' then in general your hardware will be
263detected and configured for you.
264</entry>
265</row>
266<row>
267<entry>
268<ulink url="images/maburnproof.png"><inlinemediaobject><imageobject>
269<imagedata fileref="images/maburnproof-mini.png">
270</imageobject></inlinemediaobject>
271</ulink>
272</entry>
273<entry>
274        If you are backing up to CD/DVD-+R[W] then Mondo will ask you if your CD
275burner has BurnProof technology, is inside a laptop, or is
276otherwise eccentric. If you are backing up to a tape streamer then
277you will not see this message.
278</entry>
279</row>
280<row>
281<entry>
282<ulink url="images/macompression.png"><inlinemediaobject><imageobject>
283<imagedata fileref="images/macompression-mini.png">
284</imageobject></inlinemediaobject>
285</ulink>
286</entry>
287<entry>
288How much compression do you want? None, if your tape streamer has
289built-in hardware compression. Maximum, if your CPU is blazingly
290fast. Average should do just fine for most situations.
291</entry>
292</row>
293<row>
294<entry>
295<ulink url="images/mainclude.png"><inlinemediaobject><imageobject>
296<imagedata fileref="images/mainclude-mini.png">
297</imageobject></inlinemediaobject>
298</ulink>
299</entry>
300<entry>
301If you want to backup the whole computer (excluding /tmp and /proc,
302naturally) then leave this as / which is the default. Otherwise,
303specify subsets, (e.g. /usr/local /home ) being sure to put a space
304in between each path.
305</entry>
306</row>
307<row>
308<entry>
309<ulink url="images/maexclude.png"><inlinemediaobject><imageobject>
310<imagedata fileref="images/maexclude-mini.png">
311</imageobject></inlinemediaobject>
312</ulink>
313</entry>
314<entry>
315If you are backing up your whole computer then you might want to
316exclude certain directories, e.g. /shared/MP3. Please specify them
317in the 'exclude directories' dialog box. Please put a space in
318between each path, e.g. /shared/private /scratch /nfs /windows
319</entry>
320</row>
321<row>
322<entry>
323<ulink url="images/makernel.png"><inlinemediaobject><imageobject>
324<imagedata fileref="images/makernel-mini.png">
325</imageobject></inlinemediaobject>
326</ulink>
327</entry>
328<entry>
329Is your kernel sane? Red Hat, Mandrake, SuSE, Debian and Slackware users
330should in general say 'yes' because these vendors are good at
331producing reliable kernels. If you are using Gentoo or LFS
332then your kernel might be non-standard, in which case say 'no' to
333use Mondo's failsafe kernel.
334</entry>
335</row>
336<row>
337<entry>
338<ulink url="images/maverifyq.png"><inlinemediaobject><imageobject>
339<imagedata fileref="images/maverifyq-mini.png">
340</imageobject></inlinemediaobject>
341</ulink>
342</entry>
343<entry>
344If you want to verify the archives after writing them to media, say
345'yes' here. If you have absolute faith in your hardware and your
346Linux distribution, say 'no'... and a little prayer.
347</entry>
348</row>
349<row>
350<entry>
351<ulink url="images/maproceedq.png"><inlinemediaobject><imageobject>
352<imagedata fileref="images/maproceedq-mini.png">
353</imageobject></inlinemediaobject>
354</ulink>
355</entry>
356<entry>
357If you are sure you want to go ahead, say 'yes' and find something
358else to do while Mondo backs up your computer. If you say 'no' then
359you will be unceremoniously dumped at the shell prompt. :-)
360</entry>
361</row>
362<row>
363<entry>
364<ulink url="images/1.png"><inlinemediaobject><imageobject>
365<imagedata fileref="images/1-mini.png">
366</imageobject></inlinemediaobject>
367</ulink>
368</entry>
369<entry>
370The backup process will now commence. There are some pre-backup
371tasks to be carried out first but the backup is essentially
372underway. To simplify the backup process, you were asked a series
373of questions. Next time, if you like, you could call mondoarchive
374with various command-line switches to control its behavior, instead
375of answering a series of questions. See the man page for details.
376</entry>
377</row>
378<row>
379<entry>
380<ulink url="images/3.png"><inlinemediaobject><imageobject>
381<imagedata fileref="images/3-mini.png">
382</imageobject></inlinemediaobject>
383</ulink>
384</entry>
385<entry>
386Mondo will make a catalog of all files to be backed up. This may
387take up to five minutes. The list of files will be divided into
388sets, approximately 4 MB (before compression) of files per set.
389This typically takes one minute.
390</entry>
391</row>
392<row>
393<entry>
394<ulink url="images/4.png"><inlinemediaobject><imageobject>
395<imagedata fileref="images/1-mini.png">
396</imageobject></inlinemediaobject>
397</ulink>
398</entry>
399<entry>
400Mondo calls Mindi. Mindi generates bootable floppy disk images and
401auxiliary data disk images which are based on your existing Linux
402distribution and filesystem. That way, you can be sure Mondo's
403tools will be compatible with your existing filesystems and
404binaries: Mondo's tools are your tools. Mindi takes up to five
405minutes to run.
406</entry>
407</row>
408<row>
409<entry>
410<ulink url="images/5tape.png"><inlinemediaobject><imageobject>
411<imagedata fileref="images/5tape-mini.png">
412</imageobject></inlinemediaobject>
413</ulink>
414</entry>
415<entry>
416Finally, Mondo begins backing up your computer. This process may
417take a few minutes or a few hours, depending on how much data you
418are archiving, how fast your CPU is, how much RAM you have, and so
419on. It will backup your regular files and then your large files
420(files larger than approximately 32MB). If you have opted to verify
421your backups, Mondo will do that too.
422</entry>
423</row>
424<row>
425<entry>
426<ulink url="images/10cd.png"><inlinemediaobject><imageobject>
427<imagedata fileref="images/10cd-mini.png">
428</imageobject></inlinemediaobject>
429</ulink>
430</entry>
431<entry>
432Do you want to create a boot floppy at the end? Yes, if you're a
433tape or NFS user. No, if you are using CD/DVD-R[W]'s and your computer
434supports bootable CD's. Tape users only need one floppy but other
435users may need more. Mondo will advise accordingly.
436</entry>
437</row>
438</tbody></tgroup></informaltable>
439
440<itemizedlist>
441<listitem>
442<para>Try to boot from the first CD of the backup (or the first
443floppy, if you made floppies). Choose 'Compare Mode' by typing
444compare at the boot screen.</para>
445</listitem>
446<listitem>
447<para>If you can boot, fine. If not, make a Mindi "Test" CD to
448checkout the compatibility of your system. (see
449<xref linkend="testingmindi">Testing Mindi</xref> for more
450details). Remove the CD/floppy; boot your computer as usual;
451execute as root</para>
452<para></para>
453<informaltable><tgroup cols="1"><tbody>
454<row>
455<entry>
456
457        bash# mindi
458        bash# cd /root/images/mindi
459
460</entry>
461</row>
462</tbody></tgroup></informaltable>
463
464<para>(for CD-R)</para>
465<para></para>
466<informaltable><tgroup cols="1"><tbody>
467<row>
468<entry>
469
470bash# cdrecord dev=0,0,0 speed=4 -eject -v mindi.iso
471
472</entry>
473</row>
474</tbody></tgroup></informaltable>
475
476<para>(for CD-RW)</para>
477<para></para>
478<informaltable><tgroup cols="1"><tbody>
479<row>
480<entry>
481
482bash# cdrecord dev=0,0,0 speed=4 blank=fast -eject -v mindi.iso
483
484</entry>
485</row>
486</tbody></tgroup></informaltable>
487
488<para>Reboot your system with the created Mindi CD, with the BIOS
489set to boot from CD. If the result is a command line in 'Expert'
490mode, your system checks out. Remove the CD and reboot your
491system.</para>
492</listitem>
493<listitem>
494<para>If you still cannot boot from Mindi's CD then please e-mail
495the <xref linkend="feedback">mailing list</xref> for help.
496</para>
497</listitem>
498</itemizedlist>
499<para>When making a backup on a live system, there will always be
500processes running that will write out data on the system after you
501have made the backup and before you have made the compare, this
502will result in difference showing up when comparing your backup.
503For a full explanation and what can be done to avoid this, please
504read this section.</para>
505<itemizedlist>
506
507        <listitem>
508<para>This QuickStart covers the ideal case. Upon receiving any
509system feedback/errors, read each related HOWTO section.</para>
510<para>Example 2-1. A test backup of your /home directory to CD-Rs
511using the command line</para>
512<para></para>
513<informaltable><tgroup cols="1"><tbody>
514<row>
515<entry>
516
517bash# mondoarchive -OVc 4 -I /home -gF
518
519</entry>
520</row>
521</tbody></tgroup></informaltable>
522
523<para>The 'c' means you must be writing to CD-Rs, not CD-RWs (the
524latter would require 'w' instead of 'c'). The '4' is the speed of
525your CD writer. The string after -I is the path to be backed up.
526The '-gF' means you are going to see the pretty yellow-on-blue
527screen instead of the boring white-on-black screen. :) It also
528means Mondo will not offer to create physical boot floppies for
529you. It is assumed that you are able to boot from the CD which
530Mondo has generated.</para>
531<para>Example 2-2. A backup of your whole filesystem to NFS using
532the command line</para>
533<para></para>
534<informaltable><tgroup cols="1"><tbody>
535<row>
536<entry>
537
538        bash# mkdir -p /mnt/nfs
539        bash# mount 192.168.1.28:/home/nfs /mnt/nfs
540        bash# mondoarchive -OVn 192.168.1.28:/home/nfs -gF[...]
541        bash# umount /mnt/nfs
542        bash# cdrecord dev=0,0,0 speed=4 -eject -v /root/images/mindi/mindi.iso
543
544</entry>
545</row>
546</tbody></tgroup></informaltable>
547
548<para>Note that you have to mount the NFS partition, backup to it,
549unmount it, and create a boot CD to allow you to restore from
550scratch if necessary. To reassure yourself that you will be able to
551restore from the NFS share even if your PC is wiped, please boot
552from the Mindi CD and type 'compare'. The on-screen instructions
553from that point on should be sufficient.</para>
554<para>Example 2-3. A backup of your whole
555filesystem to tape using the command line</para>
556<para></para>
557<informaltable><tgroup cols="1"><tbody>
558<row>
559<entry>
560
561bash# mondoarchive -OVt -d /dev/st0 -9 -L -g
562
563</entry>
564</row>
565</tbody></tgroup></informaltable>
566
567<para>In this case, we assume Syslinux is incompatible with your
568boot media. For some reason, some BIOSes just don't like Syslinux.
569If you find this to be the case for your computer, please use '-L'
570to force Mondo to use LILO instead of Syslinux as the boot loader
571for its CD/floppies. (NB: This has nothing to do with which boot
572loader your hard drive uses.) Also, it is a good habit to specify
573your tape streamer with '-d &lt;device&gt;'. You don't usually need
574to but it's good to be on the safe side. Some computers call your
575tape streamer /dev/osst0, some call it /dev/ftape, ...</para>
576</listitem>
577</itemizedlist>
578
579</sect1>
580</book>
Note: See TracBrowser for help on using the repository browser.