Skip to main content

ZFS Snapshot Replicator

Project description

zfs-replicate

https://github.com/alunduil/zfs-replicate

By Alex Brandt alunduil@gmail.com

Description

zfs-replicate sends all Zettabyte File System (ZFS) snapshots to a remote host by SSH. zfs-replicate does not create ZFS snapshots.

zfs-replicate forks autorepl.py used by FreeNAS.

zfs-replicate relates to several other projects, which fit other niches:

  1. sanoid: A full snapshot management system. Its companion, syncoid, handles replication with copious options.
  2. zfs-replicate (BASH): A similar project. The major differences include configuration style and system expectations (for example, logging controls). zfs-replicate uses parameters whereas zfs-replicate (BASH) uses a BASH script.
  3. znapzend: Another scheduling and replicating system.
  4. zrep: A SH script with several control commands for snapshot replication.

Terms of use

You are free to copy, change, and distribute zfs-replicate with attribution under the terms of the BSD-2-Clause licence. See the LICENSE for details.

Prerequisites

  1. A remote system with a ZFS filesystem and the zfs command-line tools
  2. If using lz4 compression, local and remote systems must have lz4 in their environments
  3. SSH access to that remote system
  4. If you're not using the root user remotely:
    1. Ensure the user can mount filesystems
      1. FreeBSD: sysctl -w vfs.usermount=1
    2. Add ZFS permissions
      1. Command: zfs allow ${USER} ${PERMISSIONS} ${BACKUP_DATASET}
      2. Permissions
        1. clone
        2. create
        3. destroy
        4. hold
        5. mount
        6. promote
        7. quota
        8. readonly
        9. receive
        10. rename
        11. reservation
        12. rollback
        13. send
        14. snapshot
  5. A local ZFS filesystem and zfs command-line tools

N.B., don't use the root user to access your remote system.

How to use zfs-replicate

  1. poetry install
  2. poetry run -- zfs-replicate --help

Documentation

Getting support

  • GitHub issues: Report any problems or features requests to GitHub issues.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zfs_replicate-4.0.1.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zfs_replicate-4.0.1-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file zfs_replicate-4.0.1.tar.gz.

File metadata

  • Download URL: zfs_replicate-4.0.1.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.0 CPython/3.12.3 Linux/6.17.0-1010-azure

File hashes

Hashes for zfs_replicate-4.0.1.tar.gz
Algorithm Hash digest
SHA256 ae0ffd768d7f40f20a5c5b3a17e5ecca9eadf48ee1c0886cdb8ab0ffcfcf9457
MD5 205b62bb79a4ba3ca965cc866bfecdae
BLAKE2b-256 17e6bb82ed1ceee1001d3d413a5ca4261c6486b36243d6dc413e7a764c81e150

See more details on using hashes here.

File details

Details for the file zfs_replicate-4.0.1-py3-none-any.whl.

File metadata

  • Download URL: zfs_replicate-4.0.1-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.0 CPython/3.12.3 Linux/6.17.0-1010-azure

File hashes

Hashes for zfs_replicate-4.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 59a9ff89c3cecf24950546df7805a483a6e7d66f79bb18991a04346f4d512b9e
MD5 8368be9c5222941f724e8f2a2c5f3a0e
BLAKE2b-256 f9b317c6102713131fe0ac432ed57dd55d48f8061022fcc95e271223863035a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page