Skip to content

Instantly share code, notes, and snippets.

View MarcusWichelmann's full-sized avatar

Marcus Wichelmann MarcusWichelmann

View GitHub Profile
@MarcusWichelmann
MarcusWichelmann / zfs-replicate.sh
Last active January 21, 2020 23:57
Simple script for replication of single datasets over SSH with zfs send/receive
#!/bin/bash
# Source pool or dataset
SOURCE=Storage
# Target location on remote machine
# Note: Ensure all datasets in there are not mounted, otherwise the user on the remote machine needs to have unmount permissions.
TARGET=Storage/Backups/Some-Server
# Datasets to be backed up (relative to source)