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.1.5.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.1.5-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for zfs_replicate-3.1.5.tar.gz
Algorithm Hash digest
SHA256 781618c4b91f4b378ef1505f0422ae9222fe5a36f711b8e4fc34f3f84305864f
MD5 518371a1ccaa9713a9dc047aa075ebe2
BLAKE2b-256 21379137686f329d7a0ce469f920632072164d16697c0d2a15120420b0cc1768

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for zfs_replicate-3.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6ef1ad3dbc547f01418dfe5f7f43b0ba00da914af6a7c250584413875286e6c5
MD5 a06297fc1e9fffe9420929069dc7a1b8
BLAKE2b-256 c120c6fe081e68dab5665d45442f1d00466f048cb5f4b10cb6327d30aac36d13

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