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 ZFS snapshots to a remote host via SSH. zfs-replicate does not create ZFS snapshots.

zfs-replicate is based on autorepl.py used by FreeNAS.

zfs-replicate is related to several other projects which fit other niches:

  1. sanoid: A full snapshot management system. Its companion application, syncoid, handles replication with many available options.
  2. zfs-replicate (BASH): A very similar project. The major differences are configuration style (our project uses parameters whereas this project uses a BASH script), and the system expectations (e.g., logging controls).
  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, modify, 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 CLI 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 CLI 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.0.tar.gz (15.8 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-3.2.0-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zfs_replicate-3.2.0.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1018-azure

File hashes

Hashes for zfs_replicate-3.2.0.tar.gz
Algorithm Hash digest
SHA256 107ff1f4ad14c9b18a5df7b5d3d758f505c26fbe42b6d2d653d0a061d3fc3c46
MD5 c96744ec39f96a092df890ece43ca3ff
BLAKE2b-256 e6d7f9494c9ea4d499fd6169b4dfd7f3a2e5e3d704d6887c50f028b8049471b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zfs_replicate-3.2.0-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1018-azure

File hashes

Hashes for zfs_replicate-3.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e76a4782d81ae75c54a0b3df832cb0ecafb4c23e5b7fcdbd57a935bf576daa2a
MD5 06126f734933022eaaf757e1348a3b14
BLAKE2b-256 f41a03255e91543532c4dd036030520fa9b1affd32927737f72305d00de73cf1

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