[402] | 1 | .\" This is free documentation; you can redistribute it and/or
|
---|
| 2 | .\" modify it under the terms of the GNU General Public License as
|
---|
| 3 | .\" published by the Free Software Foundation; either version 2 of
|
---|
| 4 | .\" the License, or (at your option) any later version.
|
---|
| 5 | .\"
|
---|
| 6 | .\" The GNU General Public License's references to "object code"
|
---|
| 7 | .\" and "executables" are to be interpreted as the output of any
|
---|
| 8 | .\" document formatting or typesetting system, including
|
---|
| 9 | .\" intermediate and printed output.
|
---|
| 10 | .\"
|
---|
| 11 | .\" This manual is distributed in the hope that it will be useful,
|
---|
| 12 | .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 13 | .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 14 | .\" GNU General Public License for more details.
|
---|
| 15 | .\"
|
---|
| 16 | .\" You should have received a copy of the GNU General Public
|
---|
| 17 | .\" License along with this manual; if not, write to the Free
|
---|
| 18 | .\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
|
---|
| 19 | .\" USA.
|
---|
| 20 | .\"
|
---|
[2062] | 21 | .TH mondoarchive 8 "PBDATE" "Mondo Rescue PBVER-rPBREV"
|
---|
[1] | 22 |
|
---|
| 23 | .SH NAME
|
---|
| 24 | mondoarchive \- a backup / disaster\-recovery tool.
|
---|
| 25 |
|
---|
| 26 | .SH SYNOPSIS
|
---|
[2543] | 27 | .B mondoarchive \-O
|
---|
[1] | 28 | [
|
---|
| 29 | .I options
|
---|
[3653] | 30 | ] : backup your machine
|
---|
[1] | 31 | .br
|
---|
[2543] | 32 | .B mondoarchive \-V
|
---|
[1] | 33 | [
|
---|
| 34 | .I options
|
---|
| 35 | ] : verify your backup
|
---|
| 36 |
|
---|
| 37 | .SH DESCRIPTION
|
---|
| 38 | .PP
|
---|
| 39 | .I mondoarchive
|
---|
| 40 | backs up a subset of your files, your entire filesystem, or even images of
|
---|
| 41 | non-Linux filesystems to CD's, tape, ISO images or an NFS mount. In the event of
|
---|
[3653] | 42 | catastrophic data loss, you will be able to restore everything, taking a
|
---|
| 43 | machine from bare metal to its original state if necessary.
|
---|
[1] | 44 |
|
---|
[2045] | 45 | .PP
|
---|
[1] | 46 | With
|
---|
| 47 | .BR \-O ,
|
---|
[1885] | 48 | it backs up your filesystem to CD, tape, ISO images or NFS share. Boot media
|
---|
[1] | 49 | or a special boot CD will be created to allow you to restore from bare metal if
|
---|
| 50 | necessary.
|
---|
| 51 |
|
---|
[2045] | 52 | .PP
|
---|
[1] | 53 | With
|
---|
| 54 | .BR \-V ,
|
---|
| 55 | it verifies the backup against the live filesystem. This option may be used in
|
---|
| 56 | combination with
|
---|
| 57 | .BR \-O
|
---|
| 58 | to verify a backup after its creation, or on its own to see how much the live
|
---|
| 59 | filesystem has changed since the backup was made.
|
---|
| 60 |
|
---|
[2045] | 61 | .PP
|
---|
[2543] | 62 | Call mondoarchive
|
---|
[1] | 63 | .BR without
|
---|
[2543] | 64 | .BR flags
|
---|
[1] | 65 | to make it auto-detect as many settings as possible, ask you politely for the
|
---|
| 66 | rest, and then backup and verify your OS or a subset thereof.
|
---|
| 67 |
|
---|
[2045] | 68 | .PP
|
---|
[2543] | 69 | To restore data, either run
|
---|
[1] | 70 | .I mondorestore
|
---|
[1885] | 71 | from the command line or boot from the emergency media generated during
|
---|
[1] | 72 | the backup process. The latter will come in handy if a gremlin wipes your hard
|
---|
| 73 | disk.
|
---|
| 74 |
|
---|
| 75 | .SH BACKUP MEDIA
|
---|
| 76 | .TP 13
|
---|
| 77 | You must specify one of the following:-
|
---|
| 78 |
|
---|
| 79 | .TP
|
---|
[3884] | 80 | .BI "\-c "
|
---|
| 81 | Use optical drive (CD/DVD-R/RW) as backup device and its (write-once or many) disks as backup media.
|
---|
| 82 | Note that calling mondoarchive
|
---|
[116] | 83 | .B using sudo when writing to DVDs will fail
|
---|
[2543] | 84 | because growisofs does not support this \- see the growisofs manpage for
|
---|
[116] | 85 | details.
|
---|
[1] | 86 |
|
---|
| 87 | .TP
|
---|
[3884] | 88 | .BI "\-w "
|
---|
| 89 | Mondo will wipe media before writing to them.
|
---|
[1] | 90 |
|
---|
| 91 | .TP
|
---|
[2543] | 92 | .BI "\-p " prefix
|
---|
| 93 | Use
|
---|
| 94 | .B prefix
|
---|
[20] | 95 | to generate the name of your ISO images.
|
---|
[907] | 96 | By default, mondoarchive names images mondorescue-1.iso, mondorescue-2.iso, ...
|
---|
[2543] | 97 | Using
|
---|
| 98 | .B \-p machine
|
---|
[907] | 99 | will name your images machine-1.iso, machine-2.iso, ...
|
---|
[20] | 100 |
|
---|
| 101 | .TP
|
---|
[2543] | 102 | .BI "\-i "
|
---|
[1] | 103 | Use ISO files (CD images) as backup media. This is good for backing up your
|
---|
| 104 | system to a spare hard drive. The
|
---|
[2870] | 105 | .B \-n
|
---|
[1] | 106 | switch is a wiser choice if you plan to restore from a remote filesystem.
|
---|
| 107 |
|
---|
| 108 | .TP
|
---|
[2543] | 109 | .BI "\-n " mount
|
---|
[2380] | 110 | Use files residing on a remote share as backup media.
|
---|
[1] | 111 | .I mount
|
---|
[3280] | 112 | is the remote mount-point, e.g. 'nfs://192.168.1.3/home/nfs'
|
---|
[2224] | 113 | for my file server. If not mounted, mondoarchive will do it for you. So nice ;-)
|
---|
| 114 | If your NFS server only accept write from a backup user, you may specify it with the syntax:
|
---|
[3280] | 115 | .B nfs://user@machine/mount/path
|
---|
[2225] | 116 | and mondoarchive will try to do its best to support it.
|
---|
[2380] | 117 | Other protocols are available such as sshfs for fuse SSH based filesystem
|
---|
[3280] | 118 | mount, with the same syntax e.g. 'sshfs://user@192.168.1.3/home/nfs' and
|
---|
[3111] | 119 | smbfs (aka cifs) for SaMBa or Windows based filesystem mount.
|
---|
[3681] | 120 | .B WARNING for NFS you may want to use no_root_squash in /etc/exports eg:
|
---|
| 121 | /mnt/nfs-share 192.168.x.y(rw,sync,no_subtree_check,no_root_squash)
|
---|
[1] | 122 |
|
---|
| 123 | .TP
|
---|
[2543] | 124 | .BI "\-t "
|
---|
[1] | 125 | Use tape streamer as backup device and its tapes as backup media.
|
---|
| 126 |
|
---|
| 127 | .TP
|
---|
[2543] | 128 | .BI "\-U "
|
---|
[1762] | 129 | Use a generic USB device as backup device. Use this if you want to write
|
---|
[2543] | 130 | your backup to a USB key or USB disk, which will be make bootable.
|
---|
[2294] | 131 | The USB device should be attached to the system in order for this to work and
|
---|
[1762] | 132 | its device name passed to the
|
---|
[2543] | 133 | .BR \-d
|
---|
[2333] | 134 | option. Do not use the partition name, but the raw device name (/dev/sda e.g.)
|
---|
[1762] | 135 | .B WARNING: All the data on the related device will be removed.
|
---|
| 136 |
|
---|
| 137 | .TP
|
---|
[2543] | 138 | .BI "\-u "
|
---|
[1] | 139 | Use a generic streaming device as backup device. Use this if you want to write
|
---|
| 140 | your backup to a device that is not directly support by mondoarchive. This will
|
---|
| 141 | send the data directly to a raw device.
|
---|
| 142 | .B For experienced users only.
|
---|
| 143 |
|
---|
| 144 | .SH MAJOR OPTIONS
|
---|
| 145 | .TP 13
|
---|
[2543] | 146 | .BI "\-D "
|
---|
[1] | 147 | Make a differential backup: examine the filesystem and find which files have
|
---|
| 148 | changed since the last full backup was carried out. Backup only those files.
|
---|
| 149 |
|
---|
| 150 | .TP
|
---|
[3068] | 151 | .BI "\-E " "\*(lqdir|...\*(rq"
|
---|
| 152 | Exclude dir(s) from backup. The dirs should be separated with a pipe and surrounded by quotes.
|
---|
[2336] | 153 | This is the prefered and recommended option when doing partial archiving.
|
---|
[1] | 154 | Note that mondo automatically excludes removable media (/mnt/floppy,
|
---|
[2918] | 155 | /mnt/cdrom, /proc, /sys, /run, /tmp). For example, if you are backing up to an NFS mount but you
|
---|
[1] | 156 | do not want to include the contents of the mount in a backup, exclude your
|
---|
| 157 | local mount-point with this switch. It will also work with partitions, e.g.
|
---|
| 158 | /dev/sdd4 if you have a peculiar SCSI zip drive which insists on showing up in
|
---|
| 159 | the mountlist. NB: If you exclude /dev/sdd4 then the /dev entry itself will
|
---|
| 160 | still be backed up, even though the mountlist entry will be suppressed.
|
---|
[2543] | 161 | N.B.: If you specify a directory with a final / its content will be
|
---|
| 162 | archived so it won't do what you expect.
|
---|
| 163 | You may also specify full disk device to this option as with \-E
|
---|
[2714] | 164 | \*(lq/dev/sda|/dev/cciss/c0d0\*(rq
|
---|
[3132] | 165 | N.B.: If for example you have a disk /dev/mapper/vgsan-lvdir mounted on a /mnt mountpoint
|
---|
| 166 | excluding the /dev/mapper/vgsan-lvdir device prevents mondorestore to touch the LVM structure
|
---|
| 167 | of this device at restore time (no pv|vg|lvcreate will occur).
|
---|
| 168 | However, if you exclude the mount point /mnt, the LVM structure will be re-created at restore time.
|
---|
| 169 | ALL DATA WILL THEN BE LOST ON THIS DEVICE. Use what is required for your configuration.
|
---|
[1] | 170 |
|
---|
| 171 | .TP
|
---|
[3068] | 172 | .BI "\-I " "\*(lqdir|...\*(rq"
|
---|
| 173 | Include dirs(s) in backup. The dirs should be separated with a pipe and surrounded by quotes.
|
---|
[2835] | 174 | This option is mainly used to perform tests
|
---|
[2543] | 175 | in order to reduce the time taken by the archiving operation.
|
---|
[3068] | 176 | The default backup dir is \*(lq/\*(rq but you may specify alternatives,
|
---|
[2714] | 177 | e.g. \-I \*(lq/home|/etc\*(rq to override that.
|
---|
[2543] | 178 | You may also specify full disk device to this option as with \-I
|
---|
[2714] | 179 | \*(lq/dev/sda|/dev/cciss/c0d0\*(rq
|
---|
[2336] | 180 | N.B.: When using the
|
---|
| 181 | .BR \-I
|
---|
[2543] | 182 | option with the
|
---|
[2336] | 183 | .BR \-E
|
---|
[2543] | 184 | option, the \-E content should be subdirectories of those mentioned in
|
---|
[2870] | 185 | the \-I only, as \-I takes precedence.
|
---|
[1] | 186 |
|
---|
| 187 | .TP
|
---|
[2870] | 188 | .BI "\-J " "file"
|
---|
[791] | 189 | Specify an explicit list of files and directories to include in a plain text file, one item
|
---|
[2543] | 190 | (file or directory) per line. Beware that directories placed in that file are not managed recursively contrary to what is done with the \-I option.
|
---|
[1] | 191 |
|
---|
| 192 | .TP
|
---|
[2870] | 193 | .BI "\-N"
|
---|
[791] | 194 | Exclude all mounted network filesystems. This currently means NFS, SMB, Coda, MVFS, AFS
|
---|
[1488] | 195 | OCFS and Netware. In other words, only backup the local hard disk(s).
|
---|
[1] | 196 |
|
---|
| 197 | .TP
|
---|
[2870] | 198 | .BI "\-d " "dev|dir"
|
---|
[3841] | 199 | Specify the backup device (CD/tape/USB) or directory (NFS/ISO).
|
---|
[3884] | 200 | For CD-R[W] drives, this is the device file such as '/dev/sr0'.
|
---|
[3841] | 201 | For tape users, this is the tape streamers /dev entry, e.g. '/dev/st0'.
|
---|
[3884] | 202 | For USB users, this is the device name of your key or external disk, e.g. /dev/sdc
|
---|
[3841] | 203 | For ISO users, this is the directory where the ISO images are stored.
|
---|
| 204 | For NFS users, this is the subdirectory under the NFS mount where the backups are stored.
|
---|
| 205 | The default for ISO and NFS is '/var/cache/mondo'.
|
---|
[1] | 206 |
|
---|
| 207 | .TP
|
---|
[2870] | 208 | .BI "\-g "
|
---|
[1] | 209 | GUI mode. Without this switch, the screen output of mondoarchive is suitable
|
---|
| 210 | for processing by an 'expect' wrapper, enabling the user to backup nightly via
|
---|
| 211 | a cron job. However, if you want to run this program with an attractive but
|
---|
[2543] | 212 | non-cron-friendly interface then use '\-g'.
|
---|
[1] | 213 |
|
---|
| 214 | .TP
|
---|
[2870] | 215 | .BI "\-k " "path"
|
---|
[3322] | 216 | Full path name of the kernel to use. Generally your native kernel should be
|
---|
| 217 | found and work appropriately. Otherwise, you may use this option to point to
|
---|
| 218 | another one. E.g. '\-k /boot/myvmlinuz'.
|
---|
[1] | 219 |
|
---|
| 220 | .TP
|
---|
[2870] | 221 | .BI "\-m "
|
---|
[1] | 222 | Manual (not self-retracting) CD trays are often found on laptops. If you are
|
---|
[3884] | 223 | a laptop user, or you experience problems with mondo then please call mondoarchive
|
---|
| 224 | with this switch.
|
---|
[1] | 225 |
|
---|
| 226 | .TP
|
---|
[2870] | 227 | .BI "\-o "
|
---|
[1948] | 228 | Use OBDR (One Button Disaster Recovery) type of tapes.
|
---|
| 229 | By default, tapes are not bootable. With this flag, tape will be made bootable
|
---|
| 230 | following the OBDR format.
|
---|
[1] | 231 |
|
---|
| 232 | .TP
|
---|
[2870] | 233 | .BI "\-s " "size"
|
---|
[1] | 234 | How much can each of your backup media hold? You may use 'm' and 'g' on the end
|
---|
| 235 | of the number, e.g. '700m' for an extra-large CD-R. You no longer need to
|
---|
| 236 | specify the size of your cartridges if you are backing up to tape.
|
---|
| 237 |
|
---|
| 238 | .TP
|
---|
[2870] | 239 | .BI "\-x " "'dev ...'"
|
---|
[1] | 240 | Specify non-Linux partitions which you want to backup, e.g. NTFS or BeOS.
|
---|
| 241 |
|
---|
| 242 |
|
---|
| 243 | .SH MINOR OPTIONS
|
---|
| 244 | .TP 13
|
---|
[2870] | 245 | .BI "\-[0-9] "
|
---|
[1] | 246 | Specify the compression level. Default is 3. No compression is 0.
|
---|
| 247 |
|
---|
| 248 | .TP
|
---|
[2870] | 249 | .BI "\-A " "command"
|
---|
[1] | 250 | This command will be called after each CD/NFS/ISO file is written. It is useful
|
---|
| 251 | if you want to do something with an ISO after creating it, e.g. write it to a
|
---|
| 252 | CD burner using a non-standard command.
|
---|
[2870] | 253 | .B \-A
|
---|
[2543] | 254 | understands two tokens \- _ISO_ and _CD#_ - which will be translated into the
|
---|
[1] | 255 | ISO's filename and its index number (1, 2, ...) respectively. So, you could use
|
---|
[2543] | 256 | .I \-A 'foobackup _ISO_; rm \-f _ISO_'
|
---|
[1] | 257 | to feed each ISO to some magical new backup tool.
|
---|
| 258 |
|
---|
| 259 | .TP
|
---|
| 260 | .BI "-B " "command"
|
---|
| 261 | This command will be called before each CD/NFS/ISO file is written. See
|
---|
[2543] | 262 | .B \-A
|
---|
[1] | 263 | for more information.
|
---|
| 264 |
|
---|
| 265 | .TP
|
---|
[3141] | 266 | .BI "\-F "
|
---|
| 267 | Do not retry when a command failed but just exits. This is useful for an
|
---|
| 268 | automated mode launched from cron where you want to avoid filling your logs
|
---|
| 269 | due to an answer which is impossible to give.
|
---|
| 270 |
|
---|
| 271 | .TP
|
---|
[3138] | 272 | .BI "\-G "
|
---|
| 273 | Use gzip, the standard and quicker Linux compression engine, instead of bzip2.
|
---|
| 274 |
|
---|
| 275 | .TP
|
---|
[2870] | 276 | .BI "\-H "
|
---|
[1] | 277 | When you boot from the tape/CD, your hard drive will be wiped and the archives
|
---|
| 278 | will be restored. Your decision to boot from the tape/CD will be taken as
|
---|
| 279 | consent. No further permission will be sought.
|
---|
| 280 | .B Use with caution.
|
---|
| 281 |
|
---|
| 282 | .TP
|
---|
[2870] | 283 | .BI "\-L "
|
---|
[1] | 284 | Use lzo, a fast compression engine, instead of bzip2. You may find lzo on
|
---|
| 285 | Mondo's website or via FreshMeat. WARNING! Some versions of LZO are unstable.
|
---|
| 286 |
|
---|
| 287 | .TP
|
---|
[3138] | 288 | .BI "\-M " "max-size"
|
---|
| 289 | Gives the maximum size of a biggie file (by default 64 MB). The value should
|
---|
| 290 | be given in kB. Example use \-M 128000 to have biggie being more than 128 MB.
|
---|
[998] | 291 |
|
---|
| 292 | .TP
|
---|
[3202] | 293 | .BI "\-Y "
|
---|
[3884] | 294 | Use lzma/xz, the new quicker and optimized Linux compression engine, instead of bzip2.
|
---|
[3202] | 295 |
|
---|
| 296 | .TP
|
---|
[2870] | 297 | .BI "\-R "
|
---|
[3138] | 298 | Star is an alternative to afio. Can be useful for distributions considering
|
---|
| 299 | that afio is not free enough due to its age and old licenses (wrongly in our
|
---|
| 300 | opinion). Star can be used to have a better support of sparse file compared to
|
---|
[3248] | 301 | afio. Also star supports natively POSIX ACLs, whereas afio requires a special
|
---|
[3138] | 302 | additional handlling.
|
---|
[1] | 303 |
|
---|
| 304 | .TP
|
---|
[2870] | 305 | .BI "\-P " "tarball"
|
---|
[1] | 306 | Post-nuke tarball. If you boot into Nuke Mode and everything is restored
|
---|
[2543] | 307 | successfully then the
|
---|
[1] | 308 | .I post-nuke
|
---|
| 309 | script will be sought and executed if found. This is useful for post-restore
|
---|
| 310 | customization. It is assumed that the tarball (.tar.gz format) will contain not
|
---|
| 311 | just the
|
---|
| 312 | .I post-nuke
|
---|
[2543] | 313 | script (or binary, or whatever it is) but also any files it requires.
|
---|
[1] | 314 |
|
---|
| 315 | .TP
|
---|
[2870] | 316 | .BI "\-S " "path"
|
---|
[2543] | 317 | Specify the full pathname of the scratchdir, the directory where ISO
|
---|
| 318 | images are built before being archived. If you have plenty of RAM and
|
---|
| 319 | want to use a ramdisk for scratch space, specify its path here.
|
---|
[1] | 320 |
|
---|
| 321 | .TP
|
---|
[2870] | 322 | .BI "\-T " "path"
|
---|
[2543] | 323 | Specify the full pathname of the tempdir, the directory where temporary
|
---|
| 324 | files (other than ISO images being assembled) are stored. See
|
---|
| 325 | .B \-S
|
---|
[1] | 326 |
|
---|
| 327 | .TP
|
---|
[2870] | 328 | .BI "\-b "
|
---|
[1] | 329 | Specify the internal block size used by the tape drive. This is usually 32K but
|
---|
| 330 | some drives just don't like that. They should but they don't. That's what
|
---|
| 331 | happens when tape drive vendors don't talk to kernel driver writers. Try 512 or
|
---|
| 332 | 16384.
|
---|
| 333 |
|
---|
| 334 | .TP
|
---|
[2870] | 335 | .BI "\-e "
|
---|
[1967] | 336 | Don't eject the CD or tape when backing up...
|
---|
[1] | 337 |
|
---|
| 338 | .TP
|
---|
[2870] | 339 | .BI "\-f " "device"
|
---|
[1] | 340 | Specify the drive on which your Master Boot Record lives. Usually, this is
|
---|
[2492] | 341 | discovered automatically. A good use case may be when you have software RAID.
|
---|
[1] | 342 |
|
---|
| 343 | .TP
|
---|
[3885] | 344 | .BI "\-l " "GRUB|LILO|RAW"
|
---|
[3429] | 345 | Specify the boot loader. By default, your environment is examined and
|
---|
[1] | 346 | the boot loader can usually be discovered. If you specify RAW then the MBR will
|
---|
| 347 | be backed up and restored byte-for-byte without any analysis. It is likely that
|
---|
[3885] | 348 | you will also need to specify the boot device with \-f <dev>.
|
---|
| 349 | GRUB is mandatory for now for UEFI systems.
|
---|
[1] | 350 |
|
---|
| 351 | .TP
|
---|
[2870] | 352 | .BI "\-Q "
|
---|
[1] | 353 | Give more detailed information about the boot loader.
|
---|
| 354 |
|
---|
| 355 | .TP
|
---|
[2870] | 356 | .BI "\-K " "loglevel"
|
---|
[907] | 357 | Specify the loglevel. Use 99 for full debug. Standard debug level is 4.
|
---|
[1] | 358 |
|
---|
[948] | 359 | .TP
|
---|
[2870] | 360 | .BI "\-v "
|
---|
[2752] | 361 | Gives mondoarchive version.
|
---|
| 362 |
|
---|
| 363 | .TP
|
---|
[2870] | 364 | .BI "\-z "
|
---|
[2543] | 365 | Use extended attributes and acl for each file and store them in the
|
---|
| 366 | backup media. Use this option if you use SElinux e.g. but it will slow
|
---|
| 367 | down backup and restore time of course.
|
---|
[1] | 368 |
|
---|
[948] | 369 |
|
---|
[1] | 370 | .SH DIAGNOSTICS
|
---|
[1315] | 371 | Mondo generates one additional, and extremely important file:
|
---|
[2543] | 372 | .BI /var/log/mondoarchive.log.
|
---|
| 373 | When seeking technical support, attach this file to your email.
|
---|
[1] | 374 |
|
---|
| 375 |
|
---|
| 376 | .SH FILES
|
---|
[1315] | 377 | .IR /var/log/mondoarchive.log
|
---|
[1] | 378 | This log contains important information required to analyse mondoarchive
|
---|
[1315] | 379 | problem reports. Did I already said that it's highly recommended to send this file with
|
---|
[1] | 380 | support questions.
|
---|
| 381 |
|
---|
[2897] | 382 | .SH ENVIRONMENT VARIABLES
|
---|
| 383 | .IR MONDO_SHARE
|
---|
| 384 | This variable is passed to the environment by mondoarchive so that
|
---|
| 385 | mindi is aware that it's called from it and act accordingly. It contains
|
---|
| 386 | the shared directory for the mondo package.
|
---|
| 387 |
|
---|
| 388 | .IR PATH
|
---|
| 389 | This variable is modified internally by mondoarchive so that /sbin:/usr/sbin:/usr/local/sbin
|
---|
| 390 | are appended to it systematically in order to find the required tools.
|
---|
| 391 |
|
---|
| 392 | .IR TMPDIR
|
---|
[3155] | 393 | This variable is used, if defined, as the target directory to create
|
---|
[2897] | 394 | all the temporary files needed during the operation (not the scratch files)
|
---|
| 395 |
|
---|
[3155] | 396 | .IR MRTMP
|
---|
| 397 | This variable is used, if defined and if TMPDIR is not defined, as the target
|
---|
| 398 | directory to create all the temporary files needed during the operation
|
---|
[2897] | 399 | (not the scratch files)
|
---|
| 400 |
|
---|
[3155] | 401 | With none of these variables defined, nor the -T option on the CLI then
|
---|
| 402 | /tmp is used for temporary files.
|
---|
| 403 |
|
---|
| 404 | .IR MRSCRATCH
|
---|
| 405 | This variable is used, if defined, as the target directory to create all the
|
---|
| 406 | scratch files needed during the operation such as the archives (not the temp
|
---|
| 407 | files). If this variable is not defined, /tmp is used for scratch files if
|
---|
| 408 | using the CLI without -S option specified, and the largest partition available
|
---|
| 409 | is proposed in the GUI if that one is used.
|
---|
| 410 |
|
---|
[1] | 411 | .SH NOTES
|
---|
[2543] | 412 | A link to Mondo's HTML-based manual (by Bruno Cornec, Mikael Hultgren,
|
---|
| 413 | Cafeole, Randy Delphs, Stan Benoit, and Hugo Rabson) may be found at
|
---|
[399] | 414 | .I http://www.mondorescue.org/docs.shtml
|
---|
[2543] | 415 | \- or in
|
---|
[1] | 416 | .I /usr/share/doc/mondo-x.xx
|
---|
| 417 | on your hard drive.
|
---|
| 418 |
|
---|
| 419 | .SH BUGS
|
---|
| 420 | It is recommend that your system has more than 64 MB ram. SCSI device order
|
---|
| 421 | change with nuke can have unexpected results. It is recommended you use expert
|
---|
[2543] | 422 | mode with drastic hardware reconfigurations.
|
---|
[1] | 423 |
|
---|
| 424 | .SH EXAMPLES
|
---|
| 425 |
|
---|
| 426 | .BI ISO:
|
---|
| 427 | Backup to a directory; note that /mnt/foo's contents will be backed up except
|
---|
[2543] | 428 | for its ISO's unless you exclude it, as follows:
|
---|
[1] | 429 | .br
|
---|
[2835] | 430 | .I "mondoarchive -Oi -d /mnt/foo -E '/mnt/foo|/mnt/foo2' -p \`hostname\`-\`date +%Y-%m-%d\`"
|
---|
[1] | 431 |
|
---|
| 432 | Backup to ISO's non-interactively, e.g. as a job running in /etc/cron.daily:
|
---|
| 433 | .br
|
---|
[954] | 434 | .I "mkdir -p /bkp/\`date +%A\`; mondoarchive -Oi -9 -d /bkp/\`date +%A\` -E /bkp"
|
---|
[1] | 435 |
|
---|
| 436 | .BI DVD:
|
---|
[3653] | 437 | Backup machine using DVD Media:
|
---|
[1] | 438 | .br
|
---|
[570] | 439 | .I "mondoarchive -OVr -d /dev/scd0 -gF -s 4480m"
|
---|
[1] | 440 |
|
---|
| 441 | .BI TAPE:
|
---|
| 442 | Backup to tape, using lzo compression (WARNING - can be unstable):
|
---|
| 443 | .br
|
---|
| 444 | .I "mondoarchive -Ot -d /dev/st0 -L"
|
---|
| 445 |
|
---|
| 446 | Verify existing tape backup which was made with lzo compression:-
|
---|
| 447 | .br
|
---|
| 448 | .I "mondoarchive -Vt -d /dev/st0 -L -g"
|
---|
| 449 |
|
---|
| 450 | Backup to tape, using max compression:
|
---|
| 451 | .br
|
---|
| 452 | .I "mondoarchive -Ot -9 -d /dev/st0 "
|
---|
| 453 |
|
---|
| 454 | .BI CD-R:
|
---|
| 455 | Backup to 700MB CD-R disks using a 16x CD burner:
|
---|
| 456 | .br
|
---|
| 457 | .I "mondoarchive -Oc 16 -s 700m -g"
|
---|
| 458 |
|
---|
| 459 | Verify existing CD-R or CD-RW backup (works for either):-
|
---|
| 460 | .br
|
---|
| 461 | .I "mondoarchive -Vc 16"
|
---|
| 462 |
|
---|
| 463 | .BI CD-RW:
|
---|
| 464 | Backup to 650MB CD-RW disks using a 4x CD ReWriter:
|
---|
| 465 | .br
|
---|
| 466 | .I "mondoarchive -Ow 4"
|
---|
| 467 |
|
---|
| 468 | Backup just your /home and /etc directory to 650MB CD-RW disks using a 4x CD
|
---|
| 469 | ReWriter:
|
---|
| 470 | .br
|
---|
[2835] | 471 | .I "mondoarchive -Ow 4 -I \*(lq/home|/etc\*(rq"
|
---|
[1] | 472 |
|
---|
| 473 | .BI NFS:
|
---|
| 474 | Backup to an NFS mount:
|
---|
| 475 | .br
|
---|
[3280] | 476 | .I "mondoarchive -On nfs://192.168.1.2/home/nfs -d /Monday -E /mnt/nfs"
|
---|
[1] | 477 |
|
---|
| 478 | Verify existing NFS backup:-
|
---|
| 479 | .br
|
---|
[3280] | 480 | .I "mondoarchive -Vn nfs://192.168.1.2/home/nfs -d /Monday"
|
---|
[1] | 481 |
|
---|
[1762] | 482 | .BI USB:
|
---|
[2902] | 483 | Backup to your 4GB USB key, using gzip compression:
|
---|
[1762] | 484 | .br
|
---|
[2902] | 485 | .I "mondoarchive -OU -d /dev/sda -s 4g -G"
|
---|
[1762] | 486 |
|
---|
[1] | 487 | .BI RAID:
|
---|
[3653] | 488 | Backup machine to a Software Raid mount point, iso size 700mb:
|
---|
[1] | 489 | .br
|
---|
[2543] | 490 | .I "mondoarchive -O -s 700m -d /mnt/raid"
|
---|
[1] | 491 |
|
---|
| 492 |
|
---|
| 493 | .SH "SEE ALSO"
|
---|
[175] | 494 | afio(1), bzip2(1), find(1), mindi(8), mondorestore(8).
|
---|
[1] | 495 | .SH AUTHORS
|
---|
[2543] | 496 | Bruno Cornec (lead-development)
|
---|
[569] | 497 | .I "bruno_at_mondorescue.org"
|
---|
[1] | 498 | .br
|
---|
[399] | 499 | .SH ORIGINAL AUTHORS
|
---|
| 500 | Hugo Rabson (original author)
|
---|
| 501 | .I "hugo.rabson_at_mondorescue.org"
|
---|
[175] | 502 | .br
|
---|
| 503 | Jesse Keating (original RPM packager)
|
---|
[399] | 504 | .I "hosting_at_j2solutions.net"
|
---|
[1] | 505 | .br
|
---|
| 506 | Stan Benoit (testing)
|
---|
[399] | 507 | .I "troff_at_nakedsoul.org"
|
---|
[1] | 508 | .br
|
---|
| 509 | Mikael Hultgren (docs)
|
---|
[399] | 510 | .I "mikael_hultgren_at_gmx.net"
|
---|
[1] | 511 | .br
|
---|
[3884] | 512 | Andree Leidenfrost (co-developer)
|
---|
| 513 | .I "aleidenf_at_bigpond.net.au"
|
---|
| 514 | .br
|
---|
[116] | 515 | See mailing list at http://www.mondorescue.org for technical support.
|
---|