{"id":269106,"date":"2023-04-05T20:05:13","date_gmt":"2023-04-05T12:05:13","guid":{"rendered":"https:\/\/lrxjmw.cn\/qsbflxtzwbfg.html"},"modified":"2023-04-05T20:05:13","modified_gmt":"2023-04-05T12:05:13","slug":"qsbflxtzwbfg","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/qsbflxtzwbfg.html","title":{"rendered":"\u8f7b\u677e\u5907\u4efdLinux\u7cfb\u7edf\uff0c\u638c\u63e1\u5907\u4efd\u5de5\u5177\u6280\u5de7\uff01"},"content":{"rendered":"

\u5907\u4efd\u662f\u4fdd\u62a4\u6570\u636e\u4e0d\u53d7\u635f\u574f\u548c\u4e22\u5931\u7684\u91cd\u8981\u624b\u6bb5\uff0c\u5bf9\u4e8e\u8fd0\u884c\u5728Linux<\/a>\u7cfb\u7edf<\/a>\u4e0a\u7684\u670d\u52a1\u5668\u548c\u4e2a\u4eba\u7535\u8111\u6765\u8bf4\uff0c\u5907\u4efd\u66f4\u662f\u81f3\u5173\u91cd\u8981\u3002\u672c\u6587\u5c06\u4ecb\u7ecdLinux\u7cfb\u7edf\u5907\u4efd\u5de5\u5177\u7684\u4f7f\u7528\u65b9\u6cd5\u548c\u6280\u5de7\uff0c\u8ba9\u4f60\u7684\u6570\u636e\u6c38\u4e0d\u4e22\u5931\u3002<\/p>\n

1.\u5907\u4efd\u539f\u7406\u53ca\u7b56\u7565<\/p>\n

\u5907\u4efd\u539f\u7406\u662f\u4ee5\u955c\u50cf\u6216\u589e\u91cf\u7684\u5f62\u5f0f\u5c06\u6570\u636e\u590d\u5236\u5230\u5176\u4ed6\u5b58\u50a8\u8bbe\u5907\u4e0alinux \u7cfb\u7edf\u5907\u4efd\u5de5\u5177<\/strong>\uff0c\u907f\u514d\u56e0\u786c\u4ef6\u6545\u969c\u3001\u75c5\u6bd2\u653b\u51fb\u3001\u8bef\u64cd\u4f5c\u7b49\u5bfc\u81f4\u6570\u636e\u4e22\u5931\u3002\u5907\u4efd\u7b56\u7565\u5e94\u6839\u636e\u6570\u636e\u7c7b\u578b\u3001\u91cd\u8981\u7a0b\u5ea6\u548c\u5b58\u50a8\u7a7a\u95f4\u8fdb\u884c\u5408\u7406\u89c4\u5212\u3002\u5e38\u89c1\u7684\u5907\u4efd\u7b56\u7565\u6709\u5b8c\u5168\u5907\u4efd\u3001\u589e\u91cf\u5907\u4efd\u548c\u5dee\u5f02\u5907\u4efd\u3002<\/p>\n

2. Linux\u7cfb\u7edf\u5907\u4efd\u5de5\u5177\u5206\u7c7b<\/p>\n

Linux\u7cfb\u7edf\u5907\u4efd\u5de5\u5177\u4e3b\u8981\u5206\u4e3a\u547d\u4ee4<\/a>\u884c\u5de5\u5177\u548c\u56fe\u5f62\u5316\u754c\u9762\u5de5\u5177\u4e24\u7c7b\u3002\u547d\u4ee4\u884c\u5de5\u5177\u5305\u62ectar\u3001rsync\u3001dd\u7b49\uff0c\u9002\u5408\u5728\u670d\u52a1\u5668\u4e0a\u4f7f\u7528\uff1b\u56fe\u5f62\u5316\u754c\u9762\u5de5\u5177\u5305\u62ecBack In Time\u3001Grsync\u7b49\uff0c\u9002\u5408\u5728\u4e2a\u4eba\u7535\u8111\u4e0a\u4f7f\u7528\u3002<\/p>\n

3.32e21009b78ba663cec301bc592c2101\u547d\u4ee4<\/p>\n

\u5c0f\u7c73\u7cfb\u7edf\u5de5\u5177\u6ca1\u6709\u5907\u4efd_linux\u7cfb\u7edf\u514b\u9686\u5de5\u5177_linux \u7cfb\u7edf\u5907\u4efd\u5de5\u5177<\/p>\n

tar\u547d\u4ee4\u662f\u4e00\u4e2a\u5e38\u7528\u7684\u6253\u5305\u538b\u7f29\u5de5\u5177\uff0c\u4e5f\u53ef\u4ee5\u7528\u6765\u8fdb\u884c\u6587\u4ef6\u5907\u4efd\u3002\u5b83\u53ef\u4ee5\u5c06\u591a\u4e2a\u6587\u4ef6\u6216\u76ee\u5f55\u6253\u5305\u6210\u4e00\u4e2a\u6587\u4ef6\uff0c\u5e76\u53ef\u9009\u62e9\u538b\u7f29\u65b9\u5f0f\u624b\u673alinux\u64cd\u4f5c\u7cfb\u7edf\uff0c\u652f\u6301\u591a\u79cd\u538b\u7f29\u683c\u5f0f\u3002\u4f8b\u5982\uff0c\u5c06\/home\u76ee\u5f55\u5907\u4efd\u5230\/opt\u76ee\u5f55\u4e0b\u7684backup.tar\u6587\u4ef6\u4e2d\uff1a<\/p>\n

\n

\ntar -cvf \/opt\/backup.tar \/home\n<\/pre>\n<\/p>\n

4. rsync\u547d\u4ee4<\/p>\n

rsync\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u6587\u4ef6\u540c\u6b65\u5de5\u5177\uff0c\u53ef\u4ee5\u5728\u672c\u5730\u548c\u8fdc\u7a0b\u4e3b\u673a\u4e4b\u95f4\u540c\u6b65\u6587\u4ef6\u548c\u76ee\u5f55\u3002\u5b83\u53ef\u4ee5\u5feb\u901f\u3001\u5b89\u5168\u5730\u5907\u4efd\u5927\u91cf\u6570\u636e\uff0c\u5e76\u4e14\u652f\u6301\u589e\u91cf\u5907\u4efd\u548c\u5dee\u5f02\u5907\u4efd\u3002\u4f8b\u5982\uff0c\u5c06\u672c\u5730\/home\u76ee\u5f55\u5907\u4efd\u5230\u8fdc\u7a0b\u670d\u52a1\u5668192.168.1.100\u7684\/home\/backup\u76ee\u5f55\u4e0b\uff1a<\/p>\n

\n

\nrsync -avz \/home\/ user@192.168.1.100:\/home\/backup\/\n<\/pre>\n<\/p>\n

5. dd\u547d\u4ee4<\/p>\n

dd\u547d\u4ee4\u662f\u4e00\u4e2a\u5e95\u5c42\u6570\u636e\u590d\u5236\u5de5\u5177linux \u7cfb\u7edf\u5907\u4efd\u5de5\u5177<\/strong>linux\u5b89\u88c5\uff0c\u53ef\u4ee5\u7528\u6765\u5907\u4efd\u6574\u4e2a\u78c1\u76d8\u6216\u5206\u533a\u3002\u5b83\u53ef\u4ee5\u590d\u5236\u4efb\u4f55\u7c7b\u578b\u7684\u6570\u636e\uff0c\u5305\u62ec\u4e8c\u8fdb\u5236\u6570\u636e\u548c\u6587\u672c\u6570\u636e\u3002\u4f8b\u5982\uff0c\u5c06\/dev\/sda\u78c1\u76d8\u5907\u4efd\u5230\/dev\/sdb\u78c1\u76d8\uff1a<\/p>\n

\n

\ndd if=\/dev\/sda of=\/dev\/sdb bs=4M\n<\/pre>\n<\/p>\n

6. Back In Time<\/p>\n

Back In Time\u662f\u4e00\u4e2a\u7b80\u5355\u6613\u7528\u7684\u56fe\u5f62\u5316\u754c\u9762\u5907\u4efd\u5de5\u5177\uff0c\u53ef\u4ee5\u81ea\u52a8\u8fdb\u884c\u589e\u91cf\u5907\u4efd\u548c\u5dee\u5f02\u5907\u4efd\uff0c\u5e76\u652f\u6301\u591a\u79cd\u5b58\u50a8\u8bbe\u5907\u3002\u5b83\u8fd8\u63d0\u4f9b\u4e86\u6587\u4ef6\u6062\u590d\u529f\u80fd\u548c\u5386\u53f2\u7248\u672c\u7ba1\u7406\u529f\u80fd\u3002\u4f8b\u5982\uff0c\u5c06\/home\u76ee\u5f55\u5907\u4efd\u5230\u5916\u63a5\u786c\u76d8\u4e2d\uff1a<\/p>\n

\u9996\u5148\u5b89\u88c5Back In Time\uff1a<\/p>\n

\n

\nsudo apt-get install backintime-gnome\n<\/pre>\n<\/p>\n

\u7136\u540e\u5728Back In Time\u7684\u8bbe\u7f6e\u4e2d\u9009\u62e9\u5907\u4efd\u6e90\u548c\u5907\u4efd\u76ee\u6807\uff0c\u8bbe\u7f6e\u5907\u4efd\u9891\u7387\u548c\u4fdd\u7559\u5386\u53f2\u7248\u672c\u7684\u6570\u91cf\u3002<\/p>\n

7. Grsync<\/p>\n

Grsync\u662f\u4e00\u4e2a\u57fa\u4e8ersync\u7684\u56fe\u5f62\u5316\u754c\u9762\u5de5\u5177\uff0c\u53ef\u4ee5\u5feb\u901f\u3001\u5b89\u5168\u5730\u5907\u4efd\u548c\u540c\u6b65\u6587\u4ef6\u548c\u76ee\u5f55\u3002\u5b83\u63d0\u4f9b\u4e86\u591a\u79cd\u540c\u6b65\u6a21\u5f0f\u548c\u8fc7\u6ee4\u9009\u9879\uff0c\u5e76\u652f\u6301\u591a\u79cd\u5b58\u50a8\u8bbe\u5907\u3002\u4f8b\u5982\uff0c\u5c06\/home\u76ee\u5f55\u5907\u4efd\u5230\u5916\u63a5\u786c\u76d8\u4e2d\uff1a<\/p>\n

\u9996\u5148\u5b89\u88c5Grsync\uff1a<\/p>\n

\u5c0f\u7c73\u7cfb\u7edf\u5de5\u5177\u6ca1\u6709\u5907\u4efd_linux \u7cfb\u7edf\u5907\u4efd\u5de5\u5177_linux\u7cfb\u7edf\u514b\u9686\u5de5\u5177<\/p>\n

\n

\nsudo apt-get install grsync\n<\/pre>\n<\/p>\n

\u7136\u540e\u5728Grsync\u7684\u8bbe\u7f6e\u4e2d\u9009\u62e9\u6e90\u76ee\u5f55\u548c\u76ee\u6807\u76ee\u5f55\uff0c\u8bbe\u7f6e\u540c\u6b65\u6a21\u5f0f\u548c\u8fc7\u6ee4\u9009\u9879\u3002<\/p>\n

8.\u5907\u4efd\u6062\u590d\u6d4b\u8bd5<\/p>\n

\u5907\u4efd\u6062\u590d\u6d4b\u8bd5\u662f\u9a8c\u8bc1\u5907\u4efd\u662f\u5426\u53ef\u9760\u7684\u91cd\u8981\u624b\u6bb5\u3002\u5b83\u53ef\u4ee5\u68c0\u6d4b\u5907\u4efd\u6587\u4ef6\u662f\u5426\u5b8c\u6574\u3001\u6570\u636e\u662f\u5426\u6b63\u786e\uff0c\u5e76\u4e14\u53ef\u4ee5\u5728\u6570\u636e\u4e22\u5931\u65f6\u5feb\u901f\u6062\u590d\u6570\u636e\u3002\u4f8b\u5982\uff0c\u4f7f\u7528tar\u547d\u4ee4\u8fdb\u884c\u6062\u590d\uff1a<\/p>\n

\n

\ntar -xvf \/opt\/backup.tar -C\/home\n<\/pre>\n<\/p>\n

\u603b\u7ed3<\/p>\n

\u672c\u6587\u4ecb\u7ecd\u4e86Linux\u7cfb\u7edf\u5907\u4efd\u5de5\u5177\u7684\u4f7f\u7528\u65b9\u6cd5\u548c\u6280\u5de7\uff0c\u5305\u62ec\u547d\u4ee4\u884c\u5de5\u5177\u548c\u56fe\u5f62\u5316\u754c\u9762\u5de5\u5177\u3002\u5907\u4efd\u662f\u4fdd\u62a4\u6570\u636e\u4e0d\u53d7\u635f\u574f\u548c\u4e22\u5931\u7684\u91cd\u8981\u624b\u6bb5\uff0c\u5e94\u6839\u636e\u6570\u636e\u7c7b\u578b\u3001\u91cd\u8981\u7a0b\u5ea6\u548c\u5b58\u50a8\u7a7a\u95f4\u8fdb\u884c\u5408\u7406\u89c4\u5212\uff0c\u5e76\u5b9a\u671f\u8fdb\u884c\u5907\u4efd\u6062\u590d\u6d4b\u8bd5\u3002\u5e0c\u671b\u8bfb\u8005\u901a\u8fc7\u672c\u6587\u4e86\u89e3\u5230Linux\u7cfb\u7edf\u5907\u4efd\u5de5\u5177\u7684\u4f18\u52bf\u548c\u5e94\u7528\u573a\u666f\uff0c\u66f4\u597d\u5730\u4fdd\u62a4\u81ea\u5df1\u7684\u6570\u636e\u5b89\u5168\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u672c\u6587\u5c06\u4ecb\u7ecdLinux\u7cfb\u7edf\u5907\u4efd\u5de5\u5177\u7684\u4f7f\u7528\u65b9\u6cd5\u548c\u6280\u5de7\uff0c\u8ba9\u4f60\u7684\u6570\u636e\u6c38\u4e0d\u4e22\u5931\u3002Linux\u7cfb\u7edf\u5907\u4efd\u5de5\u5177\u5206\u7c7bLinux\u7cfb\u7edf\u5907\u4efd\u5de5\u5177\u4e3b\u8981\u5206\u4e3a\u547d\u4ee4\u884c\u5de5\u5177\u548c\u56fe\u5f62\u5316\u754c\u9762\u5de5\u5177\u4e24\u7c7b\u3002Grsync\u662f\u4e00\u4e2a\u57fa\u4e8ersync\u7684\u56fe\u5f62\u5316\u754c\u9762\u5de5\u5177\uff0c\u53ef\u4ee5\u5feb\u901f\u3001\u5b89\u5168\u5730\u5907\u4efd\u548c\u540c\u6b65\u6587\u4ef6\u548c\u76ee\u5f55\u3002\u672c\u6587\u4ecb\u7ecd\u4e86Linux\u7cfb\u7edf\u5907\u4efd\u5de5\u5177\u7684\u4f7f\u7528\u65b9\u6cd5\u548c\u6280\u5de7\uff0c\u5305\u62ec\u547d\u4ee4\u884c\u5de5\u5177\u548c\u56fe\u5f62\u5316\u754c\u9762\u5de5\u5177\u3002<\/p>\n","protected":false},"author":1,"featured_media":269107,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-269106","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/269106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=269106"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/269106\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/269107"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=269106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=269106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=269106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}