Below you will find pages that utilize the taxonomy term “ZFS”
June 3, 2025
ZFS file system: transfer some directories only
using zfs send/receive, by leveraging snapshot pruning
transfer only some directories of a zpool/dataset
1. Create initial snapshot
|
|
2. Remove unwanted directories (not to be transferred)
|
|
3. Create second snapshot (only includes wanted directories)
|
|
4. Send only the second snapshot, with compression (-c for compressed stream)
|
|
5. Destroy snapshot @002 (cleanup)
|
|
6. Rollback to the original full snapshot
|
|
7. Destroy snapshot @001 (final cleanup)
|
|