{"id":6984,"date":"2020-04-26T19:25:50","date_gmt":"2020-04-26T11:25:50","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6984"},"modified":"2020-04-26T19:25:51","modified_gmt":"2020-04-26T11:25:51","slug":"extundelete","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/extundelete","title":{"rendered":"extundelete\u547d\u4ee4 – \u6587\u4ef6\u6062\u590d\u5de5\u5177"},"content":{"rendered":"\n

extundelete\u662f\u4e00\u4e2a\u6587\u4ef6\u6062\u590d\u5de5\u5177\uff0c\u5b83\u652f\u6301ext3\/ext4\u53cc\u683c\u5f0f\u5206\u533a\u6062\u590d\u3002\u5728\u4f7f\u7528\u524d\uff0c\u8981\u5c06\u8981\u6062\u590d\u7684\u5206\u533a\u5378\u8f7d\u6216\u6302\u8f7d\u4e3a\u53ea\u8bfb\uff0c\u9632\u6b62\u6570\u636e\u88ab\u8986\u76d6\u4f7f\u7528\u3002extundelete\u8fd8\u662f\u6709\u5f88\u5927\u7684\u4e0d\u5b8c\u6574\u6027,\u57fa\u4e8e\u6574\u4e2a\u78c1\u76d8\u7684\u6062\u590d\u529f\u80fd\u8f83\u4e3a\u5f3a\u5927,\u57fa\u4e8e\u76ee\u5f55\u548c\u6587\u4ef6\u7684\u6062\u590d\u8fd8\u4e0d\u591f\u5f3a\u5927\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>extundelete [\u53c2\u6570] [\u6587\u4ef6\u6216\u76ee\u5f55]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-superblock <\/td>\u5370\u6307\u5b9a\u5206\u533a\u7684\u8d85\u7ea7\u5757\u4fe1\u606f\u3002\u5982\u4e0d\u52a0\u4efb\u4f55\u7684\u53c2\u6570\uff0c\u6b64\u9009\u9879\u662f\u9ed8\u8ba4\u7684<\/td><\/tr>
--journal<\/td>\u663e\u793a\u5757\u7684\u65e5\u5fd7\u4fe1\u606f<\/td><\/tr>
--after          <\/td>\u540e\u63a5\u65f6\u95f4\uff0c\u53ea\u6062\u590d\u6307\u5b9a\u65f6\u95f4\uff08\u65f6\u95f4\u6233\uff09\u4e4b\u540e\uff0c\u88ab\u5220\u9664\u7684\u6570\u636e<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u6062\u590d\u6b64\u65f6\u95f4\u540e\u5220\u9664\u7684\u6240\u6709\u6587\u4ef6\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# extundelete \/dev\/sdb2 --after 123456789 --restore-all<\/pre>\n\n\n\n

\u6062\u590d\u6307\u5b9a\u6587\u4ef6\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# extundelete \/dev\/sda1 --restore-file initramfs-2.6.32-358.el6.x86_64.img<\/pre>\n\n\n\n

\u6062\u590d\/test\u6587\u4ef6\u5939\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# extundelete \/dev\/sdb2 --restore-directory \/test<\/pre>\n","protected":false},"excerpt":{"rendered":"

extundelete\u662f\u4e00\u4e2a\u6587\u4ef6\u6062\u590d\u5de5\u5177\uff0c\u5b83\u652f\u6301ext3\/ext4\u53cc\u683c\u5f0f\u5206\u533a\u6062\u590d\u3002\u5728\u4f7f\u7528\u524d\uff0c\u8981\u5c06\u8981\u6062\u590d\u7684\u5206\u533a\u5378 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6984"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=6984"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6984\/revisions"}],"predecessor-version":[{"id":7211,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6984\/revisions\/7211"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6984"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6984"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6984"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}