CentOS 7にMondo Rescueをインストールしてみました。
CentOS 8対応は作業中のようでrepositoryはあるのですがインストールできませんでした。
Mondo Rescue Home Page
http://www.mondorescue.org/
RHEL7/CentOS7
ftp://ftp.mondorescue.org/rhel/7/x86_64/
RHEL8/CentOS8
ftp://ftp.mondorescue.org/rhel/8/x86_64/
環境
・CentOS Linux release 7.8.2003 (Core)
・Kernel 3.10.0-1127.13.1.el7.x86_64
- repositoryファイルのダウンロード
- mondo rescueのインストール
- perl-ProjectBuilderのインストール
- 再度mondo rescueのインストール
1 2 3 4 5 6 7 8 9 10 11 |
[root@centos7 ~]# curl ftp://ftp.mondorescue.org/rhel/7/x86_64/mondorescue.repo > /etc/yum.repos.d/mondorescue.repo % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 201 100 201 0 0 52 0 0:00:03 0:00:03 --:--:-- 52 [root@centos7 ~]# cat /etc/yum.repos.d/mondorescue.repo [mondorescue] name=rhel 7 x86_64 - mondorescue Vanilla Packages baseurl=ftp://ftp.mondorescue.org//rhel/7/x86_64 enabled=1 gpgcheck=1 gpgkey=ftp://ftp.mondorescue.org//rhel/7/x86_64/mondorescue.pubkey |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
[root@centos7 ~]# yum info mondo Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp-srv2.kddilabs.jp * extras: ftp-srv2.kddilabs.jp * updates: ftp-srv2.kddilabs.jp mondorescue | 2.9 kB 00:00 mondorescue/primary_db | 73 kB 00:05 Available Packages Name : mondo Arch : x86_64 Version : 3.2.2 Release : 1.rhel7 Size : 902 k Repo : mondorescue Summary : MondoRescue is a GPL Disaster Recovery and Cloning Solution URL : http://www.mondorescue.org License : GPLv2+ Description : MondoRescue is a GPL Disaster Recovery and Cloning solution : to create backup media(CD, DVD, tape, network images) that can be : used to redeploy the damaged system, : as well as deploy similar or less similar systems. : MondoRescue is reliable. It backs up your Linux server or : workstation to tape, CD-R, CD-RW, NFS or hard disk partition. In : the event of catastrophic data loss, you will be able to restore : all of your data [or as much as you want], from bare metal if : necessary. MondoRescue is in use by numerous blue-chip enterprises : and large organizations, dozens of smaller companies, and tens of : thousands of users. : . : MondoRescue is comprehensive. MondoRescue supports LVM, RAID, : ext2, ext3, ext4 JFS, XFS, ReiserFS, VFAT, and can support : additional file systems easily. It supports adjustments in disk : geometry, including migration from non-RAID to RAID. : MondoRescue runs on all major Linux distributions : and is getting better all the time. : You may even use it to backup non-Linux partitions, such as NTFS. : . : Homepage: http://www.mondorescue.org [root@centos7 ~]# yum -y install mondo Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp-srv2.kddilabs.jp * extras: ftp-srv2.kddilabs.jp * updates: ftp-srv2.kddilabs.jp Resolving Dependencies --> Running transaction check ---> Package mondo.x86_64 0:3.2.2-1.rhel7 will be installed (snip) (45/45): perl-ProjectBuilder-0.15.3-1.rhel7.noarch.rpm | 175 kB 00:03 -------------------------------------------------------------------------------- Total 307 kB/s | 6.0 MB 00:20 Retrieving key from ftp://ftp.mondorescue.org//rhel/7/x86_64/mondorescue.pubkey Importing GPG key 0x37DB9883: Userid : "Bruno Cornec (primary address) <bruno@victoria.frmug.org>" Fingerprint: 54aa 7ada 8c6b 0f5d 51c7 5dc0 141b 9ff2 37db 9883 From : ftp://ftp.mondorescue.org//rhel/7/x86_64/mondorescue.pubkey warning: /var/cache/yum/x86_64/7/mondorescue/packages/perl-ProjectBuilder-0.15.3-1.rhel7.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID 20ebfb0e: NOKEY Retrieving key from ftp://ftp.mondorescue.org//rhel/7/x86_64/mondorescue.pubkey The GPG keys listed for the "rhel 7 x86_64 - mondorescue Vanilla Packages" repository are already installed but they are not correct for this package. Check that the correct key URLs are configured for this repository. Failing package is: perl-ProjectBuilder-0.15.3-1.rhel7.noarch GPG Keys are configured as: ftp://ftp.mondorescue.org//rhel/7/x86_64/mondorescue.pubkey |
“perl-ProjectBuilder-0.15.3-1.rhel7.noarch.rpm”の署名が不正のようでFailしてしまいました。
先にperl-ProjectBuilderをインストールします。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
[root@centos7 ~]# yum -y install ftp://ftp.mondorescue.org/rhel/7/x86_64/perl-ProjectBuilder-0.15.3-1.rhel7.noarch.rpm Loaded plugins: fastestmirror perl-ProjectBuilder-0.15.3-1.rhel7.noarch.rpm | 175 kB 00:03 Examining /var/tmp/yum-root-8a0kDu/perl-ProjectBuilder-0.15.3-1.rhel7.noarch.rpm: perl-ProjectBuilder-0.15.3-1.rhel7.noarch Marking /var/tmp/yum-root-8a0kDu/perl-ProjectBuilder-0.15.3-1.rhel7.noarch.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package perl-ProjectBuilder.noarch 0:0.15.3-1.rhel7 will be installed --> Processing Dependency: perl-YAML for package: perl-ProjectBuilder-0.15.3-1.rhel7.noarch Loading mirror speeds from cached hostfile * base: ftp-srv2.kddilabs.jp * extras: ftp-srv2.kddilabs.jp * updates: ftp-srv2.kddilabs.jp --> Running transaction check ---> Package perl-YAML.noarch 0:0.84-5.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: perl-ProjectBuilder noarch 0.15.3-1.rhel7 /perl-ProjectBuilder-0.15.3-1.rhel7.noarch 486 k Installing for dependencies: perl-YAML noarch 0.84-5.el7 base 84 k Transaction Summary ================================================================================ Install 1 Package (+1 Dependent package) Total size: 570 k Installed size: 672 k Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : perl-YAML-0.84-5.el7.noarch 1/2 Installing : perl-ProjectBuilder-0.15.3-1.rhel7.noarch 2/2 Verifying : perl-YAML-0.84-5.el7.noarch 1/2 Verifying : perl-ProjectBuilder-0.15.3-1.rhel7.noarch 2/2 Installed: perl-ProjectBuilder.noarch 0:0.15.3-1.rhel7 Dependency Installed: perl-YAML.noarch 0:0.84-5.el7 Complete! |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
[root@centos7 ~]# yum -y install mondo Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp-srv2.kddilabs.jp * extras: ftp-srv2.kddilabs.jp * updates: ftp-srv2.kddilabs.jp Resolving Dependencies --> Running transaction check ---> Package mondo.x86_64 0:3.2.2-1.rhel7 will be installed --> Processing Dependency: syslinux >= 1.52 for package: mondo-3.2.2-1.rhel7.x86_64 (snip) Installed: mondo.x86_64 0:3.2.2-1.rhel7 Dependency Installed: afio.x86_64 0:2.5-1.rhel7 buffer.x86_64 0:1.19-4.rhel7 dosfstools.x86_64 0:3.0.20-10.el7 gdbm-devel.x86_64 0:1.10-8.el7 genisoimage.x86_64 0:1.1.11-25.el7 libdb-devel.x86_64 0:5.3.21-25.el7 libusal.x86_64 0:1.1.11-25.el7 mindi.x86_64 0:3.0.2-1.rhel7 mindi-busybox.x86_64 0:1.21.1-1.rhel7 mtools.x86_64 0:4.0.18-5.el7 perl-CPAN-Meta.noarch 0:2.120921-5.el7 perl-CPAN-Meta-Requirements.noarch 0:2.122-7.el7 perl-CPAN-Meta-YAML.noarch 0:0.008-14.el7 perl-Digest.noarch 0:1.17-245.el7 perl-Digest-MD5.x86_64 0:2.52-3.el7 perl-ExtUtils-CBuilder.noarch 1:0.28.2.6-295.el7 perl-ExtUtils-Install.noarch 0:1.58-295.el7 perl-ExtUtils-MakeMaker.noarch 0:6.68-3.el7 perl-ExtUtils-Manifest.noarch 0:1.61-244.el7 perl-ExtUtils-ParseXS.noarch 1:3.18-3.el7 perl-IO-Interface.x86_64 0:1.05-2.el7 perl-IPC-Cmd.noarch 1:0.80-4.el7 perl-JSON-PP.noarch 0:2.27202-2.el7 perl-Locale-Maketext.noarch 0:1.23-3.el7 perl-Locale-Maketext-Simple.noarch 1:0.21-295.el7 perl-Module-Build.noarch 2:0.40.05-2.el7 perl-Module-CoreList.noarch 1:2.76.02-295.el7 perl-Module-Load.noarch 1:0.24-3.el7 perl-Module-Load-Conditional.noarch 0:0.54-3.el7 perl-Module-Metadata.noarch 0:1.000018-2.el7 perl-Module-ScanDeps.noarch 0:1.10-3.el7 perl-MondoRescue.noarch 0:3.2.2-1.rhel7 perl-Net-IPv4Addr.noarch 0:0.10-6.el7 perl-Params-Check.noarch 1:0.38-2.el7 perl-Parse-CPAN-Meta.noarch 1:1.4404-5.el7 perl-Perl-OSType.noarch 0:1.003-3.el7 perl-devel.x86_64 4:5.16.3-295.el7 perl-version.x86_64 3:0.99.07-6.el7 pyparsing.noarch 0:1.5.6-9.el7 syslinux.x86_64 0:4.05-15.el7 systemtap-sdt-devel.x86_64 0:4.0-11.el7 wodim.x86_64 0:1.1.11-25.el7 Complete! [root@centos7 ~]# repoquery --list mondo /usr/lib64/mondo /usr/lib64/mondo/test /usr/lib64/mondo/test/mrtest_mountlist /usr/lib64/mondo/test/mrtest_mr_system /usr/lib64/mondo/test/mrtest_str_substitute /usr/lib64/mondo/test/mrtest_stresc /usr/lib64/mondo/test/mrtest_truncname /usr/sbin/mondoarchive /usr/sbin/mondorestore /usr/share/doc/mondo-3.2.2 /usr/share/doc/mondo-3.2.2/AUTHORS /usr/share/doc/mondo-3.2.2/COPYING /usr/share/doc/mondo-3.2.2/ChangeLog /usr/share/doc/mondo-3.2.2/NEWS /usr/share/doc/mondo-3.2.2/NEWS.old /usr/share/doc/mondo-3.2.2/README /usr/share/doc/mondo-3.2.2/TODO /usr/share/doc/mondo-3.2.2/mondorescue-howto.html /usr/share/doc/mondo-3.2.2/mondorescue-howto.pdf /usr/share/man/man8/mondoarchive.8.gz /usr/share/man/man8/mondorestore.8.gz /usr/share/mondo /usr/share/mondo/autorun /usr/share/mondo/do-not-compress-these /usr/share/mondo/post-nuke.sample /usr/share/mondo/post-nuke.sample/usr /usr/share/mondo/post-nuke.sample/usr/bin /usr/share/mondo/post-nuke.sample/usr/bin/post-nuke /usr/share/mondo/post-nuke.sample/usr/bin/post-nuke.debian /usr/share/mondo/restore-scripts /usr/share/mondo/restore-scripts/etc /usr/share/mondo/restore-scripts/etc/multipath.conf.sample /usr/share/mondo/restore-scripts/etc/raid0.conf.sample /usr/share/mondo/restore-scripts/etc/raid1.conf.sample /usr/share/mondo/restore-scripts/etc/raid4.conf.sample /usr/share/mondo/restore-scripts/etc/raid5.conf.sample /usr/share/mondo/restore-scripts/etc/raidtab.sample /usr/share/mondo/restore-scripts/mondo /usr/share/mondo/restore-scripts/mondo/mr-grub /usr/share/mondo/restore-scripts/mondo/mr-hack-elilo /usr/share/mondo/restore-scripts/mondo/mr-hack-fstab /usr/share/mondo/restore-scripts/mondo/mr-hack-lilo /usr/share/mondo/restore-scripts/mondo/mr-label-partitions-as-necessary /usr/share/mondo/restore-scripts/mondo/mr-make-me-bootable /usr/share/mondo/restore-scripts/mondo/mr-mount-me /usr/share/mondo/restore-scripts/mondo/mr-mount-subroutine-me /usr/share/mondo/restore-scripts/mondo/mr-raw /usr/share/mondo/restore-scripts/mondo/mr-stabelilo-me /usr/share/mondo/restore-scripts/mondo/mr-stabgrub-me /usr/share/mondo/restore-scripts/mondo/mr-stablilo-me /usr/share/mondo/restore-scripts/mondo/mr-stabraw-me /usr/share/mondo/restore-scripts/mondo/mr-unmount-me /usr/share/mondo/restore-scripts/mondo/mr-unmount-subroutine-me /var/cache/mondo |
バックアップはmondoarchiveでオプション無しで起動するとメニューが表示されます。
man mondoarchive
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 |
mondoarchive(8) System Manager's Manual mondoarchive(8) NAME mondoarchive - a backup / disaster-recovery tool. SYNOPSIS mondoarchive -O [ options ] : backup your PC mondoarchive -V [ options ] : verify your backup DESCRIPTION mondoarchive backs up a subset of your files, your entire filesystem, or even images of non-Linux filesystems to CD's, tape, ISO images or an NFS mount. In the event of catastrophic data loss, you will be able to restore everything, taking a PC from bare metal to its original state if necessary. With -O, it backs up your filesystem to CD, tape, ISO images or NFS share. Boot media or a special boot CD will be created to allow you to restore from bare metal if necessary. With -V, it verifies the backup against the live filesystem. This option may be used in combination with -O to verify a backup after its creation, or on its own to see how much the live filesystem has changed since the backup was made. Call mondoarchive without flags to make it auto-detect as many settings as possible, ask you politely for the rest, and then backup and verify your OS or a subset thereof. To restore data, either run mondorestore from the command line or boot from the emergency media generated during the backup process. The lat- ter will come in handy if a gremlin wipes your hard disk. BACKUP MEDIA You must specify one of the following:- -c speed Use CD-R drive as backup device and its (write-once) disks as backup media. -w speed Use CD-RW drive as backup device and its (write/rewrite) disks as backup media. Mondo will wipe media before writ- ing to them. -r Use DVD drive as backup device and its disks as backup media. Growisofs decides on the best speed for your drive. Note that calling mondoarchive using sudo when writing to DVDs will fail because growisofs does not support this - see the growisofs manpage for details. -C speed Use CD-R drive as a streaming device, almost like a tape streamer. Use write-once disks as backup media. Experi- mental. -p prefix Use prefix to generate the name of your ISO images. By default, mondoarchive names images mondorescue-1.iso, mon- dorescue-2.iso, ... Using -p machine will name your images machine-1.iso, machine-2.iso, ... -i Use ISO files (CD images) as backup media. This is good for backing up your system to a spare hard drive. The -n switch is a wiser choice if you plan to restore from a remote filesystem. -n mount Use files residing on a remote share as backup media. mount is the remote mount-point, e.g. 'nfs://192.168.1.3/home/nfs' for my file server. If not mounted, mondoarchive will do it for you. So nice ;-) If your NFS server only accept write from a backup user, you may specify it with the syntax: nfs://user@machine/mount/path and mondoarchive will try to do its best to support it. Other protocols are available such as sshfs for fuse SSH based filesystem mount, with the same syntax e.g. 'sshfs://user@192.168.1.3/home/nfs' and smbfs (aka cifs) for SaMBa or Windows based filesystem mount. -t Use tape streamer as backup device and its tapes as backup media. -U Use a generic USB device as backup device. Use this if you want to write your backup to a USB key or USB disk, which will be make bootable. The USB device should be attached to the system in order for this to work and its device name passed to the -d option. Do not use the partition name, but the raw device name (/dev/sda e.g.) WARNING: All the data on the related device will be removed. -u Use a generic streaming device as backup device. Use this if you want to write your backup to a device that is not directly support by mondoarchive. This will send the data directly to a raw device. For experienced users only. MAJOR OPTIONS -D Make a differential backup: examine the filesystem and find which files have changed since the last full backup was carried out. Backup only those files. -E "dir|..." Exclude dir(s) from backup. The dirs should be separated with a pipe and surrounded by quotes. This is the pref- ered and recommended option when doing partial archiving. Note that mondo automatically excludes removable media (/mnt/floppy, /mnt/cdrom, /proc, /sys, /run, /tmp). For example, if you are backing up to an NFS mount but you do not want to include the contents of the mount in a backup, exclude your local mount-point with this switch. It will also work with partitions, e.g. /dev/sdd4 if you have a peculiar SCSI zip drive which insists on showing up in the mountlist. NB: If you exclude /dev/sdd4 then the /dev entry itself will still be backed up, even though the mountlist entry will be suppressed. N.B.: If you specify a directory with a final / its content will be archived so it won't do what you expect. You may also specify full disk device to this option as with -E "/dev/sda|/dev/cciss/c0d0" N.B.: If for example you have a disk /dev/mapper/vgsan-lvdir mounted on a /mnt mountpoint excluding the /dev/mapper/vgsan-lvdir device prevents mon- dorestore to touch the LVM structure of this device at restore time (no pv|vg|lvcreate will occur). However, if you exclude the mount point /mnt, the LVM structure will be re-created at restore time. ALL DATA WILL THEN BE LOST ON THIS DEVICE. Use what is required for your configura- tion. -I "dir|..." Include dirs(s) in backup. The dirs should be separated with a pipe and surrounded by quotes. This option is mainly used to perform tests in order to reduce the time taken by the archiving operation. The default backup dir is "/" but you may specify alternatives, e.g. -I "/home|/etc" to override that. You may also specify full disk device to this option as with -I "/dev/sda|/dev/cciss/c0d0" N.B.: When using the -I option with the -E option, the -E content should be subdirecto- ries of those mentioned in the -I only, as -I takes prece- dence. -J file Specify an explicit list of files and directories to include in a plain text file, one item (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. -N Exclude all mounted network filesystems. This currently means NFS, SMB, Coda, MVFS, AFS OCFS and Netware. In other words, only backup the local hard disk(s). -d dev|dir Specify the backup device (CD/tape/USB) or directory (NFS/ISO). For CD-R[W] drives, this is the SCSI node where the drive may be found, e.g. '0,1,0'. For tape users, this is the tape streamers /dev entry, e.g. '/dev/st0'. For USB users, this is the device name of your key or external disk. For ISO users, this is the directory where the ISO images are stored. For NFS users, this is the subdirectory under the NFS mount where the backups are stored. The default for ISO and NFS is '/var/cache/mondo'. -g GUI mode. Without this switch, the screen output of mon- doarchive is suitable for processing by an 'expect' wrap- per, enabling the user to backup nightly via a cron job. However, if you want to run this program with an attrac- tive but non-cron-friendly interface then use '-g'. -k path Full path name of the kernel to use. Generally your native kernel should be found and work appropriately. Otherwise, you may use this option to point to another one. E.g. '-k /boot/myvmlinuz'. -m Manual (not self-retracting) CD trays are often found on laptops. If you are a laptop user, your CD burner has BurnProof technology or you experience problems with mondo then please call mondoarchive with this switch. -o Use OBDR (One Button Disaster Recovery) type of tapes. By default, tapes are not bootable. With this flag, tape will be made bootable following the OBDR format. -s size How much can each of your backup media hold? You may use 'm' and 'g' on the end of the number, e.g. '700m' for an extra-large CD-R. You no longer need to specify the size of your cartridges if you are backing up to tape. -x 'dev ...' Specify non-Linux partitions which you want to backup, e.g. NTFS or BeOS. MINOR OPTIONS -[0-9] Specify the compression level. Default is 3. No compres- sion is 0. -A command This command will be called after each CD/NFS/ISO file is written. It is useful if you want to do something with an ISO after creating it, e.g. write it to a CD burner using a non-standard command. -A understands two tokens - _ISO_ and _CD#_ - which will be translated into the ISO's file- name and its index number (1, 2, ...) respectively. So, you could use -A 'foobackup _ISO_; rm -f _ISO_' to feed each ISO to some magical new backup tool. -B command This command will be called before each CD/NFS/ISO file is written. See -A for more information. -F Do not retry when a command failed but just exits. This is useful for an automated mode launched from cron where you want to avoid filling your logs due to an answer which is impossible to give. -G Use gzip, the standard and quicker Linux compression engine, instead of bzip2. -H When you boot from the tape/CD, your hard drive will be wiped and the archives will be restored. Your decision to boot from the tape/CD will be taken as consent. No further permission will be sought. Use with caution. -L Use lzo, a fast compression engine, instead of bzip2. You may find lzo on Mondo's website or via FreshMeat. WARNING! Some versions of LZO are unstable. -M max-size Gives the maximum size of a biggie file (by default 64 MB). The value should be given in kB. Example use -M 128000 to have biggie being more than 128 MB. -Y Use lzma, the new quicker and optimized Linux compression engine, instead of bzip2. -R Star is an alternative to afio. Can be useful for distri- butions considering that afio is not free enough due to its age and old licenses (wrongly in our opinion). Star can be used to have a better support of sparse file com- pared to afio. Also star supports natively POSIX ACLs, whereas afio requires a special additional handlling. -P tarball Post-nuke tarball. If you boot into Nuke Mode and every- thing is restored successfully then the post-nuke script will be sought and executed if found. This is useful for post-restore customization. It is assumed that the tarball (.tar.gz format) will contain not just the post-nuke script (or binary, or whatever it is) but also any files it requires. -S path Specify the full pathname of the scratchdir, the directory where ISO images are built before being archived. If you have plenty of RAM and want to use a ramdisk for scratch space, specify its path here. -T path Specify the full pathname of the tempdir, the directory where temporary files (other than ISO images being assem- bled) are stored. See -S -W Don't make your backup self-booting. This is a really bad idea, IMO. Don't do this unless you have really great boot disks in your hand and you are an anally retentive SOB who can't wait 2 minutes for Mindi to run in the background. If you use -W then you'd better know what the hell you're doing, okay? -b Specify the internal block size used by the tape drive. This is usually 32K but some drives just don't like that. They should but they don't. That's what happens when tape drive vendors don't talk to kernel driver writers. Try 512 or 16384. -e Don't eject the CD or tape when backing up... -f device Specify the drive on which your Master Boot Record lives. Usually, this is discovered automatically. A good use case may be when you have software RAID. -l GRUB|LILO|ELILO|RAW Specify the boot loader. By default, your environment is examined and the boot loader can usually be discovered. If you specify RAW then the MBR will be backed up and restored byte-for-byte without any analysis. It is likely that you will also need to specify the boot device with -f <dev>. ELILO is mandatory for IA64 machines. GRUB is mandatory for now for UEFI systems. -Q Give more detailed information about the boot loader. -K loglevel Specify the loglevel. Use 99 for full debug. Standard debug level is 4. -v Gives mondoarchive version. -z Use extended attributes and acl for each file and store them in the backup media. Use this option if you use SElinux e.g. but it will slow down backup and restore time of course. DIAGNOSTICS Mondo generates one additional, and extremely important file: /var/log/mondoarchive.log. When seeking technical support, attach this file to your email. FILES /var/log/mondoarchive.log This log contains important information required to analyse mondoarchive problem reports. Did I already said that it's highly recommended to send this file with support questions. ENVIRONMENT VARIABLES ARCH This variable is passed to the environment by mondoarchive so that other tools are aware of the underlying hardware architecture. MONDO_SHARE This variable is passed to the environment by mondoarchive so that mindi is aware that it's called from it and act accordingly. It contains the shared directory for the mondo package. PATH This variable is modified internally by mondoarchive so that /sbin:/usr/sbin:/usr/local/sbin are appended to it systematically in order to find the required tools. TMPDIR This variable is used, if defined, as the target directory to create all the temporary files needed during the operation (not the scratch files) MRTMP This variable is used, if defined and if TMPDIR is not defined, as the target directory to create all the temporary files needed during the operation (not the scratch files) With none of these variables defined, nor the -T option on the CLI then /tmp is used for temporary files. MRSCRATCH This variable is used, if defined, as the target directory to create all the scratch files needed during the operation such as the archives (not the temp files). If this variable is not defined, /tmp is used for scratch files if using the CLI without -S option specified, and the largest partition available is proposed in the GUI if that one is used. NOTES A link to Mondo's HTML-based manual (by Bruno Cornec, Mikael Hultgren, Cafeole, Randy Delphs, Stan Benoit, and Hugo Rabson) may be found at http://www.mondorescue.org/docs.shtml - or in /usr/share/doc/mondo-x.xx on your hard drive. BUGS It is recommend that your system has more than 64 MB ram. SCSI device order change with nuke can have unexpected results. It is recommended you use expert mode with drastic hardware reconfigurations. EXAMPLES ISO: Backup to a directory; note that /mnt/foo's contents will be backed up except for its ISO's unless you exclude it, as follows: mondoarchive -Oi -d /mnt/foo -E '/mnt/foo|/mnt/foo2' -p `host- name`-`date +%Y-%m-%d` Backup to ISO's non-interactively, e.g. as a job running in /etc/cron.daily: mkdir -p /bkp/`date +%A`; mondoarchive -Oi -9 -d /bkp/`date +%A` -E /bkp DVD: Backup PC using DVD Media: mondoarchive -OVr -d /dev/scd0 -gF -s 4480m TAPE: Backup to tape, using lzo compression (WARNING - can be unsta- ble): mondoarchive -Ot -d /dev/st0 -L Verify existing tape backup which was made with lzo compression:- mondoarchive -Vt -d /dev/st0 -L -g Backup to tape, using max compression: mondoarchive -Ot -9 -d /dev/st0 CD-R: Backup to 700MB CD-R disks using a 16x CD burner: mondoarchive -Oc 16 -s 700m -g Verify existing CD-R or CD-RW backup (works for either):- mondoarchive -Vc 16 CD-RW: Backup to 650MB CD-RW disks using a 4x CD ReWriter: mondoarchive -Ow 4 Backup just your /home and /etc directory to 650MB CD-RW disks using a 4x CD ReWriter: mondoarchive -Ow 4 -I "/home|/etc" NFS: Backup to an NFS mount: mondoarchive -On nfs://192.168.1.2/home/nfs -d /Monday -E /mnt/nfs Verify existing NFS backup:- mondoarchive -Vn nfs://192.168.1.2/home/nfs -d /Monday USB: Backup to your 4GB USB key, using gzip compression: mondoarchive -OU -d /dev/sda -s 4g -G RAID: Backup PC to a Software Raid mount point, iso size 700mb: mondoarchive -O -s 700m -d /mnt/raid SEE ALSO afio(1), bzip2(1), find(1), mindi(8), mondorestore(8). AUTHORS Bruno Cornec (lead-development) bruno_at_mondorescue.org Andree Leidenfrost (co-developer) aleidenf_at_bigpond.net.au ORIGINAL AUTHORS Hugo Rabson (original author) hugo.rabson_at_mondorescue.org Jesse Keating (original RPM packager) hosting_at_j2solutions.net Stan Benoit (testing) troff_at_nakedsoul.org Mikael Hultgren (docs) mikael_hultgren_at_gmx.net See mailing list at http://www.mondorescue.org for technical support. Mondo Rescue 3.2.2-r3578 2016-04-28 mondoarchive(8) |
man mondorestore
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 |
mondorestore(8) System Manager's Manual mondorestore(8) NAME mondorestore - a restore / disaster-recovery tool. SYNOPSIS mondorestore [-p prefix][-K loglevel][-i][-U]... : restore your PC DESCRIPTION mondorestore restores data previously backed up with mondoarchive. Note that mondorestore will usually automatically be called when boot- ing a MondoRescue medium. The only exception is booting a MondoRescue medium in Expert mode in which case mondorestore can be evoked from the command line. -p prefix Use prefix to specify the name of your ISO images. By default, mondorestore names images mondorescue-1.iso, mondorescue-2.iso, ... Using -p machine mondorestore will use images named machine-1.iso, machine-2.iso, ... -i Use ISO files (CD images) as restore media. This is good when having backed up your system to a spare hard drive. The -n switch is a wiser choice if you plan to restore from a remote filesystem. -n mount Use files residing on NFS partition as restore media. mount is the remote mount-point, e.g. nfs://192.168.1.3:/home/nfs' for my file server. Please mount it before restoring/verifying. -t Use tape streamer as restore device and its tapes as restore media. -U Use a generic USB device as restore device. Use this if you want to read your backup from a USB key or USB disk. The USB device should be attached to the system in order for this to work and its device name passed to the -d option. -u Use a generic streaming device as restore device. Use this if you want to read your backup from a device that is not directly support by mondoarchive. This will get the data directly from a raw device. For experienced users only. -E "path ..." Exclude path(s) from restore (future dev). The paths should be separated with a pipe. For example, if you are restoring up from an NFS mount but you do not want to restore some content, exclude it with that switch. -I "path ..." Include paths(s) to restore (future dev). -J file Specify an explicit list of files and directories to restore in a plain text file, one item (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 (future dev). -d dev|dir Specify the restore device (CD/tape/USB) or directory (NFS/ISO). For CD-R[W] drives, this is the SCSI node where the drive may be found, e.g. '0,1,0'. For tape users, this is the tape streamers /dev entry, e.g. '/dev/nst0'. For USB users, this is the device name of your key or external disk. For ISO users, this is the directory where the ISO images are stored. For NFS users, this is the directory within the NFS mount where the backups are stored. The default for ISO and NFS is '/var/cache/mondo'. -g GUI mode. Without this switch, the screen output of mondorestore is text based. -m Manual (not self-retracting) CD trays are often found on lap- tops. If you are a laptop user, your CD burner has BurnProof technology or you experience problems with mondo then please call mondorestore with this switch. -o Use OBDR (One Button Disaster Recovery) type of tapes. By default, tapes are not bootable. With this flag, tape will be read as bootable tapes following the OBDR format. -x 'dev ...' Specify non-Linux partitions which you want to restore (future dev). -T path Specify the full pathname of the tempdir, the directory where temporary files are stored. -b Specify the internal block size used by the tape drive. This is usually 32K but some drives just don't like that. They should but they don't. That's what happens when tape drive vendors don't talk to kernel driver writers. Try 512 or 16384. -e Don't eject the CD or tape when restoring... -f device Specify the drive on which your Master Boot Record lives. Usu- ally, this is discovered automatically. (future dev) -Q Give more detailed information about the boot loader. -K loglevel Specify the loglevel. Use 99 for full debug. Standard debug level is 4. -z Use extended attributes and acl for each file and store them in the backup media. Use this option if you use SElinux e.g. but it will slow down backup and restore time of course. -Z Specify mondorestore mode. Mode could be one of nuke: This mode restore everything like on the original system with no/minimal questions interactive: This mode asks all the questions to the user compare: This mode just compares the system with the backup iso: This mode restores from iso images, instead of real media isonuke: This mode restores from iso images, instead of real media, with no/minimal questions mbr: This mode just restores the MBR (Master Boot Record) DIAGNOSTICS mondorestore generates an Extremely important file: /var/log/mondore- store.log. When seeking technical support, attach this file to your email. FILES /var/log/mondorestore.log This log contains important information required to analyse mondorestore problem reports. Mondo support highly recommends sending this file with support questions. It's located under /tmp during the restore process and moved under /var/log at the end. ENVIRONMENT VARIABLES TMPDIR This variable is used, if defined, as the target directory to create all the temporary files needed during the operation. MRTMP This variable is used, if defined and if TMPDIR is not defined, as the target directory to create all the temporary files needed during the operation (not the scratch files) With none of these variables defined, nor the -T option on the CLI then /tmp is used for temporary files. dirimg This variable is setup by the rcS script to store the network remote directory in PXE mode. (managed internally) imgname This variable is setup by the rcS script to overwrite the pre- fix name in PXE mode. (managed internally) netfsmount This variable is setup by the rcS script to store the net- work file system mount point in PXE mode. (managed internally) MRUSBDEV This variable contains the device file of the USB device to restore from. (equivalent if the usb-dev parameter of the mondorescue config file) NOTES A link to Mondo's HTML-based manual (by Bruno Cornec, Mikael Hultgren, Cafeole, Randy Delphs, Stan Benoit, and Hugo Rabson) may be found at http://www.mondorescue.org/docs.shtml - or in /usr/share/doc/mondo-x.xx on your hard drive. BUGS It is recommend that your system has more than 64 MB ram. SCSI device order change with nuke can have unexpected results. It is recommended you use expert mode with drastic hardware reconfigurations. SEE ALSO afio(1), bzip2(1), find(1), mindi(8), mondoarchive(8). AUTHORS Bruno Cornec (lead-development) bruno_at_mondorescue.org Andree Leidenfrost (co-developer) aleidenf_at_bigpond.net.au ORIGINAL AUTHORS Hugo Rabson (original author) hugo.rabson_at_mondorescue.org Jesse Keating (packaging) hosting_at_j2solutions.net Stan Benoit (testing) troff_at_nakedsoul.org Mikael Hultgren (docs) mikael_hultgren_at_gmx.net See mailing list at http://www.mondorescue.org for technical support. Mondo Rescue 3.2.2-r3578 2016-04-28 mondorestore(8) |