Editor
90
edits
Line 7: | Line 7: | ||
The zstreamdump command can be used to print send stream contents in a human-readable format. As an example, we can create a ZFS filesystem, place an empty file in it, snapshot it, modify that file, then snapshot it again, and send the changes between the first and second snapshot to a file: | The zstreamdump command can be used to print send stream contents in a human-readable format. As an example, we can create a ZFS filesystem, place an empty file in it, snapshot it, modify that file, then snapshot it again, and send the changes between the first and second snapshot to a file: | ||
<code> | |||
$ zfs create rpool/send-test | $ zfs create rpool/send-test | ||
$ touch /rpool/send-test/tmp | $ touch /rpool/send-test/tmp | ||
Line 13: | Line 14: | ||
$ zfs snapshot rpool/send-test@after | $ zfs snapshot rpool/send-test@after | ||
$ zfs send -i rpool/send-test@before rpool/send-test@after > send.log | $ zfs send -i rpool/send-test@before rpool/send-test@after > send.log | ||
</code> |