Are there any plans to have a tool to restore individual files from zfs send streams - like ufsrestore? Specially for recovering from unintended file removal/changes of OS related files it would be nice to be able to restore just the file in question, instead of restoring the entire filesystem. Alex -- This message posted from opensolaris.org
On Jan 24, 2010, at 07:18, Alexander Welter wrote:> Are there any plans to have a tool to restore individual files from > zfs send streams - like ufsrestore?No publicly stated plans by Sun. If you have a support contract with Sun, I''d recommend calling them up and telling them that you wish to be added to Bug IDs: 6807049 - zfs send stream format should be documented http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6807049 5004379 - want comprehensive backup strategy http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=5004379 Also, please see the thread "zfs send/receive as backup - reliability?" that''s been ongoing for the last week for the topic of ZFS backups: http://mail.opensolaris.org/pipermail/zfs-discuss/2010-January/thread.html#35929> Specially for recovering from unintended file removal/changes of OS > related files it would be nice to be able to restore just the file > in question, instead of restoring the entire filesystem.As discussed in the above thread, the current solution would be to use either snapshots and/or third-party backup software (NetWorker, NetBackup, AMANDA, Bacula, etc.).
> Are there any plans to have a tool to restore individual files from zfs> send streams - like ufsrestore?The best advice I''ve heard so far is thus: On your backup media, create a zpool in a file container. When you "zfs send" don''t save the data stream. Instead, feed it directly into "zfs receive" into the zpool inside the file. When you "zpool export" you''ve got a mountable entire filesystem inside a file. Just like a "zfs send" data stream, except that it''s mountable, and already verified. . If you want to restore the whole filesystem, you can. . If you want to restore a single file, you can. . You can rest assured there was no corruption in the zfs data stream, because it was received properly and checksummed on the fly. . If you want, you can use a regular backup tool (tar, star, backup exec, whatever) to send the file container to tape. . If you want, you can do a scrub on the filesystem to ensure it''s still free of corruption. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20100124/d0d8bcd2/attachment.html>