{"id":3245,"date":"2019-06-25T12:53:34","date_gmt":"2019-06-25T04:53:34","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3245"},"modified":"2019-06-25T12:53:35","modified_gmt":"2019-06-25T04:53:35","slug":"restore","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/restore","title":{"rendered":"restore\u547d\u4ee4 – \u8fd8\u539f\u5907\u4efd"},"content":{"rendered":"\n
restore\u547d\u4ee4\u7528\u6765\u8fd8\u539f\u7531dump\u64cd\u4f5c\u6240\u5907\u4efd\u4e0b\u6765\u7684\u6587\u4ef6\u6216\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf(\u4e00\u4e2a\u5206\u533a)\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>restore [\u53c2\u6570] [\u6587\u4ef6]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u4f7f\u7528\u5df2\u6267\u884c\u7684\u8f6c\u50a8\u6765\u6267\u884c\u5b8c\u5168\u91cd\u5efa\uff1a<\/p>\n\n\n\n \u4ec5\u4ece\u78c1\u5e26\u5907\u4efd\u4e2d\u63d0\u53d6\u2002\/etc\u2002\u76ee\u5f55\uff1a<\/p>\n\n\n\n \u4ea4\u4e92\u5f0f\u8fd8\u539f\uff1a<\/p>\n\n\n\n \u5b8c\u5168\u91cd\u5efa\u662f\u4e00\u5f8b\u540c\u610f\u6267\u884c\uff1a<\/p>\n\n\n\n <\/p>\n","protected":false},"excerpt":{"rendered":" restore\u547d\u4ee4\u7528\u6765\u8fd8\u539f\u7531dump\u64cd\u4f5c\u6240\u5907\u4efd\u4e0b\u6765\u7684\u6587\u4ef6\u6216\u6574\u4e2a\u6587\u4ef6\u7cfb\u7edf(\u4e00\u4e2a\u5206\u533a)\u3002 \u8bed\u6cd5\u683c\u5f0f\uff1arestore […]<\/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\/3245"}],"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=3245"}],"version-history":[{"count":6,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3245\/revisions"}],"predecessor-version":[{"id":3515,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3245\/revisions\/3515"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}} -b<\/td> \u8bbe\u7f6e\u533a\u5757\u5927\u5c0f\uff0c\u5355\u4f4d\u662fByte<\/td><\/tr> -c<\/td> \u4e0d\u68c0\u67e5dump\u64cd\u4f5c\u7684\u5907\u4efd\u683c\u5f0f\uff0c\u4ec5\u51c6\u8bb8\u8bfb\u53d6\u4f7f\u7528\u65e7\u683c\u5f0f\u7684\u5907\u4efd\u6587\u4ef6<\/td><\/tr> -C<\/td> \u4f7f\u7528\u5bf9\u6bd4\u6a21\u5f0f\uff0c\u5c06\u5907\u4efd\u7684\u6587\u4ef6\u4e0e\u73b0\u884c\u7684\u6587\u4ef6\u76f8\u4e92\u5bf9\u6bd4<\/td><\/tr> -D<\/td> \u5141\u8bb8\u7528\u6237\u6307\u5b9a\u6587\u4ef6\u7cfb\u7edf\u7684\u540d\u79f0<\/td><\/tr> -f<\/td> <\u5907\u4efd\u6587\u4ef6> \u4ece\u6307\u5b9a\u7684\u6587\u4ef6\u4e2d\u8bfb\u53d6\u5907\u4efd\u6570\u636e\uff0c\u8fdb\u884c\u8fd8\u539f\u64cd\u4f5c<\/td><\/tr> -h<\/td> \u4ec5\u89e3\u51fa\u76ee\u5f55\u800c\u4e0d\u5305\u62ec\u4e0e\u8be5\u76ee\u5f55\u76f8\u5173\u7684\u6240\u6709\u6587\u4ef6<\/td><\/tr> -i<\/td> \u4f7f\u7528\u4e92\u52a8\u6a21\u5f0f\uff0c\u5728\u8fdb\u884c\u8fd8\u539f\u64cd\u4f5c\u65f6\uff0crestore\u6307\u4ee4\u5c06\u4f9d\u5e8f\u8be2\u95ee\u7528\u6237<\/td><\/tr> -m<\/td> \u89e3\u5f00\u7b26\u5408\u6307\u5b9a\u7684inode\u7f16\u53f7\u7684\u6587\u4ef6\u6216\u76ee\u5f55\u800c\u975e\u91c7\u7528\u6587\u4ef6\u540d\u79f0\u6307\u5b9a<\/td><\/tr> -r<\/td> \u8fdb\u884c\u8fd8\u539f\u64cd\u4f5c<\/td><\/tr> -R<\/td> \u5168\u9762\u8fd8\u539f\u6587\u4ef6\u7cfb\u7edf\u65f6\uff0c\u68c0\u67e5\u5e94\u4ece\u4f55\u5904\u5f00\u59cb\u8fdb\u884c<\/td><\/tr> -s<\/td> \u5f53\u5907\u4efd\u6570\u636e\u8d85\u8fc7\u4e00\u5377\u78c1\u5e26\u65f6\uff0c\u60a8\u53ef\u4ee5\u6307\u5b9a\u5907\u4efd\u6587\u4ef6\u7684\u7f16\u53f7<\/td><\/tr> -t<\/td> \u6307\u5b9a\u6587\u4ef6\u540d\u79f0\uff0c\u82e5\u8be5\u6587\u4ef6\u5df2\u5b58\u5728\u5907\u4efd\u6587\u4ef6\u4e2d\uff0c\u5219\u5217\u51fa\u5b83\u4eec\u7684\u540d\u79f0<\/td><\/tr> -v<\/td> \u663e\u793a\u6307\u4ee4\u6267\u884c\u8fc7\u7a0b<\/td><\/tr> -x<\/td> \u8bbe\u7f6e\u6587\u4ef6\u540d\u79f0\uff0c\u4e14\u4ece\u6307\u5b9a\u7684\u5b58\u50a8\u5a92\u4f53\u91cc\u8bfb\u5165\u5b83\u4eec\uff0c\u82e5\u8be5\u6587\u4ef6\u5df2\u5b58\u5728\u5728\u5907\u4efd\u6587\u4ef6\u4e2d\uff0c\u5219\u5c06\u5176\u8fd8\u539f\u5230\u6587\u4ef6\u7cfb\u7edf\u5185<\/td><\/tr> -y<\/td> \u4e0d\u8be2\u95ee\u4efb\u4f55\u95ee\u9898\uff0c\u4e00\u5f8b\u4ee5\u540c\u610f\u56de\u7b54\u5e76\u7ee7\u7eed\u6267\u884c\u6307\u4ee4<\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# restore\u2002-rf\u2002\/dev\/nst0\u2002<\/pre>\n\n\n\n
[root@linuxcool ~]# restore\u2002-xf\u2002\/dev\/nst0\u2002\/etc\u2002<\/pre>\n\n\n\n
[root@linuxcool ~]# restore\u2002-if\u2002\/dev\/nst0<\/pre>\n\n\n\n
[root@linuxcool ~]# restore -rfy \/dev\/nst0<\/pre>\n\n\n\n