Backup with restic
Scripts
Because restic can also handle variables, you can use the tool to regularly back up data using scripts. The scripts can then be executed as cron jobs on a time-controlled basis. Ideally, you should set an environment variable for the password entry and for the storage path.
The fact that the software can basically access all your data media and filesystems opens up the possibility of transferring data to a NAS system or to a server via SFTP, for example. If you have slow storage or narrow bandwidths, however, the backup speed is naturally significantly lower than backing up the local filesystem.
GUI
Restatic [2], a GUI for restic, has been under development for some time now. You will find the application programmed in Python on GitHub. As its underpinnings, the front end needs Python v3.6 or higher. Many distributions with long-term support come with even older Python versions, which you have to update beforehand in order to be able to install Restatic.
After setup, call the software at the prompt by entering restatic
. In the program window that then opens, you can access the individual functions using a clear-cut tab structure (Figure 3). You always need to follow the same order as for the command-line program. In addition, you can define profiles at the beginning using the Current Profile: field; this is particularly useful for larger infrastructures with heterogeneous databases.
Then define a repository for the backup. To do this, click the Repository field in the Repository tab and select one of the options. To let you integrate existing repositories, a separate dialog box appears; you can use this to connect to the archive in question. Restatic supports connections to remote servers.
In the same way, you can use the SSH Key: field to specify in a context-dependent manner whether to use an existing key or generate a new key. Then switch to the Sources tab where you specify the directories to be backed up. To do this, use the Add Folder button to add individual folders to a list view. In the two lower window segments, you can then define exclusion criteria for folders and files that you are not going to back up.
After pressing Start Backup (bottom left), Restatic runs the backup and displays a progress bar. You then need to click on the Refresh button in the Archives tab to see the backups in the repository. The Extract, Check, Mount, and Prune buttons let you work with the backups. In this dialog, you can specify how many old archives you want to keep for multiple backup files.
To run the backup automatically in the future, use the Schedule tab. When you get there, you can define, at the push of a button, how often Restatic should save data from the previously specified source folders to the active repository. This avoids the need to write a shell script or create a cron job for automatic backups. After pressing Apply, Restatic applies the data and activates your automatic backup actions (Figure 4).
Conclusions
Restic takes away users' reservations about the command line by consistently adhering to a simple syntax for each function. The backup tool is very appealing due to its fast action, and above all the default encryption, which means that there is nothing standing in the way of backups to the cloud. With automatic, time-controlled backups and the option of using local SFTP servers as storage media, the software is also suitable for larger infrastructures. The Restatic GUI also lets users create backups easily, in this case, at the push of a button.
Infos
- restic: https://restic.net
- Restatic: https://github.com/Mebus/restatic
« Previous 1 2
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
-
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.
-
Plasma Desktop Will Soon Ask for Donations
The next iteration of Plasma has reached the soft feature freeze for the 6.2 version and includes a feature that could be divisive.
-
Linux Market Share Hits New High
For the first time, the Linux market share has reached a new high for desktops, and the trend looks like it will continue.
-
LibreOffice 24.8 Delivers New Features
LibreOffice is often considered the de facto standard office suite for the Linux operating system.
-
Deepin 23 Offers Wayland Support and New AI Tool
Deepin has been considered one of the most beautiful desktop operating systems for a long time and the arrival of version 23 has bolstered that reputation.
-
CachyOS Adds Support for System76's COSMIC Desktop
The August 2024 release of CachyOS includes support for the COSMIC desktop as well as some important bits for video.
-
Linux Foundation Adopts OMI to Foster Ethical LLMs
The Open Model Initiative hopes to create community LLMs that rival proprietary models but avoid restrictive licensing that limits usage.
-
Ubuntu 24.10 to Include the Latest Linux Kernel
Ubuntu users have grown accustomed to their favorite distribution shipping with a kernel that's not quite as up-to-date as other distros but that changes with 24.10.
-
Plasma Desktop 6.1.4 Release Includes Improvements and Bug Fixes
The latest release from the KDE team improves the KWin window and composite managers and plenty of fixes.
-
Manjaro Team Tests Immutable Version of its Arch-Based Distribution
If you're a fan of immutable operating systems, you'll be thrilled to know that the Manjaro team is working on an immutable spin that is now available for testing.