- Python 56.3%
- JavaScript 25.1%
- Shell 7.6%
- CSS 5.6%
- Makefile 3.1%
- Other 2.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
ci / actionlint (pull_request) Successful in 10s
ci / unit + API tests, README (pull_request) Successful in 28s
ci / image build + smoke + round trip + Trivy + multi-arch build (pull_request) Successful in 2m36s
ci / actionlint (push) Successful in 9s
ci / unit + API tests, README (push) Successful in 30s
ci / image build + smoke + round trip + Trivy + multi-arch build (push) Successful in 2m32s
The meerkat-on-a-NAS logo replaces the orange "M" tile in the sidebar, on the sign-in screen, as the favicon and in the README wordmark. The colours come from the logo: deep teal backgrounds from the NAS, mint from the shield for buttons and highlights, and the meerkat's sandy fur for the "Meerkat" wordmark. Headings use a rounded font where the system has one. Screenshots are retaken with the new look. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019agRhNZsxRG4NUMR1zDUr9 |
||
| .github | ||
| docs | ||
| frontend | ||
| meerkat | ||
| screenshots | ||
| scripts | ||
| tests | ||
| unraid | ||
| .dockerignore | ||
| .gitignore | ||
| docker-compose.yml | ||
| Dockerfile | ||
| LICENSE | ||
| Makefile | ||
| pyproject.toml | ||
| README.md | ||
| requirements-dev.txt | ||
| requirements.txt | ||
Zero-trust buddy backup for NAS boxes.
User guide (wiki): every screen explained, from first start to restoring a file. More screenshots in docs/screenshots.
Why
Off-site backups without a cloud bill. You have a TrueNAS. Your friend has an Unraid. You each have spare disk space. Meerkat lets you back up to each other: your photos live on their box, theirs on yours.
Neither of you can read the other's data. Backups are encrypted on your own machine before they leave it, with a password that never leaves it either. Your buddy stores ciphertext and never sees a key.
One container, both directions. The same image sends your backups and receives your buddy's, with a web GUI for jobs, schedules, snapshots and restores. Meerkats stand watch for each other. So do you.
How it works
Both of you run the same container. Inside it:
- restic takes snapshots of your folders and encrypts them locally with a repository password that never leaves your machine, then pushes them to your buddy.
- rest-server receives your buddy's (already encrypted) snapshots and stores them on your disk — opaque blobs you cannot decrypt.
- A web GUI manages backup jobs, cron schedules, retention, snapshots, restores and the buddy connection.
┌─────────────── your TrueNAS ──────────────┐ ┌────────────── friend's Unraid ────────────┐
│ Meerkat │ │ Meerkat │
│ │ │ │
│ /backup/photos ──► restic (encrypts) ────┼──────┼──► rest-server ──► /data (opaque blobs) │
│ │ │ │
│ /data (opaque blobs) ◄── rest-server ◄───┼──────┼──── restic (encrypts) ◄── /backup/stuff │
│ │ │ │
│ web GUI :8080 receiver :8000 │ │ web GUI :8080 receiver :8000 │
└───────────────────────────────────────────┘ └───────────────────────────────────────────┘
Features
- Zero-trust encryption — restic encrypts on your side (AES-256); the storing side sees only ciphertext, file names included.
- Web GUI — backup jobs, a folder picker, schedules, a snapshot browser, one-click restores and live run logs.
- Schedules — cron with presets (daily, every 6 hours, hourly, weekly), plus "Back up now".
- Retention — keep N daily, weekly and monthly snapshots per job, pruned automatically after each backup.
- Buddy accounts — a private repository per account, generated passwords, storage use and an optional size cap.
- Append-only mode — protect your buddy's history even if their box is compromised.
- Safe restores — into a separate
/restorefolder, never over live data; a whole snapshot or one folder of it. - Maintenance — repository integrity check, prune and stale-lock removal from the Settings page.
- One container — the same image on TrueNAS, Unraid or any Docker host,
linux/amd64andlinux/arm64, with restic 0.19.1 and rest-server 0.14.0.
Quick start
Both buddies do the same on their own box:
mkdir meerkat && cd meerkat
curl -fsSLO https://git.pandanas.net/Code-Liberation-Front/Meerkat/raw/branch/main/docker-compose.yml
# edit docker-compose.yml: the folders you want backed up go under /backup
docker compose up -d
The compose file (also the base for a Portainer stack or a TrueNAS custom app):
# Meerkat — zero-trust buddy backup.
# Copy this file, adjust the volume mounts, then: docker compose up -d
services:
meerkat:
# :latest follows releases; pin a version (e.g. :v0.1.0) to upgrade on your own schedule
image: git.pandanas.net/code-liberation-front/meerkat:latest
container_name: meerkat
init: true
restart: unless-stopped
ports:
- "8080:8080" # web GUI — keep on your LAN / behind a reverse proxy
- "8000:8000" # receiver — the one port your buddy needs to reach
environment:
- TZ=Etc/UTC # set your timezone so cron schedules match wall time
volumes:
# Meerkat's own state (settings, job history, htpasswd)
- ./config:/config
# your buddy's encrypted snapshots are stored here — size accordingly
- ./buddy-data:/data
# folders YOU want backed up: mount read-only under /backup
- /mnt/tank/photos:/backup/photos:ro
- /mnt/tank/documents:/backup/documents:ro
# restores land here, never on top of your live data
- ./restore:/restore
Open http://<your-nas>:8080, create your admin account, then pair up:
- You: Buddy → Inbound → Add buddy account, then send the generated username and password to your friend over a secure channel (Signal, in person…).
- Your friend does the same for you on their Meerkat.
- Both: Buddy → Outbound: the other's receiver URL
(
http://<their-address>:8000), the credentials they gave you, and your own repository encryption password. Test connection, then Initialize repository. - Both: Backup jobs → New job: pick folders, a schedule and retention.
That's it. Watch the dashboard.
Write your repository password down somewhere that is not the server being backed up. If you lose it, nobody — not your buddy, not Meerkat — can recover your backups.
Step-by-step guides: TrueNAS SCALE · Unraid (with a template) · Connecting the two boxes — Tailscale/WireGuard or a port forward.
Container layout
| Path | Purpose |
|---|---|
/config |
Meerkat's settings, job history and receiver accounts — contains secrets; don't back it up to your buddy |
/data |
Your buddy's encrypted snapshots (their repository, your disk) — size it generously |
/backup/... |
The folders you back up — mount them read-only |
/restore |
Restored files land here |
| Port | Purpose |
|---|---|
8080 |
Web GUI — keep it on your LAN |
8000 |
Receiver — the only port your buddy needs to reach |
| Variable | Purpose |
|---|---|
TZ |
Timezone for backup schedules, e.g. America/New_York (default Etc/UTC) |
Security model
| Scenario | What is exposed |
|---|---|
| Your buddy looks at what they store for you | Ciphertext only. File names, sizes and contents are encrypted on your box before upload. They can see that you back up, roughly when, and how much. |
| Your buddy deletes your backups | They hold the disk, so they can. Your primary copy is untouched; run Check integrity now and then so you notice. |
| Someone takes over your box | Your repository password and receiver credentials in /config, and with them your remote history. Ask your buddy to turn on append-only mode for your account to keep that history safe. |
| Someone listens on the line | Never your data (already encrypted). Over plain HTTP, the receiver account password — use a VPN or TLS (networking). |
| You lose your repository password | Your backups. Unrecoverable by design. |
Threat model and practices: docs/security.md. Every CI run
backs up through a real receiver and checks that no plaintext reaches its disk.
Upgrading
docker compose pull && docker compose up -d
:latest follows releases. To upgrade on your own schedule, pin a version
(git.pandanas.net/code-liberation-front/meerkat:v0.1.0) and change it when a
release says so. Your settings, jobs and both repositories live in
the volumes and carry over.
Development
make test # unit + API tests (makes .venv; no Docker or restic needed)
make docker # build the image (meerkat:dev)
make smoke # start it: health, GUI, first run, restic, rest-server
make roundtrip # a real backup, retention, browse, restore and check through the API
make screenshots # README and wiki screenshots with demo data
make ci # everything CI runs
The backend is FastAPI + SQLite + APScheduler; the frontend is dependency-free
vanilla JS served by the same process. restic and rest-server are pinned in the
Dockerfile. CI and releases run on this Forgejo: a v* tag publishes the
multi-arch image with an SBOM and provenance attestation, and a release.
License
Apache-2.0 — see LICENSE.