{"id":82899,"date":"2023-11-04T13:47:10","date_gmt":"2023-11-04T05:47:10","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=82899"},"modified":"2023-11-04T13:47:10","modified_gmt":"2023-11-04T05:47:10","slug":"rsync-file-list","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/rsync-file-list.html","title":{"rendered":"\u4f7f\u7528rsync\u7684\u6587\u4ef6\u548c\u76ee\u5f55\u6392\u9664\u5217\u8868"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | rsync\u662f\u4e00\u4e2a\u5341\u5206\u6709\u7528\uff0c\u800c\u4e14\u5341\u5206\u6d41\u884c\u7684linux\u5de5\u5177\u3002\u5b83\u7528\u4e8e\u5907\u4efd\u548c\u6062\u590d\u6587\u4ef6\uff0c\u4e5f\u7528\u4e8e\u5bf9\u6bd4\u548c\u540c\u6b65\u6587\u4ef6\u3002\u6211\u4eec\u5df2\u7ecf\u5728\u524d\u9762\u7684\u6587\u7ae0\u8bb2\u8ff0\u4e86\u5982\u4f55\u5728Linux\u4e0b\u4f7f\u7528rsync\uff0c\u800c\u4eca\u5929\u6211\u4eec\u5c06\u589e\u52a0\u4e00\u4e9b\u66f4\u4e3a\u6709\u7528\u7684rsync\u4f7f\u7528\u6280\u5de7\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n <\/p>\n \u6392\u9664\u6587\u4ef6\u548c\u76ee\u5f55\u5217\u8868<\/strong><\/div>\n \u6709\u65f6\u5019\uff0c\u5f53\u6211\u4eec\u505a\u5927\u91cf\u540c\u6b65\u7684\u65f6\u5019\uff0c\u6211\u4eec\u53ef\u80fd\u60f3\u8981\u4ece\u540c\u6b65\u7684\u6587\u4ef6\u548c\u76ee\u5f55\u4e2d\u6392\u9664\u4e00\u4e2a\u6587\u4ef6\u548c\u76ee\u5f55\u7684\u5217\u8868\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u50cf\u8bbe\u5907\u6587\u4ef6\u548c\u67d0\u4e9b\u7cfb\u7edf\u6587\u4ef6\uff0c\u6216\u8005\u50cf\u4e34\u65f6\u6587\u4ef6\u6216\u8005\u7f13\u5b58\u6587\u4ef6\u8fd9\u7c7b\u5360\u636e\u4e0d\u5fc5\u8981\u78c1\u76d8\u7a7a\u95f4\u7684\u6587\u4ef6\u662f\u4e0d\u5408\u9002\u540c\u6b65\u7684\uff0c\u8fd9\u7c7b\u6587\u4ef6\u662f\u6211\u4eec\u9700\u8981\u6392\u9664\u7684\u3002<\/p>\n \u9996\u5148\uff0c\u8ba9\u6211\u4eec\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a\u201cexcluded\u201d\u7684\u6587\u4ef6\uff08\u5f53\u7136\uff0c\u4f60\u60f3\u53d6\u4ec0\u4e48\u540d\u90fd\u53ef\u4ee5\uff09\uff0c\u7136\u540e\u5c06\u6211\u4eec\u60f3\u8981\u6392\u9664\u7684\u6587\u4ef6\u5939\u6216\u6587\u4ef6\u5199\u5165\u8be5\u6587\u4ef6\uff0c\u4e00\u884c\u4e00\u4e2a\u3002\u5728\u6211\u4eec\u7684\u4f8b\u5b50\u4e2d\uff0c\u5982\u679c\u4f60\u60f3\u8981\u5bf9\u6839\u5206\u533a\u8fdb\u884c\u5b8c\u6574\u7684\u5907\u4efd\uff0c\u4f60\u5e94\u8be5\u6392\u9664\u4e00\u4e9b\u5728\u542f\u52a8\u65f6\u521b\u5efa\u7684\u8bbe\u5907\u76ee\u5f55\u548c\u653e\u7f6e\u4e34\u65f6\u6587\u4ef6\u7684\u76ee\u5f55\uff0c\u5217\u8868\u770b\u8d77\u6765\u50cf\u4e0b\u9762\u8fd9\u6837\uff1a $ sudo rsync -aAXhv --exclude-from=excluded \/ \/mnt\/backup<\/pre>\n |