Synchronizing data with the Git-annex Assistant
On the Server
A server accessible via the Internet extends the existing setup. To do this, you again need to install Git-annex on a particular machine and use the wizard in the browser to create a new repository.
In the dashboard, the Add another repository button provides an overview of possible locations. Select the Remote server entry from the list with the description Set up a repository on a remote server using ssh. SSH with public key authentication eliminates the problem of password entry during the configuration.
After filling out the dialogs, entering the hostname, username, and directory, the software creates the necessary files and starts syncing. A final menu (Figure 2) also points out that the SSH server uses a repository belonging to the transfer group.
Groups of this type keep the data long enough to allow it to be distributed to the clients. This approach avoids data ballast accumulating on the server. A transfer repository would thus even be possible on a server with limited storage space.
In addition to the transfer group, Git-annex defines nine other standard groups [4]. Depending on the application, you can assign a repository to one of these groups. The groups integrate predefined rules for distributing data. The program decides on the basis of these rules which data to keep and which to distribute to other repositories (see Table 1).
Table 1
Groups
Group | Content |
---|---|
client |
Keeps all data except the data in the archive directory. |
transfer |
Transfers data to other repositories; only keeps the files until all clients have a copy. |
backup |
Keeps all data in the repository. |
incremental backup |
Keeps all data that does not exist in another backup or another repository of the same type. |
small archive |
Prefers data in an archive directory and data not archived elsewhere. |
full archive |
Contains all data not archived elsewhere. |
source |
A repository that produces data, but does not contain any. Removes the data as soon as it is synchronized elsewhere. |
manual |
Allows manual definition of rules. |
public |
Suitable for publishing data. A configurable directory is synced with a public repository. |
unwanted |
For deleting and purging a repository. This assignment ensures that the software tranfers all data out. |
Remote Sharing
Assume members of the field staff want to access the existing repository on the server and synchronize data with the workgroup. They configure a local repository and the same remote server as their colleagues. In principle, the team can now exchange data via the central server, but for the time being, this is a manual process (Listing 4). For fully automated synchronization, further steps are necessary.
Listing 4
Using a Central Server
Automatic
The previously mentioned intermediate step for automatic synchronization relies on a tool that informs other clients about changes (Figure 3).
In the current version of Git-annex, this role is assumed by an XMPP or a Jabber server, which the clients use to set up remote pairing with their friends. Alternatively, messaging services such as Google Talk are suitable.
Joey Hess, the developer of Git-annex is working on a daemon that removes the intermediate step [5]. It monitors remote databases and automatically starts the sync when needed. The daemon has already made it into the main branch of development; a stable version is thus likely to appear in the not too distant future.
If you want to manage all of the components yourself, you can install your own messaging server, such as Ejabberd. However, the packages from Debian "Wheezy" and Ubuntu "Precise" do not work with Git-annex Assistant: A bug in the authentication mechanism prevents the configuration via the interface [6].
However, installer scripts exist for Ejabberd on the project website that facilitate the manual setup. On Ubuntu, you need the libyaml-0-2 package; then, just a few commands set up your own Jabber server that cooperates with Git-annex.
The Jabber server is the final component in remote sharing. The clients in the workgroup – including that used by a field employee – only need to accept one another as chat friends. In the web interface they use the Share with a friend menu item to enter the Jabber account name.
In the following screen, the names of active friends and a button labeled Start pairing appear. This button sends a pair request, which the communication partner needs to confirm. After this final step in the configuration, the clients synchronize their data via the transfer repository.
« Previous 1 2 3 Next »
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.
![Learn More](https://www.linux-magazine.com/var/linux_magazin/storage/images/media/linux-magazine-eng-us/images/misc/learn-more/834592-1-eng-US/Learn-More_medium.png)
News
-
NVIDIA Released Driver for Upcoming NVIDIA 560 GPU for Linux
Not only has NVIDIA released the driver for its upcoming CPU series, it's the first release that defaults to using open-source GPU kernel modules.
-
OpenMandriva Lx 24.07 Released
If you’re into rolling release Linux distributions, OpenMandriva ROME has a new snapshot with a new kernel.
-
Kernel 6.10 Available for General Usage
Linus Torvalds has released the 6.10 kernel and it includes significant performance increases for Intel Core hybrid systems and more.
-
TUXEDO Computers Releases InfinityBook Pro 14 Gen9 Laptop
Sporting either AMD or Intel CPUs, the TUXEDO InfinityBook Pro 14 is an extremely compact, lightweight, sturdy powerhouse.
-
Google Extends Support for Linux Kernels Used for Android
Because the LTS Linux kernel releases are so important to Android, Google has decided to extend the support period beyond that offered by the kernel development team.
-
Linux Mint 22 Stable Delayed
If you're anxious about getting your hands on the stable release of Linux Mint 22, it looks as if you're going to have to wait a bit longer.
-
Nitrux 3.5.1 Available for Install
The latest version of the immutable, systemd-free distribution includes an updated kernel and NVIDIA driver.
-
Debian 12.6 Released with Plenty of Bug Fixes and Updates
The sixth update to Debian "Bookworm" is all about security mitigations and making adjustments for some "serious problems."
-
Canonical Offers 12-Year LTS for Open Source Docker Images
Canonical is expanding its LTS offering to reach beyond the DEB packages with a new distro-less Docker image.
-
Plasma Desktop 6.1 Released with Several Enhancements
If you're a fan of Plasma Desktop, you should be excited about this new point release.