Skip to content
Français
Sync not enabled: your progress stays in this browser My learning
Select theme
Français

plakar: encrypted, deduplicated backup

26 min read
Improve this page

Logo Plakar

plakar is an open-source backup and restore solution (ISC license) that takes encrypted, deduplicated snapshots of your data. You create a repository (encrypted by default), you back up a folder with one command, each backup stores only what changed, and you browse your data from a web interface without restoring everything. This guide shows how to install plakar, create a repository, back up, browse snapshots, manage retention, replicate off-site and restore. It is written for administrators and developers looking for a modern alternative to restic or borg. The commands were run on version 1.1.8, on November 14, 2026, in a Debian 13 virtual machine. The few steps that rely only on the official documentation say so where they appear.

What you will learn

  • Install plakar (pinned version) and understand the Kloset engine
  • Create an encrypted repository and protect its passphrase
  • Back up, list, and browse snapshots (cat, diff, mount, web interface)
  • Apply a retention policy (rm, policy, prune, maintenance)
  • Replicate off-site (3-2-1 rule) and restore a verified backup

Prerequisites

  • Go 1.21 or later for installation with go install (or a pre-built binary). The go.mod file of plakar 1.1.8 requires Go 1.26.10, but since 1.21 Go can download the requested toolchain by itself: with the Go 1.24.4 shipped in Debian 13, the command did so, and the binary was built with Go 1.26.11.
  • A folder of data to back up and a location for the repository.
  • For the web interface: a browser on the machine or network access to the chosen port.

How do you install plakar?

plakar is written in Go and ships as a single binary. Pin a specific version rather than @latest to get reproducible installations.

Terminal window
go install github.com/PlakarKorp/plakar@v1.1.8

The binary is installed in $(go env GOPATH)/bin. Add that folder to your PATH if needed.

Check the installation:

Terminal window
plakar version
plakar/v1.1.8

On the very first launch, plakar prints a welcome message. By default, it checks at most once every 24 hours the release feed published at plakar.io/releases/plakar/feed.atom, to report security updates. The request carries only a User-Agent header with the plakar version, the operating system and the architecture.

To turn this check off, run plakar -disable-security-check (response: security check disabled). The -enable-security-check option turns it back on.

How does plakar store your data? The Kloset engine

Before backing up, you need to understand where the data goes. plakar is built on Kloset, an immutable data store: your files are split into chunks (variable-size pieces), grouped into packfiles, then indexed by states that describe each snapshot. This splitting is the basis of deduplication: identical content is stored only once, no matter how many files or snapshots reference it.

The info command reveals the algorithms a repository actually uses (excerpt: the very long Canary and Salt lines are omitted). The Version line does not give the installed plakar version (1.1.8 here):

Terminal window
plakar at /var/backups/repo info
Version: v1.0.0
Packfile:
- MaxSize: 64 MiB (67108864 bytes)
Chunking:
- Algorithm: fastcdc-v1.0.0
- MinSize: 512 KiB (524288 bytes)
- NormalSize: 1.0 MiB (1048576 bytes)
- MaxSize: 8.0 MiB (8388608 bytes)
Hashing:
- Algorithm: BLAKE3
- Bits: 256
Compression:
- Algorithm: LZ4
- Level: 131072
Encryption:
- SubkeyAlgorithm: AES256-KW
- DataAlgorithm: AES256-GCM-SIV
- ChunkSize: 65536
- KDF: ARGON2ID
- SaltSize: 16
- KeyLen: 32
- Time: 4
- Memory: 262144
- Thread: 1

Several technical choices deserve attention. Content-defined chunking (CDC) (fastcdc) finds chunk boundaries from the content, not from a fixed position: inserting one byte at the start of a file therefore does not shift all the following chunks, and deduplication stays effective. BLAKE3 hashing addresses chunks by their digest. Deduplication happens before encryption: plakar deduplicates on the plaintext, then encrypts, which combines space savings and confidentiality without exposing your data to the storage infrastructure.

Encryption rests on three building blocks: Argon2id key derivation, AES-256-GCM-SIV data encryption and an AES-256-KW key envelope. These choices follow the recommendations of a review of plakar's cryptography, carried out by the cryptographer Jean-Philippe Aumasson at the vendor's request and published by the vendor on February 28, 2025. The reviewer judges the design sound, with no major security issue. That review covers the early 2025 design, not version 1.1.8, and it was requested by the vendor: it does not replace your own assessment.

How do you create an encrypted repository?

A repository (also called a kloset) is the space where plakar stores your snapshots. By default, plakar works on ~/.plakar; to target another location, the syntax always puts the repository after the at keyword. Create one:

Terminal window
plakar at /var/backups/repo create

plakar encrypts the repository by default and asks for a passphrase. To script the creation (CI, automation), provide it through an environment variable:

Terminal window
export PLAKAR_PASSPHRASE="votre-passphrase-robuste"
plakar at /var/backups/repo create

The global -keyfile option reads the passphrase from a file instead of prompting for it, and the official documentation states that it takes precedence over the PLAKAR_PASSPHRASE variable. It suits a non-interactive service (not replayed: the role of the option comes from the documentation).

Two other create options exist. -plaintext disables encryption, which is discouraged: since 1.1.5, reopening such a repository requires PLAKAR_INSECURE_PLAINTEXT=1 in the environment, otherwise plakar answers refusing to open a plaintext repository without explicit consent. -weak-passphrase allows a weak passphrase, to be avoided in production.

The passphrase: a single point of failure

Without the passphrase, every operation on the repository stops at a repository passphrase: prompt. This is the right security reflex, but the downside is absolute: lose the passphrase, lose the backup. plakar has no key recovery mechanism. Store the passphrase in a secrets manager and keep an offline copy, never only on the machine being backed up, otherwise a disaster takes both the data and the key to its backups.

How do you back up a folder?

A backup creates a snapshot identified by a short ID. The outputs in this guide come from a /srv/www folder of 2.9 MiB: two configuration files, an HTML page and a 3 MB random binary file. Add a tag to find and filter your backups later:

Terminal window
plakar at /var/backups/repo backup -tag site-web /srv/www

plakar prints one OK ✓ line per backed-up item, then the summary:

711fd9c6: backup completed without errors in 97.807872ms (in: 0 B, out: 3.6 MiB)

You can back up several sources at once (backup /etc /srv/www) and exclude patterns with -ignore or -ignore-file. Then list the repository's snapshots:

Terminal window
plakar at /var/backups/repo ls
2026-11-14T07:39:17Z 711fd9c6 2.9 MiB 0s /srv/www

Deduplication and incremental backups

Run a backup again after modifying a single file: plakar processes only the delta, not the whole data set.

The last line of the output gives the summary (preceded, again, by one OK ✓ line per item):

6cd5775e: backup completed without errors in 182.296607ms (in: 4.4 KiB, out: 1.2 MiB)

Here, in: 4.4 KiB confirms that only the changed content was read: unchanged data is not copied again. Deduplication also avoids storing identical content twice, within a single backup as well as across snapshots.

Why can the repository look bigger than the data?

On a small test set, the repository can exceed the backed-up volume. Measurement on 1.1.8: a backup of 3,000,000 bytes of random (incompressible) data gives a repository of 3,540,231 bytes, and a 52-byte folder gives a repository of 584,453 bytes. There is therefore a fixed overhead of about 0.5 MB (index, state, packfile structure), which dominates as long as the data is small. The gains from deduplication and compression only show up at scale, on real repetitive volumes and a history of snapshots: do not judge plakar on a toy folder.

How do you browse a backup without restoring everything?

The point of a content-addressed repository is that you can inspect a backup without fully restoring it. plakar offers several commands for this, which changes the way you work day to day: you look for a specific file rather than unpacking a whole archive.

Print the contents of a file from a snapshot directly to standard output:

Terminal window
plakar at /var/backups/repo cat 6cd5775e:/srv/www/conf/app.ini
theme=clair
lang=fr
nouveau=1

Compare two snapshots to see what changed between two backups, as a unified diff:

Terminal window
plakar at /var/backups/repo diff 711fd9c6:/srv/www/conf/app.ini 6cd5775e:/srv/www/conf/app.ini
--- 711fd9c6:/srv/www/conf/app.ini
+++ 6cd5775e:/srv/www/conf/app.ini
@@ -1,3 +1,4 @@
-theme=sombre
+theme=clair
lang=fr
+nouveau=1

Find a file by pattern across all snapshots, without knowing which one contains it:

Terminal window
plakar at /var/backups/repo locate '*.conf'
6cd5775e:/srv/www/conf/nginx.conf
711fd9c6:/srv/www/conf/nginx.conf

Mounting a backup like a disk

The mount command exposes a snapshot as a read-only file system. You browse your backups with ls, cat, your editor or your file explorer, with no prior extraction:

Terminal window
plakar at /var/backups/repo mount -to /mnt/backup

The web dashboard

For a graphical overview, launch the built-in web interface:

Terminal window
plakar at /var/backups/repo ui -no-spawn -addr 127.0.0.1:9090
launching webUI at http://127.0.0.1:9090?plakar_token=0fb8d891-20b0-437a-b990-5d865f74df57

The dashboard serves a web application and a local JSON API to browse snapshots, inspect their content and restore. Access is protected by a token in the launch URL: do not share it. Without -addr, plakar ui listens on localhost on a random port: the 9090 above was chosen for the example. The -no-spawn option avoids opening a browser (useful on a remote server), and providing -cert and -key together enables HTTPS. To expose the repository to other machines rather than through a UI, see the server command further down.

How do you restore a backup?

Restoring extracts a snapshot into a target folder, identified by its ID:

Terminal window
plakar at /var/backups/repo restore -to /tmp/restore 6cd5775e
6cd5775e: OK ✓ /
6cd5775e: OK ✓ /conf
6cd5775e: OK ✓ /conf/app.ini
6cd5775e: OK ✓ /html
6cd5775e: OK ✓ /conf/nginx.conf
6cd5775e: OK ✓ /html/blob.bin
6cd5775e: OK ✓ /html/index.html

Restore extracts at the root of the target

restore -to /tmp/restore drops the snapshot's content directly at the root of the target folder (/tmp/restore/conf/nginx.conf), and not under a subfolder reproducing the original path. Always restore into an empty, dedicated folder: targeting a folder that already holds files risks overwriting them. Check the target before running the command.

How do you verify integrity?

A backup is only worth something if it is readable. plakar checks the integrity of the repository and of its snapshots:

Terminal window
plakar at /var/backups/repo check

The command checks every snapshot and ends with a summary per snapshot:

6cd5775e: check completed without errors in 52.243215ms (in: 2.9 MiB, out: 0 B)
711fd9c6: check completed without errors in 2.326869ms (in: 4.4 KiB, out: 0 B)

The -fast option speeds up the check: according to the Kloset code at version 1.1.8, it only verifies that each chunk exists in the repository, without reading it again or recomputing its digest (MAC). It suits frequent runs, to be completed by a periodic full check. This guide replayed only the full check. Build this verification into your routine: the full check reads the chunks again and confirms they are consistent, well before the day you need them.

How do you delete snapshots and apply a retention policy?

A repository that only grows becomes unmanageable. plakar separates two operations that you must keep distinct: marking snapshots for deletion (rm, prune), then physically reclaiming the space (maintenance). This separation is a safeguard: nothing is erased until maintenance has run.

Deleting by hand with a safeguard

rm deletes snapshots, but in simulation mode by default: it prints what it would do without touching anything. You must add -apply to actually run it (response: info: rm: removal of 711fd9c6 completed successfully).

Terminal window
plakar at /var/backups/repo rm 711fd9c6
rm: would remove these 1 snapshot(s), run with -apply to proceed
2026-11-14T07:39:17Z 711fd9c6 2.9 MiB 0s /srv/www tags=site-web

You can target by age (-before 30d), by tag (-tag daily) or by ID. This default dry-run prevents accidental deletions: a welcome design reflex in a backup tool.

Defining a retention policy

To automate, you describe a named policy, then apply it with prune. plakar handles grandfather / father / son (GFS) policies: keep N backups per day, per week, per month.

  1. Create the policy and define its rules:

    Terminal window
    plakar at /var/backups/repo policy add quotidien
    plakar at /var/backups/repo policy set quotidien since='30 days' per-day=7 per-week=4
  2. Check what it contains:

    Terminal window
    plakar at /var/backups/repo policy show quotidien
    quotidien:
    filters:
    since: 2026-10-15T07:39:35.529868533Z
    periods:
    day:
    cap: 7
    week:
    cap: 4
  3. Apply the policy with prune (still a simulation by default):

    Terminal window
    plakar at /var/backups/repo prune -policy quotidien
    prune: would keep 2 and delete 0 snapshot(s), run with -apply to proceed
    keep 2026-11-14T07:39:20Z 6cd5775e 2.9 MiB /srv/www tags=site-web match=day:2026-11-14 rank=1 cap=7
    keep 2026-11-14T07:39:17Z 711fd9c6 2.9 MiB /srv/www tags=site-web match=day:2026-11-14 rank=2 cap=7

The output explains why each snapshot is kept (match, rank, cap): you see the policy's reasoning before launching the deletion with -apply.

Reclaiming disk space

Marking a snapshot does not free space: chunks stay as long as they may still be referenced. The maintenance command does the actual cleanup, by removing packfiles that have become orphaned:

Terminal window
plakar at /var/backups/repo maintenance
maintenance: Coloured 0 packfiles (0 orphaned) for deletion
maintenance: 0 blobs and 0 packfiles were removed

How do you replicate off-site? The 3-2-1 rule

A backup on the same machine as the data does not protect against a disaster. The 3-2-1 rule (three copies, two media, one off-site) requires a remote copy. plakar implements it with sync, which replicates between two Kloset repositories, including to object storage (S3) or SFTP. For the complete strategy (where to place the copy, how to prove the restore), see Back up outside the account and prove the restore (in French).

First register the remote destination under a reusable label, then synchronize:

Terminal window
plakar store add distant s3://mon-bucket-backups/klosets
plakar at @distant create
plakar store set distant passphrase=votre-passphrase-distante
plakar at /var/backups/repo sync to @distant

The destination must exist: without create, sync fails with open .../CONFIG: no such file or directory. If it is encrypted, plakar asks for its own passphrase (destination store passphrase:), which is not taken from PLAKAR_PASSPHRASE: without a terminal, the command loops on that prompt, hence the store set above. The project knows about this behavior: the request for an environment variable for the destination repository's passphrase is still open (#1263). A plaintext repository refuses to open without PLAKAR_INSECURE_PLAINTEXT=1.

Only this walkthrough was replayed, on a local fs:// repository. The S3 target was not tested. It also requires credentials: the S3 connector documentation passes them to store add through the access_key and secret_access_key options. The sync syntax follows the official documentation. The output of the replay looks like this:

info: Synchronizing snapshot 6cd5775e22c1e64bacb38d0903f0fa1e9277999a788f811c7c3930946ae0db15 from localhost to localhost
info: Synchronization of 6cd5775e22c1e64bacb38d0903f0fa1e9277999a788f811c7c3930946ae0db15 finished
info: sync: synchronization from localhost to localhost completed: 1 snapshots synchronized

sync works in three directions: to pushes to the remote repository, from pulls from it (useful to rebuild after a disaster) and with synchronizes in both directions. The server command does the opposite and exposes a repository on the network (localhost:9876 by default, deletion disabled unless -allow-delete, with info: listening on http://localhost:9876 at startup) so that other machines can replicate to it. Since 1.1.5, server -token requires clients to present a Bearer token.

For the object storage side of the chain, these guides complete the setup:

Connectors: backing up databases and more

plakar does not only back up folders. Connectors (integrations) let you capture a variety of sources and write them to different destinations. The pkg show -available command lists the published integrations:

Terminal window
plakar pkg show -available
aws@v1.1.4
azblob@v1.1.1
etcd@v1.1.1
ftp@v1.1.4
gcs@v1.1.1
github@v0.2.0
imap@v1.1.1
incus@v1.0.0
k8s@v1.1.13
kvm@v0.4.0
ldap@v1.1.0-beta.3
mongodb@v1.1.1
msad@v1.1.2
mssql@v1.1.2
mysql@v1.1.2
nfs@v1.1.2
notion@v1.0.0-beta.4
oci@v1.1.0-beta.6
openshift@v1.1.1
openstack@v1.1.4
ovh@v1.1.0-beta.8
pcloud@v1.1.0
postgresql@v1.1.3
proxmox@v1.1.0-rc.2
rclone@v1.1.3
remarkable@v1.1.1
routeros@v1.1.0-alpha.3
s3@v1.1.10
scaleway@v1.1.13
sftp@v1.1.10
smb@v1.1.5
sqlite@v1.1.0
vault@v1.1.12
vmware@v1.1.3
vss@v1.1.3
webdav@v1.1.0-alpha.4

There are three families, each with its own configuration command:

FamilyRoleCommand
sourcewhat you back up (import)plakar source add <name> <location>
destinationwhere you restore (export)plakar destination add <name> <location>
storethe repository's storage backendplakar store add <name> <location>

One practical detail: according to the documentation, plakar source import -rclone treats its input as an rclone configuration and imports its remotes as plakar sources (not replayed).

Some connectors still carry an alpha, beta or rc label in the list above (ldap, notion, oci, ovh, proxmox, routeros, webdav): pin the versions and test before production. Since 1.1.5, installing a connector verifies its signature, and plakar pkg add -allow-unsigned lets you bypass that.

For databases, these guides detail the tested dump and restore strategy:

Standalone archives: ptar and archive

Sometimes you want a frozen archive rather than a live repository: to carry data around, drop it into cold storage or hand it over. plakar offers two formats.

The archive command exports a snapshot to a classic archive (tar, tarball for tar.gz, or zip), readable by any tool:

Terminal window
plakar at /var/backups/repo archive -format tarball -output site-export.tar.gz 6cd5775e

The ptar command creates a standalone Kloset archive in the .ptar format: a single deduplicated, compressed and encrypted file that embeds its own structure:

Terminal window
plakar ptar -o site.ptar /srv/www
69b2df36: OK ✓ /srv
69b2df36: OK ✓ /
69b2df36: OK ✓ /srv/www
69b2df36: OK ✓ /srv/www/conf
69b2df36: OK ✓ /srv/www/conf/app.ini
69b2df36: OK ✓ /srv/www/conf/nginx.conf
69b2df36: OK ✓ /srv/www/html
69b2df36: OK ✓ /srv/www/html/blob.bin
69b2df36: OK ✓ /srv/www/html/index.html

The .ptar keeps the benefits of Kloset in a transportable object, at the cost of a dependency on plakar to read it back (a tar.gz stays readable everywhere). Choose according to the need: archive for maximum portability, ptar to keep encryption and deduplication.

Security: what plakar protects, and what it does not

plakar encrypts your data at rest and verifies its integrity, but a backup strategy is more than the tool. Three points deserve operational attention.

First, plakar alone does not protect against ransomware. If an attacker obtains write access to the remote repository, they can delete it. The remedy is immutability on the storage side: enable S3 Object Lock (or the equivalent lock) and use a storage account separate from the backed-up machines. Beware of compliance mode, though: data locked for two years will be billed for two years, with no possible deletion.

Next, alerting exists but goes through a hosted service: after plakar login (since 1.1.6, the confirmation page shows a code to enter in the terminal), plakar service enable alerting sends an email on failure and publishes the latest reports in the web interface. These two commands come from the official documentation and were not replayed. The service is enabled by an explicit command: it does not run until you launch it. The documentation consulted does not say which data it transmits: check before enabling it, if your data sovereignty constraints require it.

Finally, remember the golden rule already stated: the passphrase cannot be recovered. An encrypted backup whose key is lost is the same as no backup at all.

How mature is plakar, and what are the alternatives?

plakar is a young project. Its chief technical officer, Gilles Chehade (alias poolpOrg), describes himself on his GitHub profile as CTO of Plakar and a member of the OpenSMTPD organization. The design of its cryptography was the subject of an external review, requested by the vendor (see the Kloset engine above).

This guide was written on version 1.1.8 (October 20, 2026), a security release that rebuilds plakar with Go 1.26.10 to fix CVE-2026-111943: an older binary should be upgraded. According to the 1.1.8 release notes, crypto/x509 now rejects certificate chains that go through certain intermediates of a certificate authority. For a more recent version, read its release notes before copying a command.

Also keep the limits in mind. This guide is not based on any production experience: it rests on a short replay, on a small data set, in a single virtual machine. Some connectors are still alpha, beta or rc. Space reclamation does not compact partially used packfiles. And the coexistence of two models (live Kloset repository and ptar archive) can be confusing at first. Good practices: pin versions, test your restores after every version upgrade, and watch memory on large remote repositories.

Against the alternatives, here is what each tool's official documentation puts forward: the borg manual, the kopia features page, the restic documentation and its README. For plakar, the column describes what this guide itself measured on 1.1.8.

ToolWhat its documentation highlights
plakarencrypted, deduplicated snapshots, built-in web interface (plakar ui), installable integrations (36 in pkg show -available)
resticprogram described as "fast, efficient and secure", many documented repository locations (S3, SFTP, REST Server, Azure, Google Cloud Storage, rclone)
borgcontent-defined chunking deduplication, client-side AES-256 encryption, suited to untrusted backup targets
kopiaend-to-end encryption, backup policies, command line and graphical interface, server mode with an API

Key takeaways

  • plakar takes encrypted, deduplicated snapshots, with a plakar at <repository> <command> CLI
  • The Kloset engine combines fastcdc, BLAKE3, AES-256-GCM-SIV and Argon2id, with deduplication before encryption
  • The repository is encrypted by default: the passphrase is critical, and losing it is permanent
  • You browse without restoring everything: cat, diff, locate, mount (FUSE) and the plakar ui web dashboard
  • Retention separates marking (rm, prune + GFS policy, dry-run by default) from space reclamation (maintenance)
  • sync implements the off-site part of the 3-2-1 rule (to/from/with directions)
  • restore -to drops the snapshot at the root of the target folder: aim for an empty, dedicated folder
  • Verify regularly (check) and test your restores: an untested backup does not count

Next steps