Creating backups with TimeVault
Clean Archivist
Many backup solutions vie for the user's attention. TimeVault follows a simple approach and integrates seamlessly with the Gnome desktop.
The TimeVault backup tool automatically creates snapshots in the background, restoring files with the press of a button. To save space, the TimeVault tool only saves files that have changed since the last snapshot, and it simply creates links to all other files. If you delete a specific snapshot or if you lose a snapshot as a result of a crash, you only lose one version of the file.
So that TimeVault is available to each user on the system, you can assign permissions; however, only the system administrator is allowed to configure the program or delete snapshots.
Installing TimeVault
TimeVault [1] is a fairly recent development and currently available only in beta version. Because the program is quite new, you will not find prebuilt binaries in the repositories of even the most recent distributions. Source code and Ubuntu package downloads are available online [2].
To install the program, download timevault_0.7.5-1_i386.deb (or a more recent version, if available) and double-click. As of this writing, the project only offers a 32-bit version.
Package managers on 64-bit systems will not install this version without a workaround. For the workaround, first type
sudo apt-get install python-nautilus python-gobject-dev python-pysqlite2 python-gamin meld
to install the dependencies, then type
sudo dpkg -i --force-architecture timevault_0.7.5-1_i386.deb
at the command line to integrate the package.
To resolve further package dependencies, you might need to run apt. After the installation completes, TimeVault tells you that you need to log off from the GUI and log back on to use the program's full functionality.
Before you log off, it makes sense to configure your desktop so that the TimeVault Notifier tool will appear in your system tray when you log in. On Ubuntu, go toSystem | Preferences | Sessions and click Add, then enter the settings as shown in Figure 1 and press OK to confirm.
Initial Configuration
After logging back on, you should see the TimeVault icon at the top right-hand corner. When you move the mouse over the dimmed icon, it tells you that you still need to configure the program. To set up an initial configuration, right-click the Notifier icon and select Preferences. The system then prompts you for your password.
To modify the TimeVault configuration, you must be a privileged user – your user account must be able to run commands with sudo and as root. On Ubuntu, you just need to be a member of the admin group. To do this, type adduser username admin at the command line. Also, see the "Important Notice on sudo" box.
The TimeVault configuration window is neat and tidy (Figure 2) and consists of four tabs: General, Include, Exclude, and Expire. General is the tab for generic settings, and you can start by enabling automatic snapshots with Enable automatic snapshots.
Show snapshot notifications lets you enable or disable notification for new snapshots, and Snapshots Root Directory lets you set the root directory below which TimeVault will store the snapshots. Ideally, the directory should be on a separate drive.
Other settings, such as the amount of free space to keep and the maximum file size to save, are available in the Advanced tab, which you can display by clicking the arrow.
The Include tab (Figure 3) lets you set the directories that the program includes in the snapshot, as well as the change interval. Saving the /etc directory after a wait of one minute is the default, and the snapshot will include any changes that occur in this period.
The Add button lets you add directories, and the Exclude tab lets you define file patterns and directories that you do not want to back up. The defaults are useful and exclude temporary files. Make sure that TimeVault does not attempt to back up the snapshot directory.
By default, TimeVault automatically excludes the backup directory (the last item on the Exclude list). Backing up your complete home directory is not a good idea because this gives you too many temporary files. Instead, you should think about setting up dedicated folders for your documents and backing up these folders.
Finally, the Expire tab lets you specify when the program should automatically merge and delete snapshots. Pressing Save stores the configuration. A dialog box informs you of new directories that have been added.
The TimeVault Notifier displays a small clock icon to inform you of files to be added to a snapshot. Double-clicking the Notifier opens the Pending Snapshots dialog and shows you the files the program has tagged for backing up (see Figure 4).
Important Notice on sudo
When you add a user to the admin or wheel group, you give this user unrestricted system administration capabilities. In other words, the user could also cause damage to the system. Instead of this, you could add more granularity to sudo abilities. For details, type man sudoers.
Restoring
If the need arises, restoring files is a simple process with TimeVault – just right-click the TimeVault Notifier icon to launch the Snapshot Browser (Figure 5) as root, via sudo, or as a normal user. The superuser can view all the files in a snapshot, whereas non-privileged users only get to see the files for which they originally had permissions.
On top of the file list, you see a time list in which TimeVault stores the number of files and the file sizes for each snapshot. The file list itself organizes the files by time, path, size, and action (i.e., created, modified, and deleted).
To restore a specific file, go to the snapshot containing the file and select it. After you click Restore, TimeVault will ask you to confirm. To be on the safe side, the program does not use the original file name; instead, it adds the date and time the file was backed up. The file is now available on disk. If you no longer need a snapshot, you can remove it by right-clicking the timeline and selecting Delete all.
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
-
Latest Cinnamon Desktop Releases with a Bold New Look
Just in time for the holidays, the developer of the Cinnamon desktop has shipped a new release to help spice up your eggnog with new features and a new look.
-
Armbian 24.11 Released with Expanded Hardware Support
If you've been waiting for Armbian to support OrangePi 5 Max and Radxa ROCK 5B+, the wait is over.
-
SUSE Renames Several Products for Better Name Recognition
SUSE has been a very powerful player in the European market, but it knows it must branch out to gain serious traction. Will a name change do the trick?
-
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.