Here is the How To in order to use zrep in backup mode.
The normal mode allows a source server to send snapshots to another server. It allows to save data. But a no password ssh connection is need between both servers.
In backup mode, source server do nothing. Only the backup server will take the data, only ssh connection is needed from the backup server to the source server (not both sides).
First you need to have installed zrep: https://www.xigmanas.com/forums/viewtopic.php?t=1118
WARNING : Thanks to manage backup of your system and your data before modifications.
For initialization of backup server:
- The data must be on the backup server (via rsync, via zfs send / receive,....)
- You use the following command line on backup server via ssh (you need to adapt the path):
Code: Select all
zrep init pool1/films hostnameserveurmaitre pool1/destinationfs
Code: Select all
zrep clear pool1/films
- For each dataset, use the following command (you need to adapt the path)
Code: Select all
zrep failover pool1/films
- Then for each dataset (you are always on the backup server) :
Code: Select all
zrep refresh pool1/films
How to recover backup data via zrep for source server ?
- You identify the datasets that you want to recover
- You delete metadata for each dataset on backup server (you need to adapt the path)
Code: Select all
zrep clear pool1/films
- You initialize each dataset with zrep (always connected on backup server)
Code: Select all
zrep init pool1/films hostnameserveurmaitre pool1/destinationfs
It is done