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.0.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: zfs_replicate-4.0.0.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for zfs_replicate-4.0.0.tar.gz
Algorithm Hash digest
SHA256 f560f6216ec6471305ee139af074c8ffe72e3a355a60c4f83a7ad853fc4580c1
MD5 f109522cab01107dfa64ffe1abfe39e4
BLAKE2b-256 b034eeb81d2ff99fc50a0a28dae6d48c5f6f087d54efa9f6fecf37a5231aa87a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for zfs_replicate-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 743bc5f95d87d1ce73359910054104aa95c5f195acd6bd12c82d8db828ec2ab2
MD5 9cea96b5258346be0effc8018c7ef8f4
BLAKE2b-256 631050b25c8922c7476dd8720e572bf46d564aa30b249d5c1ac6b17dabeb8ebf

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page