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: | ||
< | <pre> | ||
$ zfs create rpool/send-test<br /> | $ zfs create rpool/send-test<br /> | ||
$ touch /rpool/send-test/tmp<br /> | $ touch /rpool/send-test/tmp<br /> | ||
Line 14: | Line 14: | ||
$ zfs snapshot rpool/send-test@after<br /> | $ zfs snapshot rpool/send-test@after<br /> | ||
$ zfs send -i rpool/send-test@before rpool/send-test@after > send.log<br /> | $ zfs send -i rpool/send-test@before rpool/send-test@after > send.log<br /> | ||
</ | </pre> |