User Tools

Site Tools


zfs:snapshots:send_and_receive_a_snapshot

ZFS - Snapshots - Send and Receive a Snapshot

ZFS snapshots of a filesystem can be:

  • Sent to a file or to another machine.
  • Received from another machine.

NOTE: This is great for backups or sending copies over the network (e.g. using ssh) to copy a file system.


Take a snapshot and save it to a file

sudo zfs snapshot -r testpool/projects@snap2
sudo zfs send testpool/projects@snap2 > ~/projects-snap.zfs

Receive a snapshot

To receive back from the saved file:

sudo zfs receive -F testpool/projects-copy < ~/projects-snap.zfs
zfs/snapshots/send_and_receive_a_snapshot.txt · Last modified: 2021/10/13 12:40 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki