Git Annex
File synchronization between computers, servers, external drives.
Alternatives
Tech stack
No tech stack added yet. Sign in to suggest some
Note: The official website could not be fetched this time, so the following content has been compiled from existing knowledge of the project. For specific details, please refer to the documentation on the official website.
Introduction
git-annex is an open-source tool developed by Joey Hess and written in Haskell. It extends Git with large-file management: file contents are not committed to the Git object database but are kept in a separate annex storage area. The Git repository only stores symlinks or pointer files that point to the content, along with keys generated from the content's checksum. This way, large files can be managed with Git's version control, branching and synchronization mechanisms without actually being placed in Git.
Key Features
- Large-file tracking: Add large files with
git annex add. Git records only metadata and location information, so the repository itself stays small. - Fetch and release on demand: Use
git annex getto fetch file content locally andgit annex dropto release the local copy and save disk space. - Location tracking: The repositories or devices where each file's content is stored are recorded, so you can look it up even when a device is offline.
- Copy-count protection: You can set the minimum number of copies to keep for each file (numcopies). Before a local copy is deleted, git-annex first confirms that enough copies exist elsewhere, preventing data loss from accidental deletion.
- Special remotes: Content can be stored in a variety of backends, such as rsync servers, cloud storage like Amazon S3, WebDAV, external hard drives and directories, and can be encrypted with GnuPG.
- Integrity checking: Use
git annex fsckto check whether content is intact or corrupted. - Synchronization:
git annex syncsynchronizes metadata and file content across multiple repositories. - Assistant / web interface: The git-annex assistant provides an automatic sync mode and a web interface, suitable for users who prefer not to use the command line.
- Metadata and views: You can attach metadata to files and generate different directory views based on that metadata.
Target Users and Use Cases
- Individual users who need to manage large collections of photos, videos, music and other media files across multiple computers, external drives and cloud storage.
- Researchers and data workers who need to manage large datasets and track their provenance and copy locations.
- Users who want to manage offline archive drives and cold backups in one place.
- Developers who are familiar with Git and want to manage large files with a version-control mindset.
Core Strengths
- Decentralized: There is no central server; any Git repository or storage backend can serve as a location for copies.
- Strong focus on data safety: copy-count protection, confirmation before deletion, and integrity verification.
- Many storage backends with encryption support, so data can be placed on cloud storage you don't fully trust.
- Handles offline storage devices well (such as a backup drive kept in a drawer).
Installation
- Debian / Ubuntu:
sudo apt install git-annex - macOS (Homebrew):
brew install git-annex - Other Linux distributions: It can usually be installed with each distribution's package manager, and official standalone prebuilt packages are also available.
- For other platforms and installation methods, see the install page on the official website.
Basic usage example:
git init mydata && cd mydata
git annex init "laptop"
git annex add bigfile.iso
git commit -m "add bigfile"
Technical Requirements
- Git must be installed first.
- It is mainly used from the command line; the assistant provides a graphical web interface.
Notable Characteristics
- Unlike Git LFS, git-annex does not depend on a dedicated server, making it better suited to personal archives and distributed storage across multiple devices.
- The learning curve is fairly steep; you need to understand the basic concepts of Git and the annex first.
- The official website is a wiki-style documentation site with detailed tutorials, a walkthrough and an FAQ.
Discover more
Apaxy
Theme built to enhance the experience of browsing web directories, using the mod_autoindex Apache module and some CSS to override the default style of a directory listing.
Deluge
Lightweight, cross-platform BitTorrent client.
Files Sharing
File sharing application based on unique and temporary links.
Gokapi
Lightweight server to share files, which expire after a set amount of downloads or days. Similar to the discontinued Firefox Send, with the difference that only the admin is allowed to upload files.
OnionShare
Securely and anonymously share a file of any size.
Pairdrop
Local file sharing in your browser, inspired by Apple's AirDrop (fork of Snapdrop).