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. SSH access to that remote system
  3. 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
  4. 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-3.2.13.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

zfs_replicate-3.2.13-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zfs_replicate-3.2.13.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-1017-azure

File hashes

Hashes for zfs_replicate-3.2.13.tar.gz
Algorithm Hash digest
SHA256 5e6837ddbaacde04095aa90236259851e9b7a3a5ecc697db1c856f2ecff60fde
MD5 76dac439e90886a472ab4c8d96972fae
BLAKE2b-256 96a352481e2fbce21f1351a06302d1e5b2c2761a9c7bbe4bfe4121ee5490e673

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zfs_replicate-3.2.13-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-1017-azure

File hashes

Hashes for zfs_replicate-3.2.13-py3-none-any.whl
Algorithm Hash digest
SHA256 7389023ae817d4983dd8bf9b90ec532baaf5987efe4c53ca1554f2dc3593606c
MD5 023fe6ad8dbf9a9ea268e524c208c795
BLAKE2b-256 25f068b59c76d76b8f0b1545d88b936a93572306f48fd77e4b4cf2591ca66eba

See more details on using hashes here.

Supported by

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