Simple backup with Back In Time
Orderly Situation
Despite the importance of backups, many users still view the process as too complicated and too inconvenient. Back In Time makes the unloved backup less terrifying.
Most users are aware of the importance of backups, yet only a few regularly back up their data. They think the process seems too complicated and too complex, and it takes too much time and effort to perform backups regularly. For these same reasons, many people do not encrypt their email either.
At least for backups, however, you have a handy solution: Back In Time [1]. The software serves as a graphical interface for the well-known, console-based synchronization program Rsync [2], which less experienced users in particular often avoid because of its complexity.
The Python program can be installed from the repositories of all major distributions. KDE desktop users will tend to opt for the Qt-based version, whereas Gnome users will prefer the Gtk equivalent. Arch Linux offers a third package called backintime-CLI (command-line interface), which was developed for automatic use with the shell. The project also makes the software available for download on its website as a tarball.
Getting Started
Back In Time is capable of performing incremental backups as well. In contrast to archive-based backup systems, Back In Time creates a copy of the folder to be backed up and only saves changed files for other backups. This saves space and time.
The software stores the backups in a folder named with the creation date. The software copies previously backed up and unchanged files in the form of hard links to the directories of the respective new backup, thereby mapping the entire content. The structure of directories created by Back In Time is based on the pattern:
/mnt/backintime/<Computer>/<User>\ /<Profile>/<Date>-<iNumber>/
The software always creates a backintime/
directory. <Computer>
is the name of the computer, <User>
is that of the user, and <Profile>
is the number you assigned to a profile during setup. The backups themselves are in directories that use a date, a time, and an internal number (<iNumber>
) for names. The backup from July 6, 2015, created at 20:19:51 is thus sent to the 20150706-201951-427
folder.
The last backup created is always available as a link with the name last_snapshot
. This structure makes it possible to back up data from several users or different directories on a single backup medium using different profile, and to restore them from the backup medium as well.
Configuration
You can start the Back In Time configuration using the tool icon in the main window toolbar, which the software displays immediately when first launched. Back In Time adds flexibility through the option of managing different configurations as profiles. If you do not need this, note that Main profile always appears at the top of the screen in the Profile field.
You can set when and where the software backs up the data in the first tab, General (Figure 1), and you can select the backup type in the Mode field. Caution is advised with encrypted backups: You will not be able to access the backed up data if you lose the key specified here. You can define the target directory – in the simplest case, a previously prepared USB hard disk or a USB stick with sufficient space – in the Where to save snapshots section.
In the case of a FAT filesystem, which is sometimes preconfigured, note that FAT is often unable to cope with the file names in Linux. Additionally, this deprecated filesystem is unfamiliar with hard links. In this case, Back In Time stores the complete source rather than just the changes made when backing up, thus taking up a large amount of storage space. The use of "intelligent" filesystems such as ext4, Btrfs, or ZFS is a possible remedy. These filesystems also support space-saving backups by compressing data blocks. Alternatively, you can store the backups on a remote computer or NAS via SSH.
You can specify the previously described folder hierarchy in the Advanced section; the software provides logical defaults here. Under Schedule, you can set the frequency at which the program starts the backups. In the Include tab, you can determine which files and directories the software considers for backups.
Folders such as the home directory normally contain various files and directors that you do not want to back up – for example, because they contain only temporary content or are caches. You can therefore exclude these from the backup in the Exclude tab (Figure 2). Note that .wine
is sometimes missing from the defaults, which can cause problems. You can define the file name pattern using the Add button. An exclusion pattern in the form of .*
prevents, for example, "hidden" files and directories – typically configurations in the home directory – from being included in the backup.
To define what happens with old backups, go to the Auto-remove tab (Figure 3). The Smart remove option here provides several interesting ways that you can reduce the number of backups to the absolute minimum. You can protect particularly important – and therefore named – backups separately by enabling Don't remove named snapshots.
You can specify the settings for running the software in the Options tab. If you do not have any special requirements, you can generally leave the default settings. With the Expert Options tab, and others, you can determine which attributes you want to keep in the backup, depending on your strategy for your system or home directory [3].
You will also find an important option here for Editing Symlinks: Copy links (dereference symbolic links). Back In Time only considers the files included via symlinks if you enable this option. If you do not enable this option, the program only stores the symlinks themselves as files, and they then point to nothing.
Managing Backups
After completing the setup, Back In Time (Figure 4) usually works relatively inconspicuously in the background but can also start its work on demand. The second approach means that you can create manual backups in certain situations – for example, backing up all relevant data before an update. To this end, manually create a snapshot and assign a name. You can do this using the button with the pencil icon. After creating the snapshot, you need to select and name it. Back In Time can manage this kind of backup differently if desired.
Back In Time supports the analysis of backups with a relatively unknown function that can be accessed via a button in the main window (Figure 5). This button opens a dialog displaying the existing snapshots in a list. Here you can specifically select, compare, and – if necessary – delete individual snapshots or even restore them. Back In Time uses Meld [4] by default to analyze snapshots; you can configure other diff tools in Diff Options as required.
Entering backintime -b
at the command lines starts the application without the graphical interface. The --backup-job
option follows the schedule rules for automatic backups. The --snapshots-path
button shows the path used for the snapshot, --snapshots-list
shows the snapshots available there, and --snapshots-list-path
shows the snapshot paths. The --last-snapshot
extension shows the ID of the last snapshot, and --last-snapshot-path
shows its path.
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
-
ESET Discovers New Linux Malware
WolfsBane is an all-in-one malware that has hit the Linux operating system and includes a dropper, a launcher, and a backdoor.
-
New Linux Kernel Patch Allows Forcing a CPU Mitigation
Even when CPU mitigations can consume precious CPU cycles, it might not be a bad idea to allow users to enable them, even if your machine isn't vulnerable.
-
Red Hat Enterprise Linux 9.5 Released
Notify your friends, loved ones, and colleagues that the latest version of RHEL is available with plenty of enhancements.
-
Linux Sees Massive Performance Increase from a Single Line of Code
With one line of code, Intel was able to increase the performance of the Linux kernel by 4,000 percent.
-
Fedora KDE Approved as an Official Spin
If you prefer the Plasma desktop environment and the Fedora distribution, you're in luck because there's now an official spin that is listed on the same level as the Fedora Workstation edition.
-
New Steam Client Ups the Ante for Linux
The latest release from Steam has some pretty cool tricks up its sleeve.
-
Gnome OS Transitioning Toward a General-Purpose Distro
If you're looking for the perfectly vanilla take on the Gnome desktop, Gnome OS might be for you.
-
Fedora 41 Released with New Features
If you're a Fedora fan or just looking for a Linux distribution to help you migrate from Windows, Fedora 41 might be just the ticket.
-
AlmaLinux OS Kitten 10 Gives Power Users a Sneak Preview
If you're looking to kick the tires of AlmaLinux's upstream version, the developers have a purrfect solution.
-
Gnome 47.1 Released with a Few Fixes
The latest release of the Gnome desktop is all about fixing a few nagging issues and not about bringing new features into the mix.