Can I extract one or more specific files from zfs snapshot stream? Without restoring full file system. Like ufs based ''restore'' tool. -- This message posted from opensolaris.org
On Mon, June 7, 2010 10:34, Toyama Shunji wrote:> Can I extract one or more specific files from zfs snapshot stream? > Without restoring full file system. > Like ufs based ''restore'' tool.No. (Check the archives of zfs-discuss for more details. Send/recv has been discussed at length many times.)
Hi Toyama, You cannot restore an individual file from a snapshot stream like the ufsrestore command. If you have snapshots stored on your system, you might be able to access them from the .zfs/snapshot directory. See below. Thanks, Cindy % rm reallyimportantfile % cd .zfs/snapshot % cd recent-snap-dir % cp reallyimportantfile $HOME On 06/07/10 08:34, Toyama Shunji wrote:> Can I extract one or more specific files from zfs snapshot stream? > Without restoring full file system. > Like ufs based ''restore'' tool.
Thank you David, Thank you Cindy, Certainly I feel it is difficult, but is it logically impossible to write a filter program to do that, with reasonable memory use? -- This message posted from opensolaris.org
To answer the question you asked here...the answer is "no". There have been MANY discussions of this in the past. Here''s the loooong thread I started back in May about backup strategies for ZFS pools and file systems: http://mail.opensolaris.org/pipermail/zfs-discuss/2010-March/038678.html But to do what you''re talking about, no, you cannot. There are other ways to accomplish that outcome and the above thread discusses many of them. But ZFS send/recv cannot and isn''t designed to. On Mon, Jun 7, 2010 at 10:34, Toyama Shunji <opensolaris at shunji.jp> wrote:> Can I extract one or more specific files from zfs snapshot stream? > Without restoring full file system. > Like ufs based ''restore'' tool. > -- > This message posted from opensolaris.org > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >-- "You can choose your friends, you can choose the deals." - Equity Private "If Linux is faster, it''s a Solaris bug." - Phil Harman Blog - http://whatderass.blogspot.com/ Twitter - @khyron4eva -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100608/fe2f5441/attachment.html>
> From: zfs-discuss-bounces at opensolaris.org [mailto:zfs-discuss- > bounces at opensolaris.org] On Behalf Of Toyama Shunji > > Certainly I feel it is difficult, but is it logically impossible to > write a filter program to do that, with reasonable memory use?Good question. I don''t know the answer. If somebody wanted to, would it be impossible to write a program to extract a single file (or subset of files) from a zfs send datastream? I don''t know anything about the internal data structuring format of the zfs send datastream. So I couldn''t begin to answer the question.
My inclination, based on what I''ve read and heard from others, is to say "no". But again, the best way to find out is to write the code. :\ On Wed, Jun 9, 2010 at 11:45, Edward Ned Harvey <solaris2 at nedharvey.com>wrote:> > From: zfs-discuss-bounces at opensolaris.org [mailto:zfs-discuss- > > bounces at opensolaris.org] On Behalf Of Toyama Shunji > > > > Certainly I feel it is difficult, but is it logically impossible to > > write a filter program to do that, with reasonable memory use? > > Good question. I don''t know the answer. > > If somebody wanted to, would it be impossible to write a program to extract > a single file (or subset of files) from a zfs send datastream? > > I don''t know anything about the internal data structuring format of the zfs > send datastream. So I couldn''t begin to answer the question. > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >-- "You can choose your friends, you can choose the deals." - Equity Private "If Linux is faster, it''s a Solaris bug." - Phil Harman Blog - http://whatderass.blogspot.com/ Twitter - @khyron4eva -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100609/7ef10ac0/attachment.html>