source: trunk/mondo/mondo/mondoarchive/mondoarchive.8 @ 1

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

Initial import from latest mondo-2.04_cvs_20050503/mindi-1.04_cvs_20050503 on http://www.mondorescue.org

File size: 12.1 KB
Line 
1.TH mondoarchive 8 "June 2004" Linux MondoRescue
2
3.SH NAME
4mondoarchive \- a backup / disaster\-recovery tool.
5
6.SH SYNOPSIS
7.B mondoarchive -O
8[
9.I options
10] : backup your PC
11.br
12.B mondoarchive -V
13[
14.I options
15] : verify your backup
16
17.SH DESCRIPTION
18.PP
19.I mondoarchive
20backs up a subset of your files, your entire filesystem, or even images of
21non-Linux filesystems to CD's, tape, ISO images or an NFS mount. In the event of
22catastrophic data loss, you will be able to restore everything, taking a PC from
23bare metal to its original state if necessary.
24
25.pp
26With
27.BR \-O ,
28it backs up your filesystem to CD, tape, ISO images or NFS share. Boot floppies
29or a special boot CD will be created to allow you to restore from bare metal if
30necessary.
31
32.pp
33With
34.BR \-V ,
35it verifies the backup against the live filesystem. This option may be used in
36combination with
37.BR \-O
38to verify a backup after its creation, or on its own to see how much the live
39filesystem has changed since the backup was made.
40
41.pp
42Call mondoarchive
43.BR without
44.BR flags
45to make it auto-detect as many settings as possible, ask you politely for the
46rest, and then backup and verify your OS or a subset thereof.
47
48.pp
49To restore data, either run
50.I mondorestore
51from the command line or boot from the emergency CD/floppies generated during
52the backup process. The latter will come in handy if a gremlin wipes your hard
53disk.
54
55.SH BACKUP MEDIA
56.TP 13
57You must specify one of the following:-
58
59.TP
60.BI "-c " speed
61Use CD-R drive as backup device and its (write-once) disks as backup media.
62
63.TP
64.BI "-w " speed
65Use CD-RW drive as backup device and its (write/rewrite) disks as backup media.
66Mondo will wipe media before writing to them.
67
68.TP
69.BI "-r "
70Use DVD drive as backup device and its disks as backup media. Growisofs decides
71on the best speed for your drive.
72
73.TP
74.BI "-C " speed
75Use CD-R drive as a streaming device, almost like a tape streamer. Use
76write-once disks as backup media.
77.B Experimental.
78
79.TP
80.BI "-i "
81Use ISO files (CD images) as backup media. This is good for backing up your
82system to a spare hard drive. The
83.B -n
84switch is a wiser choice if you plan to restore from a remote filesystem.
85
86.TP
87.BI "-n " mount
88Use files residing on NFS partition as backup media.
89.I mount
90is the remote mount-point, e.g. '192.168.1.3:/home/nfs'
91for my file server. Please mount it before backing up/verifying.
92
93.TP
94.BI "-t "
95Use tape streamer as backup device and its tapes as backup media.
96
97.TP
98.BI "-u "
99Use a generic streaming device as backup device. Use this if you want to write
100your backup to a device that is not directly support by mondoarchive. This will
101send the data directly to a raw device.
102.B For experienced users only.
103
104.SH MAJOR OPTIONS
105.TP 13
106.BI "-D "
107Make a differential backup: examine the filesystem and find which files have
108changed since the last full backup was carried out. Backup only those files.
109
110.TP
111.BI "-E " "\*(lqpath ...\*(rq"
112Exclude path(s) from backup. The paths should be separated with a whitespace.
113Note that mondo automatically excludes removable media (/mnt/floppy,
114/mnt/cdrom, etc.). For example, if you are backing up to an NFS mount but you
115do not want to include the contents of the mount in a backup, exclude your
116local mount-point with this switch. It will also work with partitions, e.g.
117/dev/sdd4 if you have a peculiar SCSI zip drive which insists on showing up in
118the mountlist. NB: If you exclude /dev/sdd4 then the /dev entry itself will
119still be backed up, even though the mountlist entry will be suppressed.
120
121.TP
122.BI "-I " "\*(lqpath ...\*(rq"
123Include paths(s) in backup. The default backup path is \*(lq/\*(rq but you may
124specify alternatives, e.g. -I \*(lq/home /etc\*(rq to override that.
125
126.TP
127.BI "-J " "file"
128Specify an explicit list of files and directories in a plain text file, one item
129(file or directory) per line.
130
131.TP
132.BI "-N"
133Exclude all mounted network filesystems. This currently means NFS, SMB, Coda
134and Netware. In other words, only backup the local hard disk(s).
135
136.TP
137.BI "-d " "dev|dir"
138Specify the backup device (CD/tape) or directory (NFS/ISO). For CD-R[W] drives,
139this is the SCSI node where the drive may be found, e.g. '0,1,0'. For tape
140users, this is the tape streamers /dev entry, e.g. '/dev/st0'. For ISO users,
141this is the directory where the ISO images are stored. For NFS users, this is
142the directory within the NFS mount where the backups are stored. The default
143for ISO and NFS is '/root/images/mondo'.
144
145.TP
146.BI "-g "
147GUI mode. Without this switch, the screen output of mondoarchive is suitable
148for processing by an 'expect' wrapper, enabling the user to backup nightly via
149a cron job. However, if you want to run this program with an attractive but
150non-cron-friendly interface then use '-g'.
151
152.TP
153.BI "-k " "path"
154Path of user's kernel. If you are a Debian or Gentoo user then specify
155.B -k FAILSAFE
156as your kernel. Otherwise, you will rarely need this option.
157
158.TP
159.BI "-m "
160Manual (not self-retracting) CD trays are often found on laptops. If you are
161a laptop user, your CD burner has BurnProof technology or you experience
162problems with mondo then please call mondoarchive with this switch.
163
164.TP
165.BI "-o "
166Use LILO as boot loader of boot floppy/CD instead of SYSLINUX/ISOLINUX. By
167default, SYSLINUX is used for floppies and ISOLINUX for CD's. Use LILO if you
168prefer to use that boot loader. NB: This does not affect which boot loader you
169use to boot your PC, merely the boot loader used by the CD's/floppies created
170by Mondo. Use ELILO instead which is mandatory for IA64 machines.
171
172.TP
173.BI "-s " "size"
174How much can each of your backup media hold? You may use 'm' and 'g' on the end
175of the number, e.g. '700m' for an extra-large CD-R. You no longer need to
176specify the size of your cartridges if you are backing up to tape.
177
178.TP
179.BI "-x " "'dev ...'"
180Specify non-Linux partitions which you want to backup, e.g. NTFS or BeOS.
181
182
183.SH MINOR OPTIONS
184.TP 13
185.BI "-[0-9] "
186Specify the compression level. Default is 3. No compression is 0.
187
188.TP
189.BI "-A " "command"
190This command will be called after each CD/NFS/ISO file is written. It is useful
191if you want to do something with an ISO after creating it, e.g. write it to a
192CD burner using a non-standard command.
193.B -A
194understands two tokens - _ISO_ and _CD#_ - which will be translated into the
195ISO's filename and its index number (1, 2, ...) respectively. So, you could use
196.I -A 'foobackup _ISO_; rm -f _ISO_'
197to feed each ISO to some magical new backup tool.
198
199.TP
200.BI "-B " "command"
201This command will be called before each CD/NFS/ISO file is written. See
202.B -A
203for more information.
204
205.TP
206.BI "-F "
207Do not offer to write boot+data floppy disk images to 3.5-inch floppy disks.
208The images will remain in /root/images/mindi until your next backup run,
209however.
210
211.TP
212.BI "-H "
213When you boot from the tape/CD, your hard drive will be wiped and the archives
214will be restored. Your decision to boot from the tape/CD will be taken as
215consent. No further permission will be sought.
216.B Use with caution.
217
218.TP
219.BI "-L "
220Use lzo, a fast compression engine, instead of bzip2. You may find lzo on
221Mondo's website or via FreshMeat. WARNING! Some versions of LZO are unstable.
222
223.TP
224.BI "-R "
225EXPERIMENTAL. Do not use in mission-critical environments. Star is an alternative to afio. Mondo now supports POSIX ACLs and extended attributes, so -R is essentially redundant for now.
226
227.TP
228.BI "-P " "tarball"
229Post-nuke tarball. If you boot into Nuke Mode and everything is restored
230successfully then the
231.I post-nuke
232script will be sought and executed if found. This is useful for post-restore
233customization. It is assumed that the tarball (.tar.gz format) will contain not
234just the
235.I post-nuke
236script (or binary, or whatever it is) but also any files it requires.
237
238.TP
239.BI "-S " "path"
240Specify the scratchdir, the directory where ISO images are built before being
241archived. If you have plenty of RAM and want to use a ramdisk for scratch
242space, specify its path here.
243
244.TP
245.BI "-T " "path"
246Specify the tempdir, the directory where temporary files (other than ISO images
247being assembled) are stored. See
248.B -S
249
250.TP
251.BI "-W "
252Don't make your backup self-booting. This is a really bad idea, IMO. Don't do
253this unless you have really great boot disks in your hand and you are an anally
254retentive SOB who can't wait 2 minutes for Mindi to run in the background. If
255you use -W then you'd better know what the hell you're doing, okay?
256
257.TP
258.BI "-b "
259Specify the internal block size used by the tape drive. This is usually 32K but
260some drives just don't like that. They should but they don't. That's what
261happens when tape drive vendors don't talk to kernel driver writers. Try 512 or
26216384.
263
264.TP
265.BI "-e "
266Don't eject the CD or tape when backing up or restoring... unless cdrecord
267insists on it. If it does, well, tough. Sorry. :)
268
269.TP
270.BI "-f " "device"
271Specify the drive on which your Master Boot Record lives. Usually, this is
272discovered automatically.
273
274.TP
275.BI "-l " "GRUB|LILO|ELILO|RAW"
276Specify the boot loader. By default, your Master Boot Record is examined and
277the boot loader can usually be discovered. If you specify RAW then the MBR will
278be backed up and restored byte-for-byte without any analysis. It is likely that
279you will also need to specify the boot device with -f <dev>. ELILO is mandatory
280for IA64 machines.
281
282.TP
283.BI "-Q "
284Give more detailed information about the boot loader.
285
286.TP
287.BI "-K " "loglevel"
288Specify the loglevel.
289
290
291.SH DIAGNOSTICS
292Mondo generates two additional, and Extremely important files:
293.BI /var/log/mindi.log
294and
295.BI /var/log/mondo-archive.log.
296When seeking technical support, attach these two files to your email.
297
298
299
300.SH FILES
301.IR /var/log/mindi.log 
302This log contains important information required to analyse mindi problem
303reports.
304
305.IR /var/log/mondo-archive.log
306This log contains important information required to analyse mondoarchive
307problem reports. Mondo support highly recommends sending these files with
308support questions.
309
310.SH NOTES
311A link to Mondo's HTML-based manual (by Mikael Hultgren, Cafeole, Randy Delphs,
312Stan Benoit, and me) may be found at
313.I http://www.microwerks.net/~hugo/docs/docs.html
314- or in
315.I /usr/share/doc/mondo-x.xx
316on your hard drive.
317A link to test results can be found at
318.I http://www.nakedsoul.org/~troff
319
320
321.SH BUGS
322It is recommend that your system has more than 64 MB ram. SCSI device order
323change with nuke can have unexpected results. It is recommended you use expert
324mode with drastic hardware reconfigurations.
325
326.SH EXAMPLES
327
328.BI ISO:
329Backup to a directory; note that /mnt/foo's contents will be backed up except
330for its ISO's unless you exclude it, as follows:-
331.br
332.I "mondoarchive -Oi -d /mnt/foo -E /mnt/foo"
333
334Backup to ISO's non-interactively, e.g. as a job running in /etc/cron.daily:
335.br
336.I "mkdir -p /bkp/`date +%A`; mondoarchive -Oi -9 -d /bkp/`date +%A` -E /bkp"
337
338.BI DVD:
339Backup PC using DVD Media:
340.br
341.I "mondoarchive -OVr 2 -d /dev/scd0 -gF -s 4200m"
342
343.BI TAPE:
344Backup to tape, using lzo compression (WARNING - can be unstable):
345.br
346.I "mondoarchive -Ot -d /dev/st0 -L"
347
348Verify existing tape backup which was made with lzo compression:-
349.br
350.I "mondoarchive -Vt -d /dev/st0 -L -g"
351
352Backup to tape, using max compression:
353.br
354.I "mondoarchive -Ot -9 -d /dev/st0 "
355
356.BI CD-R:
357Backup to 700MB CD-R disks using a 16x CD burner:
358.br
359.I "mondoarchive -Oc 16 -s 700m -g"
360
361Verify existing CD-R or CD-RW backup (works for either):-
362.br
363.I "mondoarchive -Vc 16"
364
365.BI CD-RW:
366Backup to 650MB CD-RW disks using a 4x CD ReWriter:
367.br
368.I "mondoarchive -Ow 4"
369
370Backup just your /home and /etc directory to 650MB CD-RW disks using a 4x CD
371ReWriter:
372.br
373.I "mondoarchive -Ow 4 -I \*(lq/home /etc\*(rq"
374
375.BI NFS:
376Backup to an NFS mount:
377.br
378.I "mondoarchive -On 192.168.1.2:/home/nfs -d /Monday -E /mnt/nfs"
379
380Verify existing NFS backup:-
381.br
382.I "mondoarchive -Vn 192.168.1.2:/home/nfs -d /Monday"
383
384.BI RAID:
385Backup PC to a Software Raid mount point, iso size 700mb:
386.br
387.I "mondoarchive -O -s 700m -d /mnt/raid"
388
389
390.SH "SEE ALSO"
391afio(1), bzip2(1), find(1), mindi(8), mondorestore(8). The mindi manual
392might not have been written yet.
393.SH AUTHORS
394Hugo Rabson (coding)
395.I "hugorabson@msn.comt"
396.br
397Jesse Keating (packaging)
398.I "hosting@j2solutions.net"
399.br
400Stan Benoit (testing)
401.I "troff@nakedsoul.org"
402.br
403Mikael Hultgren (docs)
404.I "mikael_hultgren@gmx.net"
405.br
406See mailing list at http://www.mondorescue.com for technical support.
407.
Note: See TracBrowser for help on using the repository browser.