How to Clone/Backup Linux Systems Using – Mondo Rescue Disaster Recovery Tool
Mondo Rescue is an open source, free disaster recovery and backup utility that allows you to easily create complete system (Linux or Windows) Clone/Backup ISO Images to CD, DVD, Tape, USB devices, Hard Disk, and NFS. And can be used to quickly restore or redeploy working image into other systems, in the event of data loss, you will be able to restore as much as entire system data from backup media.
Mondo program is available freely for download and released under GPL (GNU Public License) and has been tested on a large number of Linux distributions.
This article describes Mondo installation and usage of Mondo Tools to backup of your entire systems. The Mondo Rescue is a Disaster Recovery and Backup Solutions for System Administrators to take full backup of their Linux and Windows file system partitions into CD/DVD, Tape, NFS and restore them with the help of Mondo Restore media feature that uses at boot-time.
Installing MondoRescue on RHEL / CentOS / Scientific Linux
The latest Mondo Rescue packages (current version of Mondo is 3.0.3-1) can be obtained from the “MondoRescue Repository“. Use “wget” command to download and add repository under your system. The Mondo repository will install suitable binary software packages such as afio, buffer, mindi, mindi-busybox, mondo and mondo-doc for your distribution, if they are available.
For RHEL/CentOS/SL 6,5,4 – 32-Bit
Download the MondoRescue repository under “/etc/yum.repos.d/” as file name “mondorescue.repo“. Please download correct repository for your Linux OS distribution version.
# cd /etc/yum.repos.d/ ## On RHEL/CentOS/SL 6 - 32-Bit ## # wget ftp://ftp.mondorescue.org/rhel/6/i386/mondorescue.repo ## On RHEL/CentOS/SL 5 - 32-Bit ## # wget ftp://ftp.mondorescue.org/rhel/5/i386/mondorescue.repo ## On RHEL/CentOS/SL 4 - 32-Bit ## # wget ftp://ftp.mondorescue.org/rhel/4/i386/mondorescue.repo
For RHEL/CentOS/SL 6,5,4 – 64-Bit
# cd /etc/yum.repos.d/ ## On RHEL/CentOS/SL 6 - 64-Bit ## # wget ftp://ftp.mondorescue.org/rhel/6/x86_64/mondorescue.repo ## On RHEL/CentOS/SL 5 - 64-Bit ## # wget ftp://ftp.mondorescue.org/rhel/5/x86_64/mondorescue.repo ## On RHEL/CentOS/SL 4 - 64-Bit ## # wget ftp://ftp.mondorescue.org/rhel/4/x86_64/mondorescue.repo
Once you successfully added repository, do “yum” to install latest Mondo tool.
# yum install mondo
Installing MondoRescue on Debian / Ubuntu / Linux Mint
Debian user’s can do “wget” to grab the MondoRescue repository for Debain 6 and 5 distributions. Run the following command to add “mondorescue.sources.list” to “/etc/apt/sources.list” file to install Mondo packages.
On Debian
## 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 Debian 5 ## # wget ftp://ftp.mondorescue.org/debian/5/mondorescue.sources.list # sh -c "cat mondorescue.sources.list >> /etc/apt/sources.list" # apt-get update # apt-get install mondo
On Ubuntu/Linux Mint
To install Mondo Rescue in Ubuntu 12.10, 12.04, 11.10, 11.04, 10.10 and 10.04 or Linux Mint 13, open the terminal and add the MondoRescue repository in “/etc/apt/sources.list” file. Run these following commands to install Mondo Resuce packages.
# 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
Creating Cloning or Backup ISO Image of System/Server
After installing Mondo, Run “mondoarchive” command as “root” user. Then follow screenshots that shows how to create an ISO based backup media of your full system.
# mondoarchive
Welcome to Mondo Rescue
Please enter the full path name to the directory for your ISO Images. For example: /mnt/backup/
Select Type of compression. For example: bzip, gzip or lzo.
Select the maximum compression option.
Please enter how large you want each ISO image in MB (Megabytes). This should be less than or equal to the size of the CD-R(W)’s (i.e. 700) and for DVD’s (i.e. 4480).
Please give a name of your ISO image filename. For example: tecmint1 to obtain tecmint-[1-9]*.iso files.
Please add the filesystems to backup (separated by “|“). The default filesystem is “/” means full backup.
Please exclude the filesystem that you don’t want to backup (separated by “|“). For example: “/tmp” and “/proc” are always excluded or if you want full backup of your system, just hit enter.
Please enter your temporary directory path or select default one.
Please enter your scratch directory path or select default one.
If you would like to backup extended attributes. Just hit “enter“.
If you want to Verify your backup, after mondo has created them. Click “Yes“.
If you’re using stable standalone Linux Kernel, click “Yes” or if you using other Kernel say “Gentoo” or “Debain” hit “No“.
Click “Yes” to proceed further.
Creating a catalog of “/” filesystem.
Dividing filelist into sets.
Calling MINDI to create boot+data disk.
Backing up filesytem. It may take a couple of hours, please be patient.
Backing up big files.
Running “mkisofs” to make ISO Image.
Verifying ISO Image tarballs.
Verifying ISO Image Big files.
Finally, Mondo Archive has completed. Please hit “Enter” to back to the shell prompt.
If you’ve selected default backup path, you will see an ISO image under “/var/cache/mondo/“, that you can burnt into a CD/DVD for later restore.
To restore all files automatically, boot the system with Mondo ISO Image and at boot prompt type “nuke” to restore files. Here is the detailed video that demonstrates how to restore files automatically from CD/DVD media.
For other distributions, you can also grab Mondo Rescue packages at mondorescue.org download page.










i have tried all the things step by step for a single machine backup, the data size took 3 dvd of 4.7 GB. while i started restoring it . once the first disc completed. it is asking for second disc but once i put the second one it is not recognizing & not proceeding data restore from the second disk. what will be the issue . can you please brief me ? Thanks in Advance…..rock on.
Its a superb tool, i Have done complete server migration from this rocking mondo backup tool, you guys rock ( Tecmint Team).
Sir i want to take full image of Linux server, if any case Linux server will down then I will be restore easily so what is the command of create Linux server image and I want to create ghost image of Linux server
@Ankush,
Please follow the instructions shown in this article to create a full Linux OS image..
Hi Ravi,
Its great to know you. one of my biggest task is over because of this post. I have create iso of our on premises centos server and which will be creating and storing in “/home/Mondo/” folder with 4480 size which will be suitable for DVD.
But I want it to be automated so i need a shell script for this… Requirement is mondo will create ISOs and will be stored in our internal hard disk under ” /home/Mondo/” and the size will be 4480 (DVD size) with compression of 9. Please please support me on this ….Thanks in advance ……..Great support Ravi.
wget ftp://ftp.mondorescue.org/rhel/6/x86_64/mondorescue.repo
–2016-09-14 12:20:54– ftp://ftp.mondorescue.org/rhel/6/x86_64/mondorescue.repo
=> “mondorescue.repo”
Resolving http://ftp.mondorescue.org... failed: Temporary failure in name resolution.
wget: unable to resolve host address “ftp.mondorescue.org”
@Fr2632,
There could be many reasons, firstly your server have DNS entries in /etc/resolv.conf file? secondly, may be http://ftp.mondorescue.org/ FTP website down, could your try again after some time and see…
Is there a way to get back to the session if you loose your SSH connection?
With screen command, I think should be mentioned on the post https://www.tecmint.com/screen-command-examples-to-manage-linux-terminals/
backup works great.. but restore is a different story…. :(
I use to use mondorescue in Ubuntu within a VM all the time to build and test servers and then install them on clients systems. But it no longer works with Ubuntu and as I see you are doing this in Windows that makes a big difference when you tell people it works with Debian/Ubuntu/Linux Mint because it does not.
@John,
Actually, the article is little outdated and haven’t been updated yet, so just a question are you using latest version of Mondoresuce on the latest Ubuntu VM? is it working fine without any errors? If, yes will update this article with new release..
can we install it on a single machine and take backup of all other machine through that single machine ?
Please help
@Prateek,
No that’s not possible, its only allowed to install on one system for cloning, not for multiple systems..
For RHEL/Centos 7, the URL for the repo file is ftp://ftp.mondorescue.org/rhel/7/x86_64/mondorescue.repo.
@Rommel,
Thanks for the repo URL, we are updating the article to support RHEL/CentOS 7 distros..