{"id":2929,"date":"2018-08-10T20:36:21","date_gmt":"2018-08-10T12:36:21","guid":{"rendered":"http:\/\/blog.pighead.cc\/whsyu\/?p=2929"},"modified":"2018-08-10T20:36:21","modified_gmt":"2018-08-10T12:36:21","slug":"apfs-shih-yong-sin-de","status":"publish","type":"post","link":"https:\/\/blog.pighead.cc\/whsyu\/2018\/08\/10\/apfs-shih-yong-sin-de\/","title":{"rendered":"APFS \u4f7f\u7528\u5fc3\u5f97"},"content":{"rendered":"<p class=\"bb-post-separator\"><strong>[\u83ef\u8a9e, cmn-Hant-TW]  <\/strong><\/p><p>\u5f9e 10.13 High Sierra \u958b\u59cb\uff0cmacOS \u9810\u8a2d\u7684\u6a94\u6848\u7cfb\u7d71\u5c31\u5f9e HFS+ \u8b8a\u6210 APFS \u4e86\uff0c\u96d6\u7136\u8aaa\u6015\u8e29\u5730\u96f7\u6240\u4ee5\u6c92\u7b2c\u4e00\u6642\u9593\u66f4\u65b0\uff0c\u4e0d\u904e\u624b\u4e0a\u5e7e\u53f0\u66f4\u65b0\u5012\u662f\u6c92\u9047\u5230\u5565\u554f\u984c\uff0c\u66f4\u65b0\u5f8c\u7528\u8d77\u4f86\u9806\u9806\u7684\u4e5f\u6c92\u7279\u5225\u6ce8\u610f\uff0c\u4e00\u76f4\u5230\u6700\u8fd1\u5728\u79fb\u865b\u64ec\u78c1\u789f\u7684\u6642\u5019\u624d\u767c\u73fe APFS \u5176\u5be6\u662f\u883b\u5999\u7684\u6771\u897f\uff0c\u7db2\u8def\u4e0a\u627e\u4e86\u4e9b\u8cc7\u6599\uff0c\u518d\u5be6\u6e2c\u4e4b\u5f8c\u7684\u5fc3\u5f97\u5927\u81f4\u4e0a\u6709\u9019\u4e9b\uff1a<\/p>\n<ul>\n<li>APFS \u6709\u985e\u4f3c zfs snapshot \u7684 localsnapshot\uff0c\u4f3c\u4e4e\u662f\u4e00\u5b9a\u6642\u9593\u7cfb\u7d71\u5c31\u6703\u7522\u751f\u4e00\u500b\uff0c\u7136\u5f8c\u628a\u592a\u820a\u7684\u522a\u6389\uff0c\u7528<code>tmutil listlocalsnapshots \/<\/code> \u53ef\u4ee5\u5217\u51fa\u76ee\u524d\u6839\u76ee\u9304\u4e0b\u6240\u6709\u7684 localsnapshot\uff0c\u9084\u6709\u4e00\u4e9b\u64cd\u4f5c\u4f8b\u5982\u624b\u52d5\u65b0\u589e\u6216\u662f\u522a\u9664\uff0c\u4e5f\u90fd\u662f\u900f\u904e <code>tmutil<\/code> \u64cd\u4f5c<\/li>\n<li>\u7528 time machine \u5099\u4efd\u7684\u6642\u5019\uff0c\u5982\u679c\u9047\u5230 APFS \u5377\u5b97\u7684\u8a71\uff0c\u6703\u5148\u7522\u751f\u4e00\u500b localsnapshot \u518d\u958b\u59cb\u5099\u4efd (\u7d30\u7bc0\u4e0d\u78ba\u5b9a\uff0c\u4f3c\u4e4e\u9084\u6703\u6bd4\u5c0d\u524d\u4e00\u6b21\u4e0b\u7684 localsnapshot)<\/li>\n<li>\u5728 Terminal \u7528 df \u770b\u5230\u7684\u5269\u9918\u7a7a\u9593\u8ddf Finder \u4e0d\u4e00\u81f4\uff0c\u901a\u5e38\u4f86\u8b1b Finder \u770b\u5230\u7684\u6703\u6bd4\u8f03\u591a\uff0c\u56e0\u70ba Finder \u6703\u628a localsnapshot \u4f54\u7528\u7684\u7a7a\u9593\u4e5f\u7b97\u9032\u53bb\uff0c\u5be6\u969b\u4e0a\u53ef\u4ee5\u4f7f\u7528\u7684\u7a7a\u9593\u4e5f\u662f\u4ee5 Finder \u4e0b\u770b\u5230\u7684\u70ba\u6e96\uff0c\u56e0\u70ba\u5bb9\u9593\u4e0d\u5920\u7684\u6642\u5019\u7cfb\u7d71\u6703\u81ea\u5df1\u522a localsnapshot \u5410\u7a7a\u9593\u51fa\u4f86\uff0c\u5c31\u7b97\u5728 Terminal \u4e0b\u64cd\u4f5c (\u4f8b\u5982 dd \u88fd\u4f5c\u5927\u6a94\u6848) \u4e5f\u662f\u5982\u6b64\uff0c\u8981\u6240\u6709\u7684 localsnapshot \u90fd\u88ab\u522a\u5149\u9084\u6c92\u7a7a\u9593\u7684\u8a71\u7cfb\u7d71\u624d\u6703\u8b66\u544a\u7a7a\u9593\u4e0d\u8db3<\/li>\n<li>\u5728\u540c\u4e00\u500b\u5377\u5b97\u8907\u88fd\u6a94\u6848\u7684\u8a71\u4e26\u4e0d\u6703\u591a\u4f54\u7528\u7a7a\u9593\uff0c\u6240\u4ee5\u90a3\u7a2e\u5e7e\u5341GB\u7684\u5927\u6a94\u6848\u62fc\u547d\u6309\u8907\u88fd\u8cbc\u4e0a\u5f8c\uff0c\u53ef\u7528\u7a7a\u9593\u5e7e\u4e4e\u4e0d\u6703\u6e1b\u5c11\uff0c\u9019\u6709\u9ede dedup \u7684\u5473\u9053\uff0c\u4e0d\u904e APFS \u5176\u5be6\u662f\u4e0d\u652f\u63f4 dedup \u7684\uff0c\u9019\u500b\u7279\u8272\u53eb Clones\uff0c\u8a73\u60c5\u53ef\u4ee5\u53c3\u8003\u5b98\u7db2\u7684<a href=\"https:\/\/developer.apple.com\/documentation\/foundation\/file_system\/about_apple_file_system\">\u9019\u7bc7<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>[\u83ef\u8a9e, cmn-Hant-TW] \u5f9e 10.13 High Sierra \u958b\u59cb\uff0cmacOS \u9810\u8a2d\u7684\u6a94\u6848\u7cfb\u7d71\u5c31\u5f9e HFS+ \u8b8a\u6210 APFS \u4e86\uff0c\u96d6\u7136\u8aaa\u6015\u8e29\u5730\u96f7\u6240\u4ee5\u6c92\u7b2c\u4e00\u6642\u9593\u66f4\u65b0\uff0c\u4e0d\u904e\u624b\u4e0a\u5e7e\u53f0\u66f4\u65b0\u5012\u662f\u6c92\u9047\u5230\u5565\u554f\u984c\uff0c\u66f4\u65b0\u5f8c\u7528\u8d77\u4f86\u9806\u9806\u7684\u4e5f\u6c92\u7279\u5225\u6ce8\u610f\uff0c\u4e00\u76f4\u5230\u6700\u8fd1\u5728\u79fb\u865b\u64ec\u78c1\u789f\u7684\u6642\u5019\u624d\u767c\u73fe APFS \u5176\u5be6\u662f\u883b\u5999\u7684\u6771\u897f\uff0c\u7db2\u8def\u4e0a\u627e\u4e86\u4e9b\u8cc7\u6599\uff0c\u518d\u5be6\u6e2c\u4e4b\u5f8c\u7684\u5fc3\u5f97\u5927\u81f4\u4e0a\u6709\u9019\u4e9b\uff1a APFS \u6709\u985e\u4f3c zfs snapshot \u7684 localsnapshot\uff0c\u4f3c\u4e4e\u662f\u4e00\u5b9a\u6642\u9593\u7cfb\u7d71\u5c31\u6703\u7522\u751f\u4e00\u500b\uff0c\u7136\u5f8c\u628a\u592a\u820a\u7684\u522a\u6389\uff0c\u7528tmutil listlocalsnapshots \/ \u53ef\u4ee5\u5217\u51fa\u76ee\u524d\u6839\u76ee\u9304\u4e0b\u6240\u6709\u7684 localsnapshot\uff0c\u9084\u6709\u4e00\u4e9b\u64cd\u4f5c\u4f8b\u5982\u624b\u52d5\u65b0\u589e\u6216\u662f\u522a\u9664\uff0c\u4e5f\u90fd\u662f\u900f\u904e tmutil \u64cd\u4f5c \u7528 time machine \u5099\u4efd\u7684\u6642\u5019\uff0c\u5982\u679c\u9047\u5230 APFS \u5377\u5b97\u7684\u8a71\uff0c\u6703\u5148\u7522\u751f\u4e00\u500b localsnapshot \u518d\u958b\u59cb\u5099\u4efd (\u7d30\u7bc0\u4e0d\u78ba\u5b9a\uff0c\u4f3c\u4e4e\u9084\u6703\u6bd4\u5c0d\u524d\u4e00\u6b21\u4e0b\u7684 localsnapshot) \u5728 Terminal \u7528 df&hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49],"tags":[9,168],"class_list":["post-2929","post","type-post","status-publish","format-standard","hentry","category-mac","tag-apple","tag-mac-os-x"],"_links":{"self":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2929","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/comments?post=2929"}],"version-history":[{"count":1,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2929\/revisions"}],"predecessor-version":[{"id":2930,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2929\/revisions\/2930"}],"wp:attachment":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/media?parent=2929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/categories?post=2929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/tags?post=2929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}