Difference between revisions of "Documentation/ZfsSend"

Jump to navigation Jump to search
no edit summary
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:


<nowiki>
<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 />
</nowiki>
</pre>
Editor
90

edits

Navigation menu