Skip to content
ZeptinyPublic

About

Self-hosted manager for rclone transfers and restic backups.

Resources

Security policy

Stars

10 stars

Watchers

2 watching

Forks

Repository files navigation

Syncr

Self-hosted manager for rclone transfers and restic backups. One controller with a web UI drives any number of workers on your servers and desktops (Linux and Windows): run jobs by hand or on a schedule, watch them live, browse files and snapshots, and get notified when something fails.

The dashboard: success rate, run time and queue wait, activity per day, upcoming runs and worker health

Features

  • rclone transfers. Copy, sync or move between S3 and compatibles, Azure Blob Storage, Google Cloud Storage, Backblaze B2, SFTP, SMB shares, FTP/FTPS, WebDAV, a worker's local folders, unions of them and encrypted remotes (rclone crypt, encrypted on the worker), with live progress, speed and time left. Every type and what to enter: remotes.
  • Two-way sync. Keep one folder in step on several machines through a bucket or a server with rclone bisync: changes and deletions spread both ways, conflicts keep both versions, and safety checks stop a run that would empty a side.
  • restic backups. Create or connect repositories on any remote, back up a worker's folders, apply retention and check them. Browse snapshots and restore all of one, a folder or selected files, also back to where they were. Search every snapshot for a file and its versions, and compare two snapshots.
  • Back up a remote. Back up a folder of one of your remotes, such as Nextcloud photos or a bucket, through a mirror kept on the worker or an rclone mount, with rclone filters; snapshots are named after their remote, and an emptied folder fails instead of pushing real snapshots out of retention.
  • File browser. Browse a worker's folders and your remotes, select files and folders across folders, copy or move them, see which folder takes the space, and start a backup, a transfer or a schedule from what you selected.
  • Hooks. Run commands a worker's operator prepared before and after a job: dump a database, stop and start containers, ping a monitor.
  • Schedules. Cron expressions with time zones and daylight-saving rules, run on one worker or on the least busy worker with a label, with policies for missed runs and overlaps.
  • Notifications. Discord, email and signed webhooks (or Slack's format), stored before sending and retried, with a delivery log per contact.
  • Dashboard and metrics. See how jobs went by kind, worker and cause of failure, how long they ran and waited, how each schedule's last run went and what backups added to each repository; scrape the same from Prometheus at /metrics and alert on a backup that stopped succeeding.
  • Workers anywhere. Workers connect to the controller (active) or the controller connects to them over pinned TLS (passive), install as a system or per-user service, and upgrade in place with automatic rollback.
  • Secure by default. Credentials are encrypted at rest and only sent to the worker that runs the job; jobs can only touch the folders a worker allows (local_roots).
  • Multi-user. Admin-created accounts, private remotes and schedules, personal API tokens, and a Connect API for everything the UI does.

Screenshots

A running backup with its live throughput chart

Following a job live

Browsing a restic snapshot with folders selected for restore

Browsing and restoring a snapshot

A schedule with its next runs, settings and run history

A schedule and its history

Workers on Linux and Windows with their status, link mode, labels and versions

Workers on Linux and Windows

A worker's folders with their measured sizes and two folders selected for copying

Browsing a worker's folders, with sizes and a selection

Quick start

1. Start the controller and Postgres with Docker Compose:

mkdir syncr && cd syncr
v=v2.0.0   # or a release candidate's tag, such as v2.0.0-rc.1
curl -fsSLo docker-compose.yml "https://raw.githubusercontent.com/Zeptiny/Syncr/$v/deploy/docker-compose.yml"
curl -fsSLo .env "https://raw.githubusercontent.com/Zeptiny/Syncr/$v/deploy/.env.example"
chmod 600 .env
# Fill in POSTGRES_PASSWORD (openssl rand -hex 24) and
# SYNCR_SECRETS_KEY (openssl rand -base64 32) in .env;
# for a release candidate also SYNCR_VERSION=2.0.0-rc.1 (no v)
docker compose up -d --wait

2. Create the first admin. Open http://127.0.0.1:8080 and enter the one-time setup code from the log:

docker compose logs controller | grep setup_code

3. Add a worker. In the UI open Workers → Add worker and run the install command it shows on the machine that should run jobs. It enrolls, installs the pinned rclone and restic, and starts the service.

4. Add remotes and run jobs. Store your storage under Remotes, then use Run a job, or set up Repositories and Schedules.

Workers on other machines need the controller behind HTTPS, and you should back up the database and SYNCR_SECRETS_KEY: see running the controller.

Supported platforms

Controller Docker image (Linux x86-64, ARM64) or binary (Linux x86-64/ARM64, Windows x86-64); PostgreSQL 17
Workers Linux x86-64/ARM64 with systemd (system or --user), or any Linux with --no-service or in the image; Windows 10 / Server 2016 or newer, x86-64 (service or --user)
Web UI current Firefox, Chrome, Edge and Safari

Documentation

The same guides are built into the controller under Docs (/docs), for the version it runs; docs/README.md is the full index.

About

Self-hosted manager for rclone transfers and restic backups.

Resources

Security policy

Stars

10 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages