zrepl - ZFS replication

zrepl is a one-stop, integrated solution for ZFS replication.

Getting started

The 10 minutes tutorial setup gives you a first impression.

Main Features

  • Filesystem replication
    • [x] Pull & Push mode
    • [x] Multiple transport transports: TCP, TCP + TLS client auth, SSH
    • Advanced replication features
      • [ ] Resumable send & receive
      • [ ] Compressed send & receive
      • [ ] Raw encrypted send & receive
  • Automatic snapshot management
    • [x] Periodic filesystem snapshots
    • [x] Flexible pruning rule system
      • [x] Age-based fading (grandfathering scheme)
      • [x] Bookmarks to avoid divergence between sender and receiver
  • Sophisticated Monitoring & Logging
    • [x] Live progress reporting via zrepl status subcommand
    • [x] Comprehensive, structured logging
      • human, logfmt and json formatting
      • stdout, syslog and TCP (+TLS client auth) outlets
    • [x] Prometheus monitoring endpoint
  • Maintainable implementation in Go
    • [x] Cross platform
    • [x] Type safe & testable code

Attention

zrepl as well as this documentation is still under active development. There is no stability guarantee on the RPC protocol or configuration format, but we do our best to document breaking changes in the Changelog.

Contributing

We are happy about any help we can get!

  • Explore the codebase
    • These docs live in the docs/ subdirectory
  • Document any non-obvious / confusing / plain broken behavior you encounter when setting up zrepl for the first time
  • Check the Issues and Projects sections for things to do

Development Workflow

The GitHub repository is where all development happens. Make sure to read the Developer Documentation section and open new issues or pull requests there.