Move ZFS filesystem (including snapshots) from one pool to another

ubuntu-14.04zfsonlinux

I work with a setup where we use ZFS snapshots to maintain a historical record. We have a need to migrate this data from one ZFS pool to another.

This question (Moving a ZFS filesystem from one pool to another) appears to be almost what I need. However, in my case I would like to move all of the snapshots, not just current data.

Anyone know how this would be done?

For reference, this is using zfs-fuse on Ubuntu 14.04

Best Answer

Are you sure you're using zfs-fuse and not the real ZFS-on-Linux?

Either way, you would use zfs send to move a filesystem. Be sure to use the -R option:

   -R

       Generate a replication stream package, which will replicate the specified filesystem, and all
       descendent  file systems, up to the named snapshot. When received, all properties, snapshots,
       descendent file systems, and clones are preserved.