HomeFreeBSD

sysutils/zfs-replicate: update to 2.0

Description

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"

Details

Provenance
lerAuthored on Sep 1 2024, 5:29 PM
Parents
R11:f2c718474e39: www/hs-postgrest: Update 12.2.3 and switch to recent GHC
Branches
Unknown
Tags
Unknown