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.1.0.tar.gz (15.9 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.1.0-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zfs_replicate-4.1.0.tar.gz
  • Upload date:
  • Size: 15.9 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.1.0.tar.gz
Algorithm Hash digest
SHA256 0535c946ddb87dd7461f0ef765108b8c3f107e842dfa7844227a07271b3d5186
MD5 86d1720ff31424d6948b20083349ad79
BLAKE2b-256 c362f1da847087a7fbf2228d16308dd48e898464c2bddee553e4049361485e41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zfs_replicate-4.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.3 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8c155e1e704f50d784989c84fbe7ea7d41f0b02bd2709741fc6791dbf17da927
MD5 23842d00bacf9f9d7e60b8132832f9e7
BLAKE2b-256 bd36d2ff73f6cda3c1f0d84cdb688e0063d1f234a71392671caefa43a2d511e2

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