notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine
Port details
zfs-replicate ZFS Snapshot Replication Script
2.0.2 sysutils on this many watch lists=6 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 0.7_2Version of this port present on the latest quarterly branch.
Maintainer: tschetter.victor@gmail.com search for ports maintained by this maintainer
Port Added: 2008-05-26 01:49:25
Last Update: 2024-09-02 14:42:27
Commit Hash: 8983a15
People watching this port, also watch:: net-snmp, rrdtool, libxml2, openvpn, nagios
License: not specified in port
WWW:
https://github.com/aaronhurt/zfs-replicate
Description:
Advanced ZFS replication script to replicate zfs datasets/volumes between hosts (or between pools on the same host) via incremental snapshots.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
Expand this list (1 items)
Collapse this list.
  1. sbin/zfs-replicate
Collapse this list.
Dependency lines:
  • zfs-replicate>0:sysutils/zfs-replicate
To install the port:
cd /usr/ports/sysutils/zfs-replicate/ && make install clean
To add the package, run one of these commands:
  • pkg install sysutils/zfs-replicate
  • pkg install zfs-replicate
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: zfs-replicate
Flavors: there is no flavor information for this port.
distinfo:
TIMESTAMP = 1725286224 SHA256 (aaronhurt-zfs-replicate-v2.0.2_GH0.tar.gz) = a1db4fef430033c780d1616514ef4b8f71ed17c8a02347a565d3af67863683b6 SIZE (aaronhurt-zfs-replicate-v2.0.2_GH0.tar.gz) = 12678

Packages (timestamps in pop-ups are UTC):
zfs-replicate
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest2.0.22.0.20.7_22.0.22.0.2-0.7_2-
FreeBSD:13:quarterly0.7_20.7_20.7_20.7_20.7_20.7_20.7_20.7_2
FreeBSD:14:latest2.0.22.0.20.7_22.0.22.0.20.7_2-0.7_2
FreeBSD:14:quarterly0.7_20.7_2-0.7_20.7_20.7_20.7_20.7_2
FreeBSD:15:latest2.0.22.0.2n/a2.0.2n/a0.7_20.7_20.7_2
This port has no dependencies.
There are no ports dependent upon this port

Configuration Options:
===> The following configuration options are available for zfs-replicate-2.0.2: DOCS=on: Build and/or install documentation EXAMPLES=on: Build and/or install examples ===> Use 'make config' to modify these settings
Options name:
sysutils_zfs-replicate
USES:
shebangfix
pkg-message:
For install:
To run zfs-replicate, copy /usr/local/share/zfs-replicate/config.sample.sh to /usr/local/share/zfs-replicate/config.sh, customize to your environment, and run using "zfs-replicate -c /usr/local/share/zfs-replicate/config.sh" The only option that does not have a default, and needs to be set is the REPLICATE_SETS To check last log, run "zfs-replicate -c /usr/local/share/zfs-replicate/config.sh -s" See https://github.com/aaronhurt/zfs-replicate for documentation.
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://codeload.github.com/aaronhurt/zfs-replicate/tar.gz/v2.0.2?dummy=/
Collapse this list.

Number of commits found: 25

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
2.0.2
02 Sep 2024 14:42:27
commit hash: 8983a1570e901c51feb36aa182655a878a138e17commit hash: 8983a1570e901c51feb36aa182655a878a138e17commit hash: 8983a1570e901c51feb36aa182655a878a138e17commit hash: 8983a1570e901c51feb36aa182655a878a138e17 files touched by this commit
Larry Rosenman (ler) search for other commits by this committer
sysutils/zfs-replicate:  update to 2.0.2

Minor bugfixes
Doc updates
Codeowner file added

PR:	281210
Reported by:	Victor <tschetter.victor@gmail.com> (Maintainer)
2.0
01 Sep 2024 17:29:51
commit hash: beb8e2725d5f7d1c3dee367162a8839f3822c850commit hash: beb8e2725d5f7d1c3dee367162a8839f3822c850commit hash: beb8e2725d5f7d1c3dee367162a8839f3822c850commit hash: beb8e2725d5f7d1c3dee367162a8839f3822c850 files touched by this commit
Larry Rosenman (ler) search for other commits by this committer
sysutils/zfs-replicate: update to 2.0

v2.0 now completely POSIX compliant!

In version 2.0, zfs-replicate has been completely rewritten to the POSIX shell,
removing the need for the bash dependency. This means it can be run with shell
like sh, and dash without the need for additional dependencies.

Every feature has been ported over, and the feature list remains the same. For
reference, here they are.

- The script follows strict POSIX standards and should be usable on any host
with a POSIX compliant shell.
- Source pools and datasets are always authoritative, the script will always
defer to the source.
- Supports push and pull replication with local and remote datasets.
- Supports multiple pool/dataset pairs to replicate.
- Supports divergence detection and reconciliation of destination datasets.
- Logging leverages syslog (via logger) by default, but local logging may be
configured.
- Includes a well documented `config.sh` file that may be used as configuration
or as reference for environment
  variables passed to the script.
- May be run on any schedule using cron or similar mechanism.
- Fully source compliant and may be used by other scripts.
- Test coverage of core functions via mocks in the test/test.sh script.
- Includes a `--status` option for XigmaNAS that can be used to email the last
log output at your preferred schedule.
  Simply add it as a custom script in the email settings under "System >
Advanced > Email Reports"
1.0_2
29 Aug 2024 21:59:44
commit hash: 1a3b0f7b06a18d114eb3fd5d7fc60b39fb92914acommit hash: 1a3b0f7b06a18d114eb3fd5d7fc60b39fb92914acommit hash: 1a3b0f7b06a18d114eb3fd5d7fc60b39fb92914acommit hash: 1a3b0f7b06a18d114eb3fd5d7fc60b39fb92914a files touched by this commit
Larry Rosenman (ler) search for other commits by this committer
sysutils/zfs-replicate: add pkg-message

PR:	281130
Reported by:	Victor <tschetter.victor@gmail.com> (Maintainer)
1.0_1
28 Aug 2024 19:51:19
commit hash: c68e0ac920a69e56090a600c2388de2c93874980commit hash: c68e0ac920a69e56090a600c2388de2c93874980commit hash: c68e0ac920a69e56090a600c2388de2c93874980commit hash: c68e0ac920a69e56090a600c2388de2c93874980 files touched by this commit
Larry Rosenman (ler) search for other commits by this committer
sysutils/zfs-replicate: final version of 1.0

Final version of 1.0

Change fetch location to original author repo (see below)
Code rewritten
Some variable changes
Documentation updates

See https://github.com/aaronhurt/zfs-replicate for details

PR:	281116
Reported by:	Victor <tschetter.victor@gmail.com> (Maintainer)
1.0
22 Aug 2024 02:16:18
commit hash: e13de927ae28ace69f522e1ff72ce3ff30932c6ecommit hash: e13de927ae28ace69f522e1ff72ce3ff30932c6ecommit hash: e13de927ae28ace69f522e1ff72ce3ff30932c6ecommit hash: e13de927ae28ace69f522e1ff72ce3ff30932c6e files touched by this commit
Larry Rosenman (ler) search for other commits by this committer
sysutils/zfs-replicate: clean up GH_TAGNAME vs DISTVERSIONPREFIX

Per @vvd.
1.0
22 Aug 2024 00:58:36
commit hash: b3cf46924d9855b5275b1d3275c1947b6756f124commit hash: b3cf46924d9855b5275b1d3275c1947b6756f124commit hash: b3cf46924d9855b5275b1d3275c1947b6756f124commit hash: b3cf46924d9855b5275b1d3275c1947b6756f124 files touched by this commit
Larry Rosenman (ler) search for other commits by this committer
sysutils/zfs-replicate:  update to 1.0

This version includes enhancements and features such as

- supports PUSH or PULL replication
- supports LOCAL or REMOTE replication
- supports multiple pool/dataset pairs to replicate
- everything is logged to `${SCRIPTPATH}/logs` by default (can be set to custom
location using $LOGBASE variable) but its better to keep it together with the
scripts
- runs off a well documented `config.sh` file (see below)
- can be run on any schedule using cron with `bash zfs-replicate.sh -config.sh`
- (for XigmaNAS) includes a `status-report.sh` that can be used to email latest
replication status, which will email the latest replication status at your
preferred schedule. Simply add it as a custom script in the email settings under
"System > Advanced > Email Reports"
- includes ALLOW_REPLICATE_FROM_SCRATCH option (see below, or `config.sh` file
for details)

PR:	280987
Reported by:	Victor <tschetter.victor@gmail.com> (Maintainer)
0.7_2
21 Aug 2024 21:53:52
commit hash: de0cae82c215464cf52db96595c6aad50ca86fd8commit hash: de0cae82c215464cf52db96595c6aad50ca86fd8commit hash: de0cae82c215464cf52db96595c6aad50ca86fd8commit hash: de0cae82c215464cf52db96595c6aad50ca86fd8 files touched by this commit
Larry Rosenman (ler) search for other commits by this committer
sysutils/zfs-replicate: change maintainer to tschetter.victor@gmail.com

This port was last updated in September of 2022, and the maintainer seems AWOL.

Since then, features have been added to the original github repository (located
at https://github.com/aaronhurt/zfs-replicate)

I have emailed the maintainer listed on the port page
(jnlin@freebsd.cs.nctu.edu.tw) but the only response was that the message could
not be delivered. This was 48 hours ago on August 19, 2024.

I would like to volunteer to maintain this port, as I am the one who pushed the
changes to the github repository to begin with.

PR: 280986
07 Sep 2022 21:58:51
commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Remove WWW entries moved into port Makefiles

Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
0.7_2
07 Sep 2022 21:10:59
commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Add WWW entries to port Makefiles

It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above View all of this commit message)
0.7_2
20 Jul 2022 14:23:05
commit hash: ea7123695aad83707eba8adaf42b29dac7f296e4commit hash: ea7123695aad83707eba8adaf42b29dac7f296e4commit hash: ea7123695aad83707eba8adaf42b29dac7f296e4commit hash: ea7123695aad83707eba8adaf42b29dac7f296e4 files touched by this commit
Tobias C. Berner (tcberner) search for other commits by this committer
sysutils: remove 'Created by' lines

A big Thank You to the original contributors of these ports:

  *  <jsmith@resonatingmedia.com>
  *  Aaron Dalton <aaron@FreeBSD.org>
  *  Aaron Landwehr <aaron@snaphat.com>
  *  Adam Weinberger <adamw@FreeBSD.org>
  *  Adrian Chadd
  *  Adrian Chadd <adrian@FreeBSD.org>
  *  Akinori MUSHA aka knu <knu@idaemons.org>
  *  Alan Eldridge <alane@FreeBSD.org>
  *  Alan Eldridge <alane@geeksrus.net>
  *  Aldis Berjoza <aldis@bsdroot.lv>
  *  Alex Deiter <alex.deiter@gmail.com>
(Only the first 15 lines of the commit message are shown above View all of this commit message)
0.7_2
06 Apr 2021 14:31:07
commit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344eb files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
Remove # $FreeBSD$ from Makefiles.
0.7_2
15 Sep 2019 02:46:37
Revision:512086Original commit files touched by this commit
jgh search for other commits by this committer
- update to 0.7_2
- code shift to github
- update WWW along with pkg-descr
- support docs and examples

PR:		207244
Reported by:	lapo@lapo.it, w.schwarzenfeld@utanet.at (WWW)
0.7_1
19 May 2016 10:53:06
Revision:415500Original commit files touched by this commit
amdmi3 search for other commits by this committer
- Fix trailing whitespace in pkg-descrs, categories [p-x]*

Approved by:	portmgr blanket
0.7_1
01 Apr 2016 14:25:18
Revision:412349Original commit files touched by this commit
mat search for other commits by this committer
Remove ${PORTSDIR}/ from dependencies, categories r, s, t, and u.

With hat:	portmgr
Sponsored by:	Absolight
0.7_1
02 Mar 2016 05:41:04
Revision:409912Original commit files touched by this commit
lwhsu search for other commits by this committer
- Update maintainer's email address

Submitted by:	maintainer (via facebook chat)
0.7_1
19 Oct 2015 08:42:39
Revision:399647Original commit files touched by this commit
koobs search for other commits by this committer
sysutils/zfs-replicate: Fix WWW URL (404)

PR:		203830
Reported by:	Yonas Yanfa <yonas fizk net>
Approved by:	portmgr (blanket)
MFH:		2014Q4
0.7_1
29 Jul 2014 21:43:18
Revision:363399Original commit files touched by this commit
adamw search for other commits by this committer
Convert some more USE_BZIP2 to USES=tar:bzip2

Approved by:	portmgr (not really, but touches unstaged ports)
0.7_1
17 Jul 2014 08:57:51
Revision:362126Original commit files touched by this commit
olgeni search for other commits by this committer
Remove indefinite articles and trailing periods from COMMENT, plus
minor COMMENT typos and surrounding whitespace fixes. A few Makefiles
where not included as they contain Latin-1 characters that break
the Phabricator workflow. Categories P-S.

CR:		D422
Approved by:	portmgr (bapt)
0.7_1
27 Feb 2014 09:58:05
Revision:346313Original commit files touched by this commit
ehaupt search for other commits by this committer
- Support staging
- Use WWW: with a single space
0.7_1
20 Sep 2013 23:06:00
Revision:327772Original commit files touched by this commit
bapt search for other commits by this committer
Add NO_STAGE all over the place in preparation for the staging support (cat:
sysutils)
0.7_1
19 Mar 2011 12:38:54
Original commit files touched by this commit
miwi search for other commits by this committer
- Get Rid MD5 support
0.7_1
22 Feb 2009 15:24:50
Original commit files touched by this commit
beat search for other commits by this committer
- Fix path to zfs utility

PR:             ports/131966
Submitted by:   Jui-Nan Lin <jnlin AT csie.nctu.edu.tw> (maintainer)
Approved by:    miwi (mentor)
0.7
12 Nov 2008 14:44:47
Original commit files touched by this commit
amdmi3 search for other commits by this committer
- Update to 0.7

PR:             128812
Submitted by:   Jui-Nan Lin <jnlin at csie dot nctu dot edu dot tw> (maintainer)
0.4_1
14 Jun 2008 02:53:37
Original commit files touched by this commit
wxs search for other commits by this committer
Switch to pdksh instead of ksh93.

PR:             ports/124555
Submitted by:   Jui-Nan Lin <jnlin@csie.nctu.edu.tw> (maintainer)
0.4
26 May 2008 01:49:09
Original commit files touched by this commit
vanilla search for other commits by this committer
Add zfs-replicate 0.4, a ZFS Snapshot Replication Script.

PR:             ports/123982
Submitted by:   Jui-Nan Lin <jnlin at csie.nctu.edu.tw>

Number of commits found: 25