Envoyer un pool complet avec les sous-volumes et supprimer les snap
intermédiaires à l’arrivée
ssh user@source-zfs 'zfs send -R rpool' | zfs receive -F -u -v rpool
- Options du
send
- -R, –replicate : Generate a replication stream
package, which will replicate the specified file system, and all
descendent file systems, up to the named snapshot. When received, all
properties, snapshots, descendent file systems, and clones are
preserved.
- Options du
receive
- -F : Force a rollback of the file system to the
most recent snapshot before performing the receive operation. If
receiving an incremental replication stream (for example, one generated
by zfs send -R [-i|-I]), destroy snapshots and file systems that do not
exist on the sending side.
- -u : File system that is associated with the
received stream is not mounted.
- -v : Print verbose information about the stream and
the time required to perform the receive operation.