Back up your systems with Mondo Rescue
Snapshot
A timely snapshot by Mondo Rescue puts a computer back on its feet after a system failure in just a few minutes.
Linux distributions provide many applications, but the more programs you use, the more laborious reconstructing a system becomes after a fault. Professional backup programs allow sophisticated backup strategies but often entail a time-consuming and laborious reconstruction of the software after a system crash. With the Mondo Rescue snapshot program, you can back up the whole system on various data storage devices at the touch of a button and restore complete installations without the need for extensive reworking, making a system failure a lot less frightening.
Installation
Mondo Rescue already has been through many years of development and maintenance and is therefore available in the form of binary packages [1] for most popular distributions. To install the distribution-specific packages and their dependencies, first add the corresponding repositories into your software manager.
In openSUSE, open the Software Repositories entry in YaST and click on the Add button. Select FTP as the mode of delivery in the new window then enter a name for the new repository: the associated URL is ftp://ftp.mondorescue.org/opensuse/<Release>/<arch>, where <arch> is either i386 or x86_64. After clicking Next, YaST imports the corresponding data. You will then find the new repository in the list view. Next, install Mondo using the YaST package manager as you would any other program. If the routines complain about a missing mkisofs package, look for the cdrkit-cdrtools-compat package and install this, too.
For distributions that use the Debian package manager, open a terminal window and switch to the /etc/apt/sources.list.d
directory. At the prompt, enter
# wget ftp://ftp.mondorescue.org/<Distro>/<Release>/*.sources.list $ sudo apt-get update
as root, and the package manager adds the repository to the system. If you then call the Synaptic package manager and search for mondo, you will see a list of several packages (Figure 1). Start by installing the mindi packages and then install mondo.
During the installation be sure to add the correct versions of the repositories to your system. In our lab, despite completely resolved dependencies, we did not succeed in installing a legacy executable version of Mondo Rescue on the new Debian 8 "Jessie." The Mondo Rescue variant for Ubuntu 14.04 also refused to work on Ubuntu 15.04, throwing memory access errors or faulting outdated program packages.
First Launch
Before using Mondo Rescue, you should free the system of unnecessary ballast that you don't want backed up (e.g., old logfiles and application caches). The BleachBit [2] tool can help you clean up your data quickly and comprehensively, typically saving several hundred megabytes of disk space.
After entering mondoarchive
as root in a terminal, Mondo Rescue welcomes you with a fairly rustic looking, but largely self-explanatory Ncurses interface. The program lacks both a menu bar and a configuration dialog.
The first step is to select the target medium to which you will save the system. Unlike many backup solutions, the software supports both special tape drives, various optical media, USB sticks, and hard drives. Mondo Rescue also lets you back up the system to an NFS server on the network if you select Net mount (Figure 2).
The backup can take several hours depending on the amount of data being backed up and the target medium selected. Please note that writing to optical media usually takes more time than backing up to a hard disk or to an external flash medium connected to the USB bus. If you intend to back up the system to a USB stick, it is a good idea to check its integrity beforehand using the F3 [3] program. Mondo Rescue does not provide any feedback for faulty or placebo storage – and your backup would be useless.
Caution should also be exercised when selecting the USB Key/Disk menu item: Backing up your data to an external hard drive connected via USB failed on several computer systems running different Linux distributions in our lab. Mondo Rescue understandably aborted the backup run while creating the ISO image and reported memory problems in the corresponding logfiles. However, this error did not occur with the same system configuration when backing up data to a USB stick.
After selecting the appropriate target medium, the software then prompts for compression method; it offers four variants. On the next screen, as well as the different compression levels, it offers you the option of saving the available files in an uncompressed format. This alternative may take up the most space on the target medium, but it also speeds the backup.
Enter the size of the target medium in megabytes on the next screen. With optical disks, the tool requests additional disks once the target value has been reached. If you are using a USB stick, a hard disk, or a network drive with sufficient free memory, first check the size of the data set to be backed up with the df -h
command and then specify this target size.
The next screen requests the target medium's device name. The name of the first partition on a USB drive on a single-user computer with built-in internal mass storage is usually /dev/sdb1
; optical drives are frequently named /dev/sr0
. To request the name of the correct drive, enter the mount
command in the terminal window, and choose the desired target drive.
When backing up the system on an internal drive, Mondo Rescue requests the backup path for the images rather than the drive name. The /var/cache/mondo
directory is the default. The software creates either one or multiple ISO images, depending on the data set and the specified image size. You can transfer these directly to an optical medium or a flash drive once the backup is complete, thus creating a bootable snapshot.
Enter the path to be backed up in the next dialog. The software supports arbitrary input, which means you can back up data paths such as /home
separately. The system's root directory (/
) is the default. Various subdirectories in the directory tree do not need to be backed up, and you can exclude these from the backup by entering the path in the dialog that follows. Multiple paths are separated by a pipe character (|
). Mondo Rescue generally excludes the subdirectories /tmp
and /proc
from the backup.
Safe Not Sorry
The software offers to check the integrity of the backup at a subsequent prompt. Although this process can take some time, you should include it for the sake of consistency.
Another safety prompt appears that you need to respond to positively if you are using a recent Linux distribution. The software does not allow subsequent modifications to the configuration. If you do want to change any settings before performing the backup, you need to cancel the dialog and run it again from scratch. When the backup starts, the program first generates a file catalog and then activates the program integrated in Mondo Rescue called Mindi, which creates a bootable ISO image.
Mondo Rescue backs up the existing data sets of the source medium in two runs: The software transfers the smaller files in the first run and the larger files in the second run. During the backup, the program offers two progress displays, depending on the target medium. When backing up to optical media, in addition to the traditional percentage bar display, a second horizontally arranged bar shows space use relative to the medium size. With very heavy compression, the CD or DVD can feel relatively slow compared with the original data set (Figure 3).
If you are using optical disks as the target media for the backup, Mondo Rescue starts the mkisofs program after creating ISO images and burns the images to the disk (Figure 4). If you are using the hard disk as a backup target, the verification run starts immediately after the backup has been completed.
If errors occur, the software displays them and you are forced to repeat the backup. When saving your data on optical media, the tool checks the medium after the burning process has finished. Mondo Rescue then returns to the shell prompt.
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Halcyon Creates Anti-Ransomware Protection for Linux
As more Linux systems are targeted by ransomware, Halcyon is stepping up its protection.
-
Valve and Arch Linux Announce Collaboration
Valve and Arch have come together for two projects that will have a serious impact on the Linux distribution.
-
Hacker Successfully Runs Linux on a CPU from the Early ‘70s
From the office of "Look what I can do," Dmitry Grinberg was able to get Linux running on a processor that was created in 1971.
-
OSI and LPI Form Strategic Alliance
With a goal of strengthening Linux and open source communities, this new alliance aims to nurture the growth of more highly skilled professionals.
-
Fedora 41 Beta Available with Some Interesting Additions
If you're a Fedora fan, you'll be excited to hear the beta version of the latest release is now available for testing and includes plenty of updates.
-
AlmaLinux Unveils New Hardware Certification Process
The AlmaLinux Hardware Certification Program run by the Certification Special Interest Group (SIG) aims to ensure seamless compatibility between AlmaLinux and a wide range of hardware configurations.
-
Wind River Introduces eLxr Pro Linux Solution
eLxr Pro offers an end-to-end Linux solution backed by expert commercial support.
-
Juno Tab 3 Launches with Ubuntu 24.04
Anyone looking for a full-blown Linux tablet need look no further. Juno has released the Tab 3.
-
New KDE Slimbook Plasma Available for Preorder
Powered by an AMD Ryzen CPU, the latest KDE Slimbook laptop is powerful enough for local AI tasks.
-
Rhino Linux Announces Latest "Quick Update"
If you prefer your Linux distribution to be of the rolling type, Rhino Linux delivers a beautiful and reliable experience.