Diff for "MondoMindi"


Differences between revisions 7 and 69 (spanning 62 versions)
Revision 7 as of 2006-02-09 23:30:56
Size: 2486
Editor: dsl093-101-160
Comment:
Revision 69 as of 2015-09-22 16:58:24
Size: 6891
Editor: cable-ontario-198
Comment: I did this with the /test/ folder and got all sorts of uninstallable dependency errors. Using the normal folder works fine.
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
This document contains a step-by-step proceedure for setting up mondo/mindi backup and recovery on an Ubuntu Breezy box. #title Mondo Rescue
||<tablestyle="float:right; font-size: 0.9em; width:40%; background:#F1F1ED; margin: 0 0 1em 1em;" style="padding:0.5em;"><<BR>><<TableOfContents(2)>>||
Line 3: Line 4:
== What is mondo/mindi? ==

From the mondo/mindi website (http://www.mondorescue.org) HowTo:
== What is Mondo Rescue? ==
From the website (http://www.mondorescue.org) How To:
Line 9: Line 9:
== Description of this solution == == For Trusty (Ubuntu 14.04 LTS) ==
Line 11: Line 11:
The mondo/mindi configuration described herein comes curtesy of Nick Wheeler, who uses a similar proceedure to backup Please open a Terminal and copy-paste the following commands one by one into the Terminal to install mondo (press <ENTER> after each line):

{{{
cd /tmp
}}}

{{{
rm *.list
}}}

{{{
wget ftp://ftp.mondorescue.org/ubuntu/`lsb_release -r|awk '{print $2}'`/mondorescue.sources.list
}}}

{{{
sudo cp mondorescue.sources.list /etc/apt/sources.list.d/mondorescue.sources.list
}}}

{{{
sudo apt-get update
}}}

{{{
sudo apt-get install mondo afio buffer lzop mindi mindi-busybox
}}}

{{{
sudo ln -s /sbin/parted2fdisk /usr/sbin/parted2fdisk
}}}

{{{
sudo ln -s /sbin/mke2fs /usr/sbin/mke2fs
}}}

Now Mondo Archive v3.2.120150305095420-0 is installed, including the required dependencies (afio buffer lzop mindi mindi-busybox)

Then you can run mondo using the following commands:

{{{
sudo mondoarchive
}}}

or

{{{
sudo mondorestore
}}}

== For Precise Pangolin (Ubuntu 12.04 LTS) ==

Please open a Terminal and copy-paste the following commands one by one into the Terminal to install mondo (press <ENTER> after each line):

{{{
wget ftp://ftp.mondorescue.org/ubuntu/`lsb_release -r|awk '{print $2}'`/mondorescue.sources.list
}}}

{{{
sudo sh -c "cat mondorescue.sources.list >> /etc/apt/sources.list"
}}}

{{{
sudo apt-get update
}}}

{{{
sudo apt-get install mondo mindi
}}}

Now Mondo Archive v3.0.1-r2957 is installed, including the required dependencies(afio buffer lzop mindi mindi-busybox ntfsprogs)

Then you can run mondo using the following commands:

{{{
sudo mondoarchive
}}}

or

{{{
sudo mondorestore
}}}


== Procedure for Breezy Badger (unsupported Ubuntu 5.10 ) - needs update for Ubuntu 14.04 LTS ==

The procedure below contains a step-by-step procedure and a script for setting up mondo/mindi backup and recovery on an Ubuntu Breezy box.

=== Description of this solution ===
The mondo/mindi configuration described herein comes courtesy of Nick Wheeler, who uses a similar procedure to backup
Line 13: Line 101:
then hopefully Nick will help me refine and simplify the process so that x86 Ubuntu Breezy boxes can be setup with a\
single install script.
then hopefully Nick will help me refine and simplify the process so that x86 Ubuntu Breezy boxes can be setup with a
single install script (see below:).
Line 16: Line 104:
== The "Roll Your Own" Solution ==

=== Prerequisits ===
=== The "Roll Your Own" Solution ===
==== Prerequisites ====
Line 27: Line 113:
 0. syslinux  0. syslinuxThe Microsoft command "sys.exe"
Line 30: Line 116:
 0. mkisofs
Line 31: Line 118:
=== Installation Proceedure === If you intend to back up unconventional partition types additional tools will be needed.
In the script below these optional tools are ignored.
However, These include:
Line 33: Line 122:
 0. mtools
 0. ms-sys
 0. Other closed file system emulator/drivers

==== Limitations ====
 0. This method (and script) has been tested and will operate in a Dapper or a Breezy environment.
 0. This method (and script) has not been tested in a Hoary environment
 0. This method (and script) will not function in a Warty environment
'' testing performed March 2006 in the flint linux candy lab, Montpelier, Vermont''

==== Installation Procedure ====
Line 37: Line 137:
   * http://ibiblio.org/jelkner/mondo_mindi/kernel-image-2.6.14.2-baseline-4.2_10.00.Custom_i386.deb
Line 42: Line 141:
   * tar xvjf mondo-2.06-r266.tar.bz2
   * tar xvjf mindi-1.06-r266.tar.bz2
   * tar xvzf mindi-kernel-1.0.tgz
   * tar -xvjf mondo-2.06-r266.tar.bz2
   * tar -xvjf mindi-1.06-r266.tar.bz2
   * tar -xvzf mindi-kernel-1.0.tgz
Line 52: Line 151:
   * cd ../mindi-kernel-1.0.tgz    * cd ../mindi-kernel-1.0
Line 55: Line 154:
   * cd ..
   * dpkg -i kernel-image-2.6.14.2-baseline-4.2_10.00.Custom_i386.deb
Line 59: Line 156:
   * put the following in a file named '''mondobackup''':    * put the following in a file named {{{mondobackup}}}: {{{
     mondoarchive -Oi -d /usr/local/mondoiso -9 -F -E "/usr/local/mondoiso /usr/local/mondo" -k FAILSAFE
     #
     # -Oi tells mondo to back up the system, and to back it up to ISO files.
     # -d is the destination for the ISO files to be put
     # -9 is the compression level
     # -F tells mondo not to offer to write boot+data floppy disk images.
     # -E is the exclusion directory, anything listed in that is excluded.
     # -k FAILSAFE tells mondo to use the FAILSAFE kernel, because your kernel has cramfs in it.}}}
 0. chmod +x mondobackup

=== Using Mondo/Mindi ===
You now have mondo/mindi installed on your system. To make cdimages which can be used to backup and restore your
system on the same or another machine do the following:

 0. as root run {{{mondobackup}}}.

That's it! {{{mondobackup}}} will call mondo and mindi to make iso images of your system in {{{/usr/local/mondoiso}}}.
Burn each image onto a cd, then boot the target machine from the first cd to begin the restoration process.

Note: If you happen to use SCSI, and the failsafe kernel doesn't work for you, download and install kernel-image-2.6.14.2-baseline-4.2_10.00.Custom_i386.deb, but make sure to edit your grub/lilo so it doesn't use this kernel as your default kernel (unless you want to). Then you have to reboot into the kernel and then you can perform your backup, but remove the -k FAILSAFE switch from /usr/local/bin/mondobackup. This is messy and silly, there will be a better/universal way in the very near future.

   * http://ibiblio.org/jelkner/mondo_mindi/kernel-image-2.6.14.2-baseline-4.2_10.00.Custom_i386.deb
   * dpkg -i kernel-image-2.6.14.2-baseline-4.2_10.00.Custom_i386.deb

=== Mondo Mindi Wheeler Script ===
by Paul Flint

This script actually works. Download the script from https://docbox.flint.com/bazaar/MondoMindi/mm.sh, next chmod +X it, become root, and tourch it off. It appears that Version 0.5 is worth testing with.

----
CategoryBackupRecovery

What is Mondo Rescue?

From the website (http://www.mondorescue.org) How To:

Mondo Rescue is a Disaster Recovery Solution which allows you to effortlessly backup and interactively restore Linux, Windows and other supported filesystem partitions to/from CD-R/RW media, tape, NFS, ... and Mindi Linux provides the bootable emergency restore CD/floppy set which Mondo uses at boot-time.

For Trusty (Ubuntu 14.04 LTS)

Please open a Terminal and copy-paste the following commands one by one into the Terminal to install mondo (press <ENTER> after each line):

cd /tmp

rm *.list

wget ftp://ftp.mondorescue.org/ubuntu/`lsb_release -r|awk '{print $2}'`/mondorescue.sources.list

sudo cp mondorescue.sources.list /etc/apt/sources.list.d/mondorescue.sources.list

sudo apt-get update

sudo apt-get install mondo afio buffer lzop mindi mindi-busybox

sudo ln -s /sbin/parted2fdisk /usr/sbin/parted2fdisk

sudo ln -s /sbin/mke2fs /usr/sbin/mke2fs

Now Mondo Archive v3.2.120150305095420-0 is installed, including the required dependencies (afio buffer lzop mindi mindi-busybox)

Then you can run mondo using the following commands:

sudo mondoarchive

or

sudo mondorestore

For Precise Pangolin (Ubuntu 12.04 LTS)

Please open a Terminal and copy-paste the following commands one by one into the Terminal to install mondo (press <ENTER> after each line):

wget ftp://ftp.mondorescue.org/ubuntu/`lsb_release -r|awk '{print $2}'`/mondorescue.sources.list

sudo sh -c "cat mondorescue.sources.list >> /etc/apt/sources.list"

sudo apt-get update

sudo apt-get install mondo mindi

Now Mondo Archive v3.0.1-r2957 is installed, including the required dependencies(afio buffer lzop mindi mindi-busybox ntfsprogs)

Then you can run mondo using the following commands:

sudo mondoarchive

or

sudo mondorestore

Procedure for Breezy Badger (unsupported Ubuntu 5.10 ) - needs update for Ubuntu 14.04 LTS

The procedure below contains a step-by-step procedure and a script for setting up mondo/mindi backup and recovery on an Ubuntu Breezy box.

Description of this solution

The mondo/mindi configuration described herein comes courtesy of Nick Wheeler, who uses a similar procedure to backup servers at work. I'm going to first describe the roll your own solution, building everything from source, and then hopefully Nick will help me refine and simplify the process so that x86 Ubuntu Breezy boxes can be setup with a single install script (see below:).

The "Roll Your Own" Solution

Prerequisites

Make sure you have the following packages installed:

  1. gcc
  2. make
  3. libnewt-dev
  4. buffer
  5. gawk
  6. syslinuxThe Microsoft command "sys.exe"
  7. afio
  8. cdrecord
  9. mkisofs

If you intend to back up unconventional partition types additional tools will be needed. In the script below these optional tools are ignored. However, These include:

  1. mtools
  2. ms-sys
  3. Other closed file system emulator/drivers

Limitations

  1. This method (and script) has been tested and will operate in a Dapper or a Breezy environment.
  2. This method (and script) has not been tested in a Hoary environment
  3. This method (and script) will not function in a Warty environment

testing performed March 2006 in the flint linux candy lab, Montpelier, Vermont

Installation Procedure

  1. sudo su -
  2. mkdir /usr/local/mondoiso
  3. cd /usr/local/src
  4. download each of the following (note: there may be newer versions of each of these by the time you read this, but I plan only to test this procedure every 6 months - with each Ubuntu release - and to put a version know to work in a safe place):
  5. Now uncompress the archives:
    • tar -xvjf mondo-2.06-r266.tar.bz2
    • tar -xvjf mindi-1.06-r266.tar.bz2
    • tar -xvzf mindi-kernel-1.0.tgz
  6. Build and install the pieces:
    • cd mondo-2.06
    • ./configure
    • make
    • make install
    • cd ../mindi-1.06 (note: CHANGES and chown warnings may be safely ignored)
    • ./install.sh
    • cd ../mindi-kernel-1.0
    • ./install.sh
    • mv /usr/local/share/mindi/* /usr/local/lib/mindi
  7. Create the mondobackup script:
    • cd /usr/local/bin/
    • put the following in a file named mondobackup:

           mondoarchive -Oi -d /usr/local/mondoiso -9 -F -E "/usr/local/mondoiso /usr/local/mondo" -k FAILSAFE
           #
           # -Oi tells mondo to back up the system, and to back it up to ISO files.
           # -d is the destination for the ISO files to be put
           # -9 is the compression level
           # -F tells mondo not to offer to write boot+data floppy disk images.
           # -E is the exclusion directory, anything listed in that is excluded.
           # -k FAILSAFE tells mondo to use the FAILSAFE kernel, because your kernel has cramfs in it.
  8. chmod +x mondobackup

Using Mondo/Mindi

You now have mondo/mindi installed on your system. To make cdimages which can be used to backup and restore your system on the same or another machine do the following:

  1. as root run mondobackup.

That's it! mondobackup will call mondo and mindi to make iso images of your system in /usr/local/mondoiso. Burn each image onto a cd, then boot the target machine from the first cd to begin the restoration process.

Note: If you happen to use SCSI, and the failsafe kernel doesn't work for you, download and install kernel-image-2.6.14.2-baseline-4.2_10.00.Custom_i386.deb, but make sure to edit your grub/lilo so it doesn't use this kernel as your default kernel (unless you want to). Then you have to reboot into the kernel and then you can perform your backup, but remove the -k FAILSAFE switch from /usr/local/bin/mondobackup. This is messy and silly, there will be a better/universal way in the very near future.

Mondo Mindi Wheeler Script

by Paul Flint

This script actually works. Download the script from https://docbox.flint.com/bazaar/MondoMindi/mm.sh, next chmod +X it, become root, and tourch it off. It appears that Version 0.5 is worth testing with.


CategoryBackupRecovery

MondoMindi (last edited 2015-09-22 16:58:24 by cable-ontario-198)