Skip to content

zfs replication of all snapshots

While making some changes consolidating zpools I also re-organized my zfs file systems. I moved for example all zfs file systems from one pool to another. And also moved some file systems under a different hierarchy. Noting the difference between zfs send -I vs zfs send -i for reference.

first snapshot

# zfs send TANK/MyMusic@2019-12-15_13.41.06--1y | zfs recv TANK/ARCHIVE/MyMusic

send all snapshots

# zfs send -I TANK/MyMusic@2019-12-15_13.41.06--1y TANK/MyMusic@2020-05-30_06.52.07--2w | zfs recv TANK/ARCHIVE/MyMusic

Note: you can also send only the latest using -i

# zfs send -i TANK/MyMusic@2019-12-15_13.41.06--1y TANK/MyMusic@2020-05-30_06.52.07--2w | zfs recv TANK/ARCHIVE/MyMusic