How to Install Mondo Rescue Disaster Recovery Tool in Linux

To Install Mondo Rescue Disaster Recovery Tool to Backup Linux Systems

Mondo Rescue is an open source backup tool for creating Backup of your entire system in an ISO image format. In Case, any failure you can use this ISO Image to rescue your system. Installation of Mondo Rescue Disaster Recovery Tool is explained in this article.

Installation of Mondo in Linux

 

 

On Debian 6

# wget ftp://ftp.mondorescue.org/debian/6/mondorescue.sources.list
# sh -c "cat mondorescue.sources.list >> /etc/apt/sources.list" 
# apt-get update 
# apt-get install mondo

On Linux Mint/Ubuntu

# wget ftp://ftp.mondorescue.org/ubuntu/`lsb_release -r|awk '{print $2}'`/mondorescue.sources.list
# sh -c "cat mondorescue.sources.list >> /etc/apt/sources.list" 
# apt-get update 
# apt-get install mondo

On CentOS/RHEL 6 – 32-Bit 

Under “/etc/yum.repos.d/”, Download the MondoRescue repository as file name “mondorescue.repo“.

[root@linuxhelp ~]# cd /etc/yum.repos.d/
[root@linuxhelp ~]# wget ftp://ftp.mondorescue.org/rhel/6/i386/mondorescue.repo

On CentOS/RHEL 6 – 64-Bit 

[root@linuxhelp ~]# cd /etc/yum.repos.d/
[root@linuxhelp yum.repos.d]# wget ftp://ftp.mondorescue.org/rhel/6/x86_64/mondorescue.repo
--2016-06-04 11:05:25--  ftp://ftp.mondorescue.org/rhel/6/x86_64/mondorescue.repo
           => “mondorescue.repo”
Resolving ftp.mondorescue.org... 213.30.161.23
Connecting to ftp.mondorescue.org|213.30.161.23|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /rhel/6/x86_64 ... done.
==> SIZE mondorescue.repo ... 201
==> PASV ... done.    ==> RETR mondorescue.repo ... done.
Length: 201 (unauthoritative)

100%[===================================================================================================================>] 201         --.-K/s   in 0s      

2016-06-04 11:05:28 (15.0 MB/s) - “mondorescue.repo” saved [201]

To list repo

[root@linuxhelp yum.repos.d]# ls

CentOS-Base.repo  CentOS-Debuginfo.repo  CentOS-fasttrack.repo  CentOS-Media.repo  CentOS-Vault.repo  epel.repo  epel-testing.repo  mondorescue.repo

To install Mondo

Execute the following command to install mondo.

[root@linuxhelp yum.repos.d]# yum install mondo -y
Loaded plugins: aliases, changelog, fastestmirror, kabi, presto, refresh-packagekit, security, tmprepo, verify, versionlock
Loading support for CentOS kernel ABI
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: centos.excellmedia.net
 * epel: epel.mirror.net.in
 * extras: centos.excellmedia.net
 * updates: centos.excellmedia.net
.
.
Resolving Dependencies
--> Running transaction check
---> Package mondo.x86_64 0:3.2.2-1.rhel6 will be installed
.
.
Installed:
  mondo.x86_64 0:3.2.2-1.rhel6                                                                                                                               
.
.
Complete!

Now Mondo Rescue is successfully installed.
 

Creating Backup or Cloning ISO Image of Server/System

Execute “mondoarchive” command as “root” user.

[root@linuxhelp ~]# mondoarchive

Choose the device, where you want to store your backup files.

backup
Now choose the directory path in your hard disk to store the back file in .iso format.

 

Mondo Rescue

Select the type of compression.

compression types

Choose the size of compression.

compression

Enter the output size for each ISO file, between 700 to 4480 in MB.

ISO size

Type the prefix name for the ISO file.

prefix

Choose the path to take backup. Default “/” will take the complete system backup. If you want backup only particular directory you can mention the path.

backup paths

Enter the path if you want to exclude while taking backup. If don’t want to backup, simply skip it.

exclude paths

Enter the temporary directory path.

temporary directory

Choose scratch directory path.

scratch directory path

To backup extended attributes choose “yes”.

backup extended attributes

It will find your system’s kernel path. Select "OK" to continue.

kernel path
Choose “yes” to verify the backup after completion.

backups verification
Then choose “yes” to proceed.

Alert

Now the Backup starts. Please be patient until the backup process is completed.

making catalog
dividing filelist into sets
calling mindi

backing up filesystem
running mkmisofs
create boot+data

verifying ISO

catalog of files

Now the backup process is completed. Choose “ok” to return to your shell prompt.

mondo rescue welcome page

After completing backup you may find the ISO file in the backup location you have chosen. By default it is located under /var/cache/mondo. Here, we have chosen the /backup directory.

[root@linuxhelp ~]# ls /backup
linuxhelp.iso

 

 

Burn this ISO file into a DVD/CD and boot your system into that DVD to restore your system by using mondo rescue tool.

burning ISO file
To restore the backup type “nuke” in the boot screen and hit “enter” to start restoring.

welcome page

Now the restore process has been started.

caution

partitioning devices

formatting partitions

mounting devices

Restoring from archives

mounting devicesrestoring from arcives

unmounting devices

restoring

Now the restore process is completed, to take into effect type exit to reboot your system.

restore process
 


Thank you! for using Linux Help.

You find this tutorial helpful? Share with your friends to keep it alive.
For more help topics browse our website www.linuxhelp.com
Be the first to comment, we value your suggestions. For further queries please comment below.

Tags: Backup Data Recovery
user image Author :  Matthew
user image
damandiawara 05-04-2017 at 11:47
--> Processing Dependency: perl(MondoRescue::Version) for package: mindi-3.0.2-1.rhel6.i386 --> Processing Dependency: perl-Module-ScanDeps for package: mindi-3.0.2-1.rhel6.i386 --> Processing Dependency: perl(MondoRescue::File) for package: mindi-3.0.2-1.rhel6.i386 --> Processing Dependency: perl(MondoRescue::Disk) for package: mindi-3.0.2-1.rhel6.i386 --> Processing Dependency: mkisofs for package: mindi-3.0.2-1.rhel6.i386 --> Processing Dependency: perl-IO-Interface for package: mindi-3.0.2-1.rhel6.i386 --> Processing Dependency: perl(Module::ScanDeps) for package: mindi-3.0.2-1.rhel6.i386 --> Processing Dependency: perl(MondoRescue::Base) for package: mindi-3.0.2-1.rhel6.i386 --> Processing Dependency: mtools for package: mindi-3.0.2-1.rhel6.i386 --> Processing Dependency: perl(ProjectBuilder::Base) for package: mindi-3.0.2-1.rhel6.i386 --> Processing Dependency: perl-MondoRescue for package: mindi-3.0.2-1.rhel6.i386 ---> Package newt.i686 0:0.52.11-3.el6 will be installed --> Processing Dependency: libslang.so.2(SLANG2) for package: newt-0.52.11-3.el6.i686 --> Processing Dependency: libslang.so.2 for package: newt-0.52.11-3.el6.i686 --> Processing Dependency: libpopt.so.0(LIBPOPT_0) for package: newt-0.52.11-3.el6.i686 --> Processing Dependency: libpopt.so.0 for package: newt-0.52.11-3.el6.i686 ---> Package syslinux.x86_64 0:4.04-3.el6 will be installed --> Processing Dependency: syslinux-nonlinux for package: syslinux-4.04-3.el6.x86_64 ---> Package wodim.x86_64 0:1.1.9-12.el6 will be installed --> Running transaction check ---> Package genisoimage.x86_64 0:1.1.9-12.el6 will be installed ---> Package mindi-busybox.i386 0:1.21.1-1.rhel6 will be installed ---> Package mtools.x86_64 0:4.0.12-1.el6 will be installed ---> Package nss-softokn-freebl.i686 0:3.14.3-23.3.el6_8 will be installed ---> Package perl-IO-Interface.x86_64 0:1.09-1.el6 will be installed ---> Package perl-Module-ScanDeps.noarch 0:0.95-2.el6 will be installed --> Processing Dependency: perl(Module::Build::ModuleInfo) for package: perl-Module-ScanDeps-0.95-2.el6.noarch ---> Package perl-MondoRescue.noarch 0:3.2.2-1.rhel6 will be installed --> Processing Dependency: perl(IO::Interface::Simple) for package: perl-MondoRescue-3.2.2-1.rhel6.noarch --> Processing Dependency: perl(Net::IPv4Addr) for package: perl-MondoRescue-3.2.2-1.rhel6.noarch ---> Package perl-ProjectBuilder.noarch 0:0.14.4-1.rhel6 will be installed ---> Package popt.i686 0:1.13-7.el6 will be installed ---> Package slang.i686 0:2.2.1-1.el6 will be installed ---> Package syslinux-nonlinux.noarch 0:4.04-3.el6 will be installed --> Running transaction check ---> Package perl-IO-Interface.i686 0:1.05-2.el6 will be installed ---> Package perl-Module-Build.x86_64 1:0.3500-141.el6_7.1 will be installed --> Processing Dependency: perl(ExtUtils::CBuilder) >= 0.15 for package: 1:perl-Module-Build-0.3500-141.el6_7.1.x86_64 --> Processing Dependency: perl(Archive::Tar) >= 1.08 for package: 1:perl-Module-Build-0.3500-141.el6_7.1.x86_64 ---> Package perl-Net-IPv4Addr.noarch 0:0.10-6.el6 will be installed --> Running transaction check ---> Package perl-Archive-Tar.x86_64 0:1.58-141.el6_7.1 will be installed --> Processing Dependency: perl(Package::Constants) for package: perl-Archive-Tar-1.58-141.el6_7.1.x86_64 --> Processing Dependency: perl(IO::Zlib) for package: perl-Archive-Tar-1.58-141.el6_7.1.x86_64 --> Processing Dependency: perl(Compress::Zlib) for package: perl-Archive-Tar-1.58-141.el6_7.1.x86_64 ---> Package perl-ExtUtils-CBuilder.x86_64 1:0.27-141.el6_7.1 will be installed --> Running transaction check ---> Package perl-Compress-Zlib.x86_64 0:2.021-141.el6_7.1 will be installed --> Processing Dependency: perl(IO::Uncompress::Gunzip) >= 2.021 for package: perl-Compress-Zlib-2.021-141.el6_7.1.x86_64 --> Processing Dependency: perl(IO::Compress::Gzip::Constants) >= 2.021 for package: perl-Compress-Zlib-2.021-141.el6_7.1.x86_64 --> Processing Dependency: perl(IO::Compress::Gzip) >= 2.021 for package: perl-Compress-Zlib-2.021-141.el6_7.1.x86_64 --> Processing Dependency: perl(IO::Compress::Base::Common) >= 2.021 for package: perl-Compress-Zlib-2.021-141.el6_7.1.x86_64 --> Processing Dependency: perl(Compress::Raw::Zlib) >= 2.021 for package: perl-Compress-Zlib-2.021-141.el6_7.1.x86_64 ---> Package perl-IO-Zlib.x86_64 1:1.09-141.el6_7.1 will be installed ---> Package perl-Package-Constants.x86_64 1:0.02-141.el6_7.1 will be installed --> Running transaction check ---> Package perl-Compress-Raw-Zlib.x86_64 1:2.021-141.el6_7.1 will be installed ---> Package perl-IO-Compress-Base.x86_64 0:2.021-141.el6_7.1 will be installed ---> Package perl-IO-Compress-Zlib.x86_64 0:2.021-141.el6_7.1 will be installed --> Finished Dependency Resolution Error: Multilib version problems found. This often means that the root cause is something else and multilib version checking is just pointing out that there is a problem. Eg.: 1. You have an upgrade for perl-IO-Interface which is missing some dependency that another package requires. Yum is trying to solve this by installing an older version of perl-IO-Interface of the different architecture. If you exclude the bad architecture yum will tell you what the root cause is (which package requires what). You can try redoing the upgrade with --exclude perl-IO-Interface.otherarch ... this should give you an error message showing the root cause of the problem. 2. You have multiple architectures of perl-IO-Interface installed, but yum can only see an upgrade for one of those arcitectures. If you don't want/need both architectures anymore then you can remove the one with the missing update and everything will work. 3. You have duplicate versions of perl-IO-Interface installed already. You can use "yum check" to get yum show these errors. ...you can also use --setopt=protected_multilib=false to remove this checking, however this is almost never the correct thing to do as something else is very likely to go wrong (often causing much more problems). Protected multilib versions: perl-IO-Interface-1.09-1.el6.x86_64 != perl-IO-Interface-1.05-2.el6.i686 [root@afd-prod yum.repos.d]#
user image
damandiawara 05-04-2017 at 11:47
--> Finished Dependency Resolution Error: Multilib version problems found. This often means that the root cause is something else and multilib version checking is just pointing out that there is a problem. Eg.: 1. You have an upgrade for perl-IO-Interface which is missing some dependency that another package requires. Yum is trying to solve this by installing an older version of perl-IO-Interface of the different architecture. If you exclude the bad architecture yum will tell you what the root cause is (which package requires what). You can try redoing the upgrade with --exclude perl-IO-Interface.otherarch ... this should give you an error message showing the root cause of the problem. 2. You have multiple architectures of perl-IO-Interface installed, but yum can only see an upgrade for one of those arcitectures. If you don't want/need both architectures anymore then you can remove the one with the missing update and everything will work. 3. You have duplicate versions of perl-IO-Interface installed already. You can use "yum check" to get yum show these errors. ...you can also use --setopt=protected_multilib=false to remove this checking, however this is almost never the correct thing to do as something else is very likely to go wrong (often causing much more problems). Protected multilib versions: perl-IO-Interface-1.09-1.el6.x86_64 != perl-IO-Interface-1.05-2.el6.i686 [root@afd-prod yum.repos.d]#