Self-host Restic
v0.19.1Fast, encrypted, deduplicated command-line backup tool
apt-get install restic- Stars
- 37 231
restic/resticWhat is Restic?
restic is a command-line backup program for people who want to protect their own files on disks, servers or object-storage buckets without running a backup service. Each run writes a snapshot into an encrypted repository, splits content into chunks so unchanged data is never uploaded twice, and deduplicates across several hosts sharing one repository. Snapshots can be listed, browsed through a FUSE mount, diffed, restored selectively, verified with the check command, and trimmed by keep-last retention policies followed by pruning; they can also be copied between repositories. Repositories can live on a local directory, over SFTP, on a REST server, on S3 and S3-compatible storage, OpenStack Swift, Backblaze B2, Azure Blob Storage, Google Cloud Storage, or on many other services through rclone. Installation is a distro package, an official reproducible binary, or a minimal container image on Docker Hub and ghcr.io; restic runs when invoked rather than as a daemon, so scheduling is left to cron, systemd or Task Scheduler. It is written in Go under the BSD 2-Clause licence, is free of charge and completely open source, but remains pre-1.0, so breaking changes are still possible between releases even though the project follows semantic versioning for the repository format.
Restic alternatives
DuplicacySelf-hosted command-line backup tool with lock-free deduplication and client-side encryption, pushing snapshots to local disks, SFTP servers, or a dozen cloud storages.CompareDuplicacy with Restic
DuplicatiOpen-source, self-hosted backup client that encrypts with AES-256 and stores incremental, compressed backup copies on cloud storage services or remote file servers.CompareDuplicati with Restic
plutonOpen-source, self-hosted backup using Restic and Rclone for encrypted incremental backups across 70+ cloud providers with web UI, 3-2-1 replication, and 2FA.Comparepluton with Restic
arkeepArkeep is an open-source, self-hosted backup management platform with a web dashboard for Restic/Rclone backups across multiple servers.Comparearkeep with Restic
kopiaSelf-hosted, open-source backup tool for Windows, macOS and Linux that takes incremental, end-to-end-encrypted, deduplicated snapshots to any cloud or local storage.Comparekopia with Restic
DBackupSelf-hosted open-source backup for 10 databases and files. Supports S3, Google Drive, SFTP with AES-256-GCM encryption, incremental backups, GFS retention, OIDC SSO, 2FA.CompareDBackup with Restic
borgbackupserverSelf-hosted web UI that centrally manages encrypted Borg backups on Linux, Windows, and macOS via agents that poll over HTTPS and push data over SSH.Compareborgbackupserver with Restic
plakarSelf-hosted, open-source backup tool: encrypted, deduplicated snapshots you can browse, diff and verify, with sync to S3 or local stores.Compareplakar with Restic
Should you self-host Restic?
Restic scores 82/100 on selfhost.directory (how scoring works) and ranks #1 of 46 in Backup. It has 37 231 GitHub stars, +743 in the last 30 days.
It shipped 2 stable releases in the past year. The latest, v0.19.1, came out on 5 July 2026. New versions land roughly every 4 weeks.
Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is BSD-2-Clause-licensed and written mostly in Go.
Its closest alternative on selfhost.directory is kopia (75/100, 14 685 stars). Restic scores higher overall. See Restic vs kopia side by side.
Features
- Append-only mode supportRequires an append-only capable backend such as rest-server or rclone serve restic.
- Compression
- Copy snapshots between repositories
- Deduplication
- Encrypted, authenticated backups
- Include and exclude patterns
- Incremental snapshots
- JSON output for scripting
- Mount repository via FUSE
- Multiple repository keys or passwords
- Multiple Storage Backends
- Repository integrity verification
- Retention policies and pruning
- Self-update
- Snapshot restore
Restic README
restic is a backup program that is fast, efficient and secure. It supports the three major operating systems (Linux, macOS, Windows) and a few smaller ones (FreeBSD, OpenBSD).
For detailed usage and installation instructions check out the documentation.
You can ask questions in our Discourse forum.
Once you've installed restic, start off with creating a repository for your backups:
FAQ
Are “cold storages” supported?
Not natively, though experimental support exists for restoring from S3 Glacier and Glacier Deep Archive; expect slow restores and treat the feature as alpha.
Restic backup command fails to find a valid file in Windows
A file whose name contains an invalid Windows character cannot be read by restic, so rename that file.
How do I choose a strong password?
Length matters most, combined with complexity and randomness; tools such as OpenSSL, pwgen or KeePass can generate one.
Why does restic perform so poorly on Windows?
Real-time antivirus scanning often interferes; test by disabling it temporarily and otherwise add the restic binary to your scanner's exclusions.
Creating new repository on a Synology NAS via sftp fails
Synology appears to expose a different directory tree over sftp, so use an absolute path as seen via sftp and try dropping the /volume1 prefix.
How to prioritize restic’s IO and CPU time
Wrap the process with ionice for IO scheduling class and nice for CPU scheduling priority, which you can combine to keep the host responsive during backups.
How can I specify encryption passwords automatically?
Supply it non-interactively via --password-file or through the RESTIC_PASSWORD, RESTIC_PASSWORD_FILE or RESTIC_PASSWORD_COMMAND environment variables, taking care that the secret is not exposed in the process list.
I ran a restic command but it is not working as intended, what do I do now?
Print the arguments your shell actually passed to restic (for example with ruby -e 'puts ARGV.inspect' before the command) to see how quoting, tilde and glob expansion were handled.
restic check reports packs that aren’t referenced in any index, is my repository broken?
No, that is uncritical leftover data, usually duplicates left by an interrupted backup or upload; running restic prune cleans it up.
Will restic resume an interrupted backup?
Yes - index files are written periodically during the run, so re-running uploads only what is still missing. The file list does have to be rescanned because no parent snapshot existed yet.
More in Backup
resticprofileProfile-based automation for restic backups. Create profiles, schedule via systemd/cron/launchd/Windows Scheduler, export Prometheus metrics, send webhooks.
restic-rest-serverSelf-hosted HTTP server implementing restic's REST backend API for secure remote backups with authentication, TLS, append-only mode, and Prometheus metrics.
S3mediaArchivalA self-hosted web app that simplifies archiving media to AWS S3 Deep Archive, with bulk upload, download, and library scanning.
snaplakeSelf-hosted tool capturing PostgreSQL/MySQL snapshots as Parquet, queryable with DuckDB SQL. Features comparison, retention, S3 storage.
Telegram-ArchiveOpen-source self-hosted tool that continuously backs up Telegram chats, media, edits, and deletions to your own database with a Telegram-like web interface.
TG VaultSelf-hosted Telegram file archiver that stores files to local disk, OneDrive, Google Drive, S3, WebDAV and more with a web UI and bot for private cloud management.
TimeMachineSelf-hosted, open-source Docker image that runs Samba to provide a Time Machine-compatible backup target for macOS, with Avahi discovery and configurable storage quotas.
timenestOpen-source, self-hosted Time Capsule replacement for Raspberry Pi and Linux servers. Gives Macs automatic Bonjour discovery, per-user quotas, and a web dashboard.
umbrelOSA self-hosted home server OS you flash onto Intel, AMD or Raspberry Pi devices: browser setup, 300+ one-click apps, Files, Photos, backups and an MCP server.
UniFi-Protect-BackupPython tool to backup unifi event clips in realtime
unraid-config-guardianSelf-hosted open-source tool that backs up Unraid containers, settings, and plugins — generating templates, compose files, and a restore script for flash drive recovery.
UrBackupUrBackup is a self-hosted, open-source client/server backup system for Windows, Linux, and macOS combining image and file backups with deduplication and a web interface.
0 comments