BSD Ports

filesystems/zrepl-dsh2dsh 1.4.2_5 DragonFly

ZFS dataset replication tool (fork with more features)

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
filesystems, sysutils
Package size
5158.1 KiB, 18511.6 KiB installed

Description

Cross-platform ZFS replication tool written in Go that supports feature detection, bookmarks, and other new features.

This is a fork with more features like

* support of shell patterns for datasets definitions * new log formatters * ability to log into a file * ability to configure command piplines between `zfs send` and `zfs recv` * Icinga/Nagios checks * fast skip "keep all" pruning * snapshots named using local time in timestamps * configurable RPC timeout * configurable path to zfs binary * faster replication * graceful shutdown * redesigned `zrepl status` TUI

and so on.

In the other systems

The newest version among them is 1.4.3, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlyfilesystems/zrepl-dsh2dsh1.4.2_5 behind since 2026-10-23none known-[email protected]-
FreeBSDfilesystems/zrepl-dsh2dsh1.4.3_1 newestnone known-[email protected]2026-11-11
HardenedBSDfilesystems/zrepl-dsh2dsh1.4.3 newestno data-[email protected]-
GhostBSDfilesystems/zrepl-dsh2dsh1.4.3 newestno data-[email protected]-

Version history 1

  1. 1.4.2

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

pkg install zrepl-dsh2dsh

From DPorts:

cd /usr/dports/filesystems/zrepl-dsh2dsh && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 1

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

SETUP BEFORE FIRST USE:
- Create the log file /var/log/zrepl.log:
  # service newsyslog restart
- Modify the /usr/local/etc/zrepl/zrepl.yml configuration file
- Create ZFS datasets like:
  # zfs create -o mountpoint=none -o readonly=on zdisk/zrepl
  # zfs create zdisk/zrepl/localhost
- Enable the zrepl daemon to start automatically at boot:
  # sysrc zrepl_enable="YES"
- Start the zrepl daemon:
  # service zrepl start

Documentation: https://github.com/dsh2dsh/zrepl?tab=readme-ov-file#changes-from-upstream
               https://zrepl.github.io/
Changelog:     https://zrepl.github.io/master/changelog.html

DANGER - SNAPSHOT PRUNING REQUIRES EXPLICIT KEEP RULES:
For any ZFS snapshot that you want to keep, at least one rule must match.
This also applies to snapshots taken by means other than zrepl
(e.g. snapshots taken manually or via boot environment tools).

For monitoring zrepl daemon health and snapshots add this line to
/etc/periodic.conf:

    daily_zrepl_enable="YES"

In order to automatically warn the operator of impending certificate
expiration, add this line to /etc/periodic.conf:

    weekly_zrepl_enable="YES"

More config details in the zrepl periodic script:

    /usr/local/etc/periodic/weekly/500.zrepl

Upgrading from before 0.9.0 need to modify configuration file:

  /usr/local/etc/zrepl/zrepl.yml

Please read more about this change here:
https://github.com/dsh2dsh/zrepl?tab=readme-ov-file#breaking-changes