Did You Know?
Donate to TecMint

We are pleased to announce our new TecMint Q/A section to submit your Linux questions

How to Clone/Backup Linux Systems Using – Mondo Rescue Disaster Recovery Tool

Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators

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

Mondo Rescue Welcome Screen

Mondo Rescue Welcome Screen


Please enter the full path name to the directory for your ISO Images. For example: /mnt/backup/

Mondo Rescue Storage Directory

Mondo Rescue Storage Directory

Select Type of compression. For example: bzip, gzip or lzo.

Select Type of Compression

Select Type of Compression

Select the maximum compression option.

Mondo Rescue Compression Speed

Select Compression Speed

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).

Mondo Rescue ISO Size

Define Mondo Rescue ISO Size

Please give a name of your ISO image filename. For example: tecmint1 to obtain tecmint-[1-9]*.iso files.

Mondo Rescue Prefix

Enter Name of Mondo Rescue

Please add the filesystems to backup (separated by “|“). The default filesystem is “/” means full backup.

Mondo Rescue Backup Paths

Enter Backup Paths

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.

Mondo Rescue Exclude Paths

Enter Exclude File System

Please enter your temporary directory path or select default one.

Mondo Rescue Temporary  Directory

Enter Temporary Directory Name

Please enter your scratch directory path or select default one.

Mondo Rescue Scratch  Directory Name

Enter Scratch Directory Name

If you would like to backup extended attributes. Just hit “enter“.

Mondo Rescue Extended Backup

Enter Extended Backup Attributes

If you want to Verify your backup, after mondo has created them. Click “Yes“.

Mondo Rescue Verify Backups

Verify Backups

If you’re using stable standalone Linux Kernel, click “Yes” or if you using other Kernel say “Gentoo” or “Debain” hit “No“.

Mondo Rescue Kernel

Select Stable Linux Kernel

Click “Yes” to proceed further.

Mondo Rescue Backup Process

Proceed Cloning Process

Creating a catalog of “/” filesystem.

Mondo Rescue Making Catalog

Creating Catalog for File System

Dividing filelist into sets.

Mondo Rescue Dividing File List

Dividing File List

Calling MINDI to create boot+data disk.

Mondo Rescue Boot Data Disk

Creating Boot Data Disk

Backing up filesytem. It may take a couple of hours, please be patient.

Mondo Rescue Backup Filesystem

Backing up File System

Backing up big files.

Mondo Rescue Big Files Backup

Big Files Backup

Running “mkisofs” to make ISO Image.

Mondo Rescue Creating ISO

Making ISO Image

Verifying ISO Image tarballs.

Mondo Rescue Verify ISO

Verify ISO

Verifying ISO Image Big files.

Mondo Rescue Verify Big Files

Verify Big Files

Finally, Mondo Archive has completed. Please hit “Enter” to back to the shell prompt.

Mondo Rescue Backup Completed

Backup Completed

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.

Ravi Saive

Owner at TecMint.com
Simple Word a Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux.

Linux Services & Free WordPress Setup

Our post is simply ‘DIY’ aka ‘Do It Yourself, still you may find difficulties and want us to help you out. We offer wide range of Linux and Web Hosting Solutions at fair minimum rates. Please submit your orders by Clicking Here.

35 Responses

  1. Nuno Silva says:

    5 star article! This is the Linux spirit! Keep up the good work and thanks for sharing your knowledge!

  2. Fergus says:

    Broken on Ubuntu (Raring)

    sudo apt-get install mondo

    The following packages have unmet dependencies.
    mondo : Depends: mindi (>= 2.0.7) but it is not going to be installed
    E: Unable to correct problems, you have held broken packages.

  3. jbloggs says:

    I just use GParted to copy the partition to another HD with a partition equiv or greater than the original.

  4. jbloggs says:

    PS from a LIVECD

  5. Jon says:

    Seems it is not supported with Linux Mint 13 neither. I also get dependencies error messages. Too bad I would of liked to of tried it. Even adding the repository causes problems, going to the site and download the .deb causes problems. So far nothing but problems. Hope you find something else that will work out of the box because this doesn’t.

  6. Brandy says:

    Does mondo support RHEL 6.4 systems with UEFI boot? AND advance format disk drives 3-4TB running software raid 1.

  7. Mohammed Qayyum says:

    Hello,
    can i restore this into a new PC…

    • Ravi Saive says:

      Yes, you can restore into any PC.

      • Mohammed Qayyum says:

        Hello Sir,
        I have Acer Veriton PC, I Installed Ubuntu 12.04 32 bit Precise, I took backup of my PC using mondo and i make bootable USB using unetbootin, when I’m trying to restore with it into new pc I’m getting error ” there in no mondorestore in device ” even I’m unable to boot using expert cmd. Please Help me….

  8. Avik says:

    Thanks,for this guide..it is really useful but i have a problem..i am using fedora 19 my hdd partitions are ” /boot and / ” i want to backup my whole system… how should i do this?

    • Ravi Saive says:

      Dear Avik,

      We already explained in detail how to add the filesystems to backup (separated by “|“). The default filesystem is “/” means full backup.

  9. vinod says:

    Hi,

    some file systems are unable to mount while restoring the same . i tried two times but no success . pls suggest what to do ?

  10. Jay says:

    im getting the following on mint 16 64 bit?
    $ wget ftp://ftp.mondorescue.org/ubuntu/`lsb_release -r|awk ‘{print $2}’`/mondorescue.sources.list
    –2013-12-09 12:06:27– ftp://ftp.mondorescue.org/ubuntu/16/mondorescue.sources.list
    => ‘mondorescue.sources.list’
    Resolving http://ftp.mondorescue.org (ftp.mondorescue.org)… 213.30.161.23
    Connecting to http://ftp.mondorescue.org (ftp.mondorescue.org)|213.30.161.23|:21… connected.
    Logging in as anonymous … Logged in!
    ==> SYST … done. ==> PWD … done.
    ==> TYPE I … done. ==> CWD (1) /ubuntu/16 …
    No such directory ‘ubuntu/16’.

    any ideas?

    • Ravi Saive says:

      Unfortunately, there is nothing like Ubuntu/16. So, work around this problem you’ve to use Ubuntu 13.04 sources.list file, use the following commands to install it.

      # wget ftp://ftp.mondorescue.org/ubuntu/13.04/mondorescue.sources.list
      # sh -c "cat mondorescue.sources.list >> /etc/apt/sources.list" 
      # apt-get update 
      # apt-get install mondo
      
  11. Luis says:

    I get this error on Centos 6 64 bit:

    [Main] libmondo-fork.c->eval_call_to_make_ISO#187: command = ‘genisoimage -r -p MondoRescue -publisher http://www.mondorescue.org -A Mondo_Rescue_GPL_Version -J -boot-info-table -no-emul-boot -b isolinux.bin -c boot.cat -boot-load-size 4 -o ‘/var/isos//mondorescue-2.iso’ -V 2 . >> /var/log/mondoarchive.log’
    [Main] libmondo-fork.c->run_external_binary_with_percentage_indicator_NEW#668: command = ‘genisoimage -r -p MondoRescue -publisher http://www.mondorescue.org -A Mondo_Rescue_GPL_Version -J -boot-info-table -no-emul-boot -b isolinux.bin -c boot.cat -boot-load-size 4 -o ‘/var/isos//mondorescue-2.iso’ -V 2 . >> /var/log/mondoarchive.log 2>> /var/log/mondoarchive.log’
    [Main] libmondo-fork.c->run_prog_in_bkgd_then_exit#627: sz_command = ‘genisoimage -r -p MondoRescue -publisher http://www.mondorescue.org -A Mondo_Rescue_GPL_Version -J -boot-info-table -no-emul-boot -b isolinux.bin -c boot.cat -boot-load-size 4 -o ‘/var/isos//mondorescue-2.iso’ -V 2 . >> /var/log/mondoarchive.log 2>> /var/log/mondoarchive.log’
    I: -input-charset not specified, using utf-8 (detected in locale settings)
    File ./archives/3.afio.bz2 is larger than 4GiB-1.
    -allow-limited-size was not specified. There is no way do represent this file size. Aborting.
    [Main] libmondo-fork.c->run_prog_in_bkgd_then_exit#632: child res = 256
    [Main] libmondo-fork.c->run_external_binary_with_percentage_indicator_NEW#704: Parent res = 256
    Call to mkisofs to make ISO (ISO #2) …failed
    [Main] libmondo-archive.c->make_iso_fs#1994: WARNING – make_iso_fs returned an error

    Screen reads:

    ying Mondo’s core files to the scratch directory Done.
    Calling MINDI to create boot+data disks Done.
    Preparing to archive your dat┌─────────────────┤ Backing up filesystem ├──────────────────┐
    Archiving regular files to me│ │
    │ ┌──────────────────┤ Alert ├───────────────────┐ │
    │ │ │ │
    │ │ Failed to create ISO #2. Retry? │ │
    │ │ │ │
    │ │ │ │
    │ │ ┌─────┐ ┌────┐ │ │
    │ │ │ Yes │ │ No │ │ │
    │ │ └─────┘ └────┘ │ │
    │ │ │ │
    │ └──────────────────────────────────────────────┘ │
    └─────── ─────┘

    bin -c boot.cat -boot-load-size 4 -o ‘/var/isos//mondorescue-2.iso’ -V 2 . >> / nisoimage -r
    [Main] libmondo-fork.c->run_external_binary_with_percentage_indicator_NEW#668
    e -no-emul-boot -b isolinux.bin -c boot.cat -boot-load-size 4 -o ‘/var/isos//mo cator_NEW#668
    [Main] libmondo-fork.c->run_prog_in_bkgd_then_exit#627: sz_command = ‘geniso
    isolinux.bin -c boot.cat -boot-load-size 4 -o ‘/var/isos//mondorescue-2.iso’ -V sz_command = ‘geniso
    I: -input-charset not specified, using utf-8 (detected in locale settings) child res = 0
    Call to mkisofs to make ISO (ISO #2) …failed

  12. Rashid says:

    nice and very help fully. one question please is it possible we define cron which take latest backup at end of day through mondo rescue. once i install mondo rescue and every day on define time i will take backup automatically? is it possible

  13. Pavel Březina says:

    This work for me much better. I can backup my system with just one command, and when all hell breaks lose, I can easily restore whole system in 4 minutes!

    http://tuxilero.blogspot.cz/2014/02/linux-backup-your-linux-installation.html

  14. harz says:

    I got this error when restoring the iso. Is there any workaround to this problem?

    Could not mount device(s) /dev/VolGroup00/LogVol00 – shall I abort?

    Thanks
    harz

  15. Marc says:

    For those looking for a manual way of cloning your linux system, you may take a look at this:
    http://positon.org/clone-a-linux-system-install-to-another-computer

  16. Mayur says:

    Hi, some queries:

    1. I want to back up the complete / partition. If I specify a path in some directory say /mnt/backup, it won’t run into loop while backing up right? I meant, /mnt will come under /, so will it start backing up the already backed up files in /mnt?

    2. If the backup is more that the size of a DVD, will it ask for another Disc?

    • Ravi Saive says:

      Yes, /mnt comes under / partition, so here no problem taking whole dump and if backup is more than the size of DVD, yes it will ask another Disc.

  17. Thanh nhan says:

    thanks for share, I’m make same and successful backup my system

  18. Mauricio Carreno says:

    Hi thanks for the aport!,
    I have a question, when I’m about to restore my system, it keep saying to me “errors occurred while setting extended attributes”.
    Thank you very much for your answer

  19. Rajabu says:

    I am trying to backup Fedora 10, but seems to take ages Calling MINDI to create boot + data disks.

    Is this normal?

    Thanks

    • Ravi Saive says:

      It’s all depend upon the size of your disks. If your disks is too large, then it takes some hours to backup.

Leave a Reply

This work is licensed under a (cc) BY-NC | TecMint uses cookies. By using our services, you comply to use of our cookies. More info: Privacy Policy.
© 2012-2014 All Rights Reserved.