Skip to content
  • Import pool

    zpool import -d /root/zfs/ pool-cryo
    zfs set compression=zstd-11 pool-cryo
    zpool upgrade pool-cryo
    Edited by Mathieu Schroeter
  • Snapshots

    zfs list -t snapshot
    zfs snapshot pool-x@snap1
    zfs rollback pool-x@snap1
    zfs diff pool-x@snap1
    zfs destroy pool-x@snap1
    Edited by Mathieu Schroeter
  •      Example 12 Remotely Replicating ZFS Data
           The following commands send a full stream and then an
           incremental stream to a remote machine, restoring them
           into poolB/received/fs@a and poolB/received/fs@b, respectively.
           poolB must contain the file system poolB/received, and must
           not initially contain poolB/received/fs.
    
           # zfs send pool/fs@a | \
             ssh host zfs receive poolB/received/fs@a
           # zfs send -i a pool/fs@b | \
             ssh host zfs receive poolB/received/fs
    
         Example 13 Using the zfs receive -d Option
           The following command sends a full stream of poolA/fsA/fsB@snap
           to a remote machine, receiving it into poolB/received/fsA/fsB@snap.
           The fsA/fsB@snap portion of the received snapshot's name is
           determined from the name of the sent snapshot.
           poolB must contain the file system poolB/received.
           If poolB/received/fsA does not exist, it is
           created as an empty file system.
    
           # zfs send poolA/fsA/fsB@snap | \
             ssh host zfs receive -d poolB/received
    Edited by Mathieu Schroeter
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment