selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

kopia logo

Self-host kopia

v0.23.1

Encrypted, deduplicated backup tool with CLI and GUI

BetaOpen SourceApache-2.0
docker run -e KOPIA_PASSWORD -v /path/to/config/dir:/app/config -v /path/to/cache/dir:/app/cache -v /path/to/logs/dir:/app/logs -v /path/to/repository/dir:/repository -v /path/to/tmp/dir:/tmp:shared
Updated4 months ago
LanguageGo
Setup difficultyEasy
Stars
14 619
Port
51515 (Kopia server web interface and API address in server mode)
Docker
kopia/kopia

What is kopia?

Kopia is a cross-platform backup and restore tool for Windows, macOS and Linux, available both as a command-line program and as the KopiaUI desktop application. It takes incremental snapshots of the files and folders you choose, encrypting both content and file names end-to-end with a user-controlled repository password, and stores them in a repository you pick: local disk, network shares, your own Kopia repository server, S3-compatible object storage, Azure, Backblaze B2, Google Cloud, plus WebDAV or SFTP endpoints, with experimental Rclone-based storage too. Snapshots are content-addressed so identical data is uploaded only once, optional compression (zstd, s2, pgzip and others) shrinks uploads, and Reed-Solomon error correction guards against bitrot. Policies govern scheduling, retention, compression and .kopiaignore rules, while built-in consistency verification and automatic maintenance keep repositories healthy. In server mode, Kopia listens on port 51515 and offers a web interface plus an API so one machine can centrally manage backups from many clients, with per-user accounts and ACLs. Installation is via APT/YUM repositories, Homebrew, Scoop, winget, AUR, BSD ports, desktop installers, GitHub release binaries, or Docker. Kopia is Apache-2.0 licensed and free; it does not image whole machines, and you must provide and pay for your own storage.

kopia alternatives

Should you self-host kopia?

kopia scores 75/100 on selfhost.directory (how scoring works) and ranks #2 of 46 in Backup. It has 14 619 GitHub stars, +345 in the last 30 days.

It shipped 6 stable releases in the past year. The latest, v0.23.1, came out on 16 June 2026. New versions land roughly every 7 days.

Setup is easy: most people get it running in one sitting. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Go.

Its closest alternative on selfhost.directory is Restic (82/100, 37 112 stars). It scores higher overall, so compare the two before you pick. See kopia vs Restic side by side.

Features

  • Access Control (ACL)
  • Automated snapshot scheduling
  • Automatic repository maintenance
  • Backup verification
  • Command Line Interface
  • CompressionDisabled by default
  • Data deduplication
  • Desktop GUI
  • End-to-end encryption
  • Error correction
  • Ignore rules
  • Incremental snapshots
  • Mount snapshots for restore
  • Server mode with API
  • Snapshot retention policies

kopia README

How to install kopia

Install kopia with Docker

Environment variables
KOPIA_PASSWORD
$ docker pull kopia/kopia:latest
$ docker run -e KOPIA_PASSWORD \
    -v /path/to/config/dir:/app/config \
    -v /path/to/cache/dir:/app/cache \
    -v /path/to/logs/dir:/app/logs \
    -v /path/to/repository/dir:/repository \
    -v /path/to/tmp/dir:/tmp:shared

Images for amd64, arm64 and arm; tags include latest, testing, unstable and specific versions. A sample docker-compose sets up server mode with the web interface.

How to configure kopia

  • KOPIA_PASSWORDRepository password the Docker container uses to unlock the repository
  • KOPIA_SERVER_CONTROL_PASSWORDServer control password used when starting Kopia in repository-server mode
  • --addressHost:port address the Kopia server listens on (0.0.0.0:51515 in examples)
  • --server-usernameServer username used to authenticate to the Kopia server
  • --server-passwordServer password used to authenticate to the Kopia server

kopia releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

How does the KopiaUI handle multiple repositories?

At startup KopiaUI scans its configuration directory for all *.config files and tries to connect to every repository they describe, so unwanted config files should not end in .config.

What are Incomplete Snapshots?

Temporary snapshots created via checkpoints when a long snapshot exceeds the checkpoint interval; they are removed once a complete snapshot exists.

How Do I Decrease Kopia's Memory (RAM) Usage?

Disable or choose a lighter compression algorithm (s2, deflate, gzip for small files) and reduce parallel snapshots and file reads.

How Do I Decrease Kopia's CPU Usage?

Lower the Maximum Parallel Snapshots and Maximum Parallel File Reads policy settings, which reduces simultaneous snapshot and upload processes.

Does Kopia Support Storage Classes, Like Amazon Glacier?

Yes, see the storage classes guide in the docs.

How Do I Change My Repository Password?

Use the kopia repository change-password CLI command while still connected to the repository; password change is not supported in KopiaUI.

How Do I Enable Data Deduplication?

You don't need to do anything: deduplication is enabled automatically for all repositories, in GUI and CLI alike.

How Do I Enable Compression?

Compression is disabled by default and enabled per-directory or globally through policy settings.

How Do I Enable Encryption?

Encryption is automatic at the repository level using the repository password; you can pick AES256-GCM-HMAC-SHA256 (default) or CHACHA20-POLY1305-HMAC-SHA256 when creating the repository, and it cannot be changed afterwards.

How Do I Define Files And Folders To Be Ignored By Kopia?

Add ignore rules to a policy or create .kopiaignore files in your directories.

How to Restore My Backed Up Files/Directories?

Restore from a snapshot by mounting it as a local disk, restoring everything to a chosen location, or selectively restoring individual files.

What is a Policy?

A set of rules telling Kopia how to create and manage snapshots, including compression, retention and scheduling.

What is a Repository?

The storage location where snapshots are saved; Kopia supports cloud, remote, network and local locations, all encrypted with a password you designate.

What is a Snapshot?

A snapshot is a point-in-time backup of your files and directories, containing what you can restore when needed.

More in Backup

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…