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
-
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.
-
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.