Synchronizing folders and files
The Leveler
Legacy backup programs are too heavyweight for a quick backup on the fly, but Synkron helps you keep smaller datasets in sync with just a couple of mouse clicks.
Backup solutions for large networks or workgroups are two-a-penny on Linux, but if you just want to back up a couple of folders with your personal data or keep a backup copy of this data in sync, legacy backup tools are often oversized and thus not fit for the purpose. A small Qt application named Synkron [1] steps into the breach and has custom features with enough potential to keep datasets from different sources in sync at all times.
Uncomplicated
Synkron can be installed from the software repos of virtually all major KDE-based distributions; after installation, you will see a launcher in the Utilities | Archive menu. Arch Linux and derivatives such as Manjaro or Antergos also have Synkron in the AUR [2]. If your distribution does not offer the program, the source code is available for downloading from the project website.
The first time you launch the software, you are taken to a clear-cut program window in which the most important, central element is two input areas for path details. You can enter the two folders you want to sync here; pressing the Browse button to the right gives you an easy way to do so.
The program's most important selling point is its tab structure, which lets users create multiple synchronization profiles and process them in parallel. For a simple sync option, the software starts to synchronize your data when you press the Sync button at the bottom right in the program window. The process steps are shown in a sync log in the lower pane of the window.
Some of the steps are color highlighted: For example, if the program fails to open a folder, the error messages are shown with a red background, whereas successful completion of a synchronization run is visualized in green (see Figure 1).
For a view of the successfully completed tasks, press the Analyse button, which reports the errors that occurred with individual files during a backup.
Complex Searches
Besides simple backups, Synkron also lets you define exclusion criteria or special instructions for the sync action; this avoids saving all the files and folders in a tree. To define these criteria, press the Advanced button at the bottom left in the window.
In the context menu that now appears, you can check boxes to select various options, such as excluding empty directories from the sync. You can also prevent recursive synchronization, and if you want to include or exclude hidden files and directories, you can check a box to do just that.
Blacklist
If you want to exclude individual files or directories from the sync process as a general rule, you can do so in a clear-cut way. To open the list window, press the Blacklist button in the button bar at the top. In the three-pane window, you can now define the data to exclude by pressing the Add button. Synkron then asks you for the file names and paths, and you can again use a file browser to select them.
If you want to exclude files with a specific extension independent of their positions in the tree, you can add this suffix in the Extensions in the blacklist: pane. Synkron then avoids syncing files with the selected suffix. You need to enter the suffix in the dialog box as .<ext>
(e.g., .raw
) – that is, without a wildcard.
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
-
Juno Computers Launches Another Linux Laptop
If you're looking for a powerhouse laptop that runs Ubuntu, the Juno Computers Neptune 17 v6 should be on your radar.
-
ZorinOS 17.1 Released, Includes Improved Windows App Support
If you need or desire to run Windows applications on Linux, there's one distribution intent on making that easier for you and its new release further improves that feature.
-
Linux Market Share Surpasses 4% for the First Time
Look out Windows and macOS, Linux is on the rise and has even topped ChromeOS to become the fourth most widely used OS around the globe.
-
KDE’s Plasma 6 Officially Available
KDE’s Plasma 6.0 "Megarelease" has happened, and it's brimming with new features, polish, and performance.
-
Latest Version of Tails Unleashed
Tails 6.0 is based on Debian 12 and includes GNOME 43.
-
KDE Announces New Slimbook V with Plenty of Power and KDE’s Plasma 6
If you're a fan of KDE Plasma, you'll be thrilled to hear they've announced a new Slimbook with an AMD CPU and the latest version of KDE Plasma desktop.
-
Monthly Sponsorship Includes Early Access to elementary OS 8
If you want to get a glimpse of what's in the pipeline for elementary OS 8, just set up a monthly sponsorship to help fund its continued existence.
-
DebConf24 to be Held in South Korea
Busan will be the location of the latest DebConf running July 28 through August 4
-
Fedora Unleashes Atomic Desktops
Fedora has combined its solid distribution with rpm-ostree system to make it possible to deliver a new family of Fedora spins, called Fedora Atomic Desktops.
-
Bootloader Vulnerability Affects Nearly All Linux Distributions
The developers of shim have released a version to fix numerous security flaws, including one that could enable remote control execution of malicious code under certain circumstances.