BSD Ports

filesystems/zrepl 0.7.0_10 FreeBSD

ZFS dataset replication tool

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
d81b7ba3c3
License
MIT
Categories
filesystems, sysutils
Package size
5791.7 KiB, 19523.5 KiB installed

Description

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

In the other systems

SystemPortVersion
FreeBSDfilesystems/zrepl0.7.0_10
NetBSDsysutils/zrepl0.6.1nb14
DragonFlyfilesystems/zrepl0.6.1_10

Install

Binary package:

pkg install zrepl

From the ports tree:

cd /usr/ports/filesystems/zrepl/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	zrepl>0:filesystems/zrepl

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.7.0_90.7.0_9-0.6.1_160.7.0_9
FreeBSD:14:quarterly0.7.0_90.7.0_9n/a0.6.1_130.7.0_9
FreeBSD:15:latest0.7.0_90.7.0_9n/a-0.6.1_16
FreeBSD:15:quarterly0.7.0_90.7.0_9n/an/an/a
FreeBSD:16:latest0.7.0_80.7.0_9n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 40

No port depends on this one.

Configuration

Options name: filesystems_zrepl

OptionDefaultDescription
EXAMPLESoffBuild and/or install examples
MANPAGESonBuild and/or install manual pages
USES
go:modules ncurses
Service scripts
zrepl

Message after installing

Messages from filesystems/zrepl:

SETUP BEFORE FIRST USE:
- Create the log file /var/log/zrepl.log:
  # service newsyslog restart
- Teach syslogd to redirect facility local0 to the zrepl.log file:
  # service syslogd reload
- Modify the /usr/local/etc/zrepl/zrepl.yml configuration file
- For remote backups, create the SSH key pair and authorized_keys file
- Enable the zrepl daemon to start automatically at boot:
  # sysrc zrepl_enable="YES"
- Start the zrepl daemon:
  # service zrepl start
  
Documentation: 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).

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

Files

pkg-plist 33
  • bin/zrepl
  • etc/periodic/weekly/500.zrepl
  • @sample etc/zrepl/zrepl.yml.sample
  • share/examples/zrepl/bandwidth_limit.yml
  • share/examples/zrepl/empty.yml
  • share/examples/zrepl/grafana-prometheus-zrepl.json
  • share/examples/zrepl/hooks/template.sh
  • share/examples/zrepl/include.d/snap.yml
  • share/examples/zrepl/include.yml
  • share/examples/zrepl/include_directory.yml
  • share/examples/zrepl/invalid/duplicate_job_names/zrepl.yml
  • share/examples/zrepl/invalid/duplicate_job_names_with_include/included.yml
  • share/examples/zrepl/invalid/duplicate_job_names_with_include/zrepl.yml
  • share/examples/zrepl/invalid/internal_job_name/zrepl.yml
  • share/examples/zrepl/local.yml
  • @sample share/examples/zrepl/newsyslog.conf etc/newsyslog.conf.d/zrepl.conf
  • share/examples/zrepl/pull.yml
  • share/examples/zrepl/pull_ssh.yml
  • share/examples/zrepl/push.yml
  • share/examples/zrepl/quickstart_backup_to_external_disk.yml
  • share/examples/zrepl/quickstart_continuous_server_backup_receiver.yml
  • share/examples/zrepl/quickstart_continuous_server_backup_sender.yml
  • share/examples/zrepl/quickstart_fan_out_replication_source.yml
  • share/examples/zrepl/quickstart_fan_out_replication_target.yml
  • share/examples/zrepl/sink.yml
  • share/examples/zrepl/snap.yml
  • share/examples/zrepl/snap_cron.yml
  • share/examples/zrepl/source.yml
  • share/examples/zrepl/source_ssh.yml
  • @sample share/examples/zrepl/syslog.conf etc/syslog.d/zrepl.conf
  • @dir etc/newsyslog.conf.d
  • @dir etc/syslog.d
  • @dir(root,wheel,0750) /var/run/zrepl
distinfo 3
FileSizeSHA256
go/filesystems_zrepl/zrepl-v0.7.0/v0.7.0.mod3478b448fe48e810c2a46eae9bbda05f42954ab4c2f2f9c6dcfeaa2dc5b7fddbcdc4
go/filesystems_zrepl/zrepl-v0.7.0/v0.7.0.zip61127890a8799f870b56c0d0961b25aa09901f1d6117f4edc29212a2727891e10c836d
go/filesystems_zrepl/zrepl-v0.7.0/golang-sys-v0.6.0_GH0.tar.gz1.434234e+06b4f6d17c7a128f76169964b437cb66b3f2dbf9a33361928ec19dfecf7b03fc54

Commit history 6

DateCommitCreditsLog message
d81b7ba3c3 Dag-Erling Smørgrav various: Bump Go ports for Go 1.26.10 / 1.27.3
031fc6bfbf Dag-Erling Smørgrav various: Bump Go ports
dd0905142a Adam Weinberger many: Bump go ports for 1.26.8 and 1.27.1
4867821cd6 Dag-Erling Smørgrav various: Bump go ports for go-1.25.14 / 1.26.7
6d39dcf04e Dag-Erling Smørgrav various: Bump go ports for go-1.25.13 / 1.26.6

The latest 5 of 6 in the history this site was built from.