If I've used zfs send to create a dump of an entire pool,
is it possible to use zfs receive to extract just a single
filesystem?

For example, if I did "zfs send t...@send | ..." and tank
had tank/foo, tank/bar, tank/fubar, and now I just want to
extract tank/bar, is that possible? What I want to do, in
effect, is "zfs receive tank/b...@send" and only receive
tank/bar, but to me the man page doesn't read like it
is meant to work like that.

If it isn't currently possible, what obstacles, if any, would
there be in patching libzfs to support this?

Looking at the code, it would seem like one way to do this
would be to pass a matching string through to zfs_receive()
and abort the receive in a similar fashion to -n if the name
of the incoming data set does not match that desired.

Thoughts?

Darren

_______________________________________________
zfs-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/zfs-code

Reply via email to