SpaceinvaderOne / Unraid_ZFS_Dataset_Snapshot_and_Replications

109 stars 23 forks source link

remote server replication using zfs send #27

Open harman-f opened 9 months ago

harman-f commented 9 months ago

1st of all, thanks a lot for your script, it is working fine!

However, instead of using rsync to push a backup to a remote server, I would like to backup datasets. It looks like zfs send can do this.

Did I get it wrong or could a remote replication via zfs send be added to the script?

SpaceinvaderOne commented 8 months ago

Hi the script will do either zfs replication or rsync. This is changed in the replication type variable `#################### #

remote server variables (leave as is (set to "no") if not backing up to another server)

destination_remote="no" # set to "no" for local backup to "yes" for a remote backup (remote location should be accessable paired with ssh with shared keys) remote_user="root" #remote user (an Unraid server will be root) remote_server="10.10.20.197" #remote servers name or ip # #################### #

replication settings

# replication="zfs" #this is set to the method for how you want to have the sourcedataset replicated - "zfs" , "rsync" or "none" # ##########`

Just set that to zfs and also have the destination set to remote