{"id":111285,"date":"2026-09-30T21:09:23","date_gmt":"2026-09-30T13:09:23","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/111285.html"},"modified":"2026-09-30T21:09:23","modified_gmt":"2026-09-30T13:09:23","slug":"%e7%94%a8-borg-%e6%90%ad%e5%bb%ba%e9%9b%86%e4%b8%ad%e5%bc%8f%e5%a4%87%e4%bb%bd%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%9aansible-%e4%b8%8e-salt-%e5%a4%9a%e5%ae%a2%e6%88%b7%e7%ab%af%e9%83%a8%e7%bd%b2%e5%ae%9e","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/111285.html","title":{"rendered":"\u7528 Borg \u642d\u5efa\u96c6\u4e2d\u5f0f\u5907\u4efd\u670d\u52a1\u5668\uff1aAnsible \u4e0e Salt \u591a\u5ba2\u6237\u7aef\u90e8\u7f72\u5b9e\u6218"},"content":{"rendered":"<ul class=\"gcb-tag-list\">\n<li><span class=\"gcb-tag\">\u8fd0\u7ef4<\/span><\/li>\n<li><span class=\"gcb-tag\">\u5b58\u50a8<\/span><\/li>\n<\/ul>\n<h3 class=\"gcb-project-title\">\u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011borg<\/h3>\n<p class=\"gcb-project-desc\">Deduplicating archiver with compression and authenticated encryption.<\/p>\n<p>    <span class=\"gcb-project-addr-label\">\u9879\u76ee\u5730\u5740&#xff1a;<\/span><br \/>\n    <span class=\"gcb-project-addr-link\">https:\/\/gitcode.com\/gh_mirrors\/bo\/borg<\/span> <\/p>\n<p>  <span class=\"gcb-project-btn\"> <span class=\"gcb-project-btn-main\">\u70b9\u51fb\u67e5\u770b<\/span> <span class=\"gcb-project-btn-sub\">\u514d\u8d39\u4e0b\u8f7d<\/span> <\/span> <\/p>\n<p>\u672c\u6307\u5357\u4ee5 Borg \u4ed3\u5e93\u4e2d\u7684 docs\/deployment\/central-backup-server.rst \u4e3a\u57fa\u7840&#xff0c;\u5b8c\u6574\u8bb2\u89e3\u5982\u4f55\u5728\u4e00\u53f0\u5907\u4efd\u670d\u52a1\u5668\u4e0a\u4e3a\u591a\u4e2a\u5ba2\u6237\u7aef&#xff08;\u684c\u9762\u673a\u3001Web \u670d\u52a1\u5668\u3001\u5e94\u7528\u670d\u52a1\u5668&#xff09;\u63d0\u4f9b\u9694\u79bb\u7684\u4ed3\u5e93\u5b58\u50a8&#xff1a;\u5355 UNIX \u7528\u6237 &#043; borg serve &#8211;restrict-to-path \u5f3a\u5236\u8def\u5f84\u9650\u5236 &#043; authorized_keys \u5f3a\u5236\u547d\u4ee4&#xff0c;\u5e76\u7ed9\u51fa Ansible \u4e0e Salt \u4e24\u5957\u53ef\u590d\u7528\u7684\u81ea\u52a8\u5316\u90e8\u7f72\u914d\u7f6e\u3002\u8bfb\u5b8c\u672c\u6587&#xff0c;\u4f60\u5c06\u638c\u63e1\u96c6\u4e2d\u5f0f Borg \u5907\u4efd\u670d\u52a1\u7684\u76ee\u5f55\u89c4\u5212\u3001SSH \u5f3a\u5236\u547d\u4ee4\u9650\u5236\u3001\u5ba2\u6237\u7aef\u4ed3\u5e93\u521d\u59cb\u5316\u65b9\u5f0f&#xff0c;\u4ee5\u53ca\u8d8a\u6743\u8bbf\u95ee\u65f6\u9519\u8bef\u4fe1\u606f\u7684\u6392\u67e5\u65b9\u6cd5&#xff0c;\u5e76\u7406\u89e3\u5176\u80cc\u540e\u7684\u6e90\u7801\u5b9e\u73b0\u539f\u7406\u3002<\/p>\n<h3>\u9002\u7528\u524d\u63d0&#xff1a;\u672c\u6587\u65b9\u6848\u4e0e Borg 2 \u7684\u8bf4\u660e<\/h3>\n<p>\u5b98\u65b9\u6587\u6863\u660e\u786e\u6307\u51fa&#xff0c;\u672c\u793a\u4f8b\u65e9\u4e8e Borg 2&#xff0c;\u4f7f\u7528\u7684\u662f\u4f20\u7edf ssh:\/\/ \u4f20\u8f93\u65b9\u5f0f&#xff08;\u7531 borg serve \u63d0\u4f9b\u670d\u52a1&#xff09;\u548c borg init \u547d\u4ee4&#xff1a;<\/p>\n<ul>\n<li>\u5728 Borg 2 \u4e2d&#xff0c;ssh:\/\/ \u4f20\u8f93\u4ec5\u7528\u4e8e legacy borg 1.x&#xff08;v1&#xff09;\u4ed3\u5e93&#xff1b;<\/li>\n<li>\u5bf9\u4e8e\u5f53\u524d\u7248\u672c\u7684\u4ed3\u5e93&#xff0c;\u5e94\u6539\u7528 rest:\/\/ \u4ed3\u5e93&#xff1a;Borg \u901a\u8fc7 SSH \u8fde\u63a5\u5e76\u5728\u8fdc\u7a0b\u4e3b\u673a\u4e0a\u8fd0\u884c\u4e00\u4e2a borgstore REST \u670d\u52a1\u5668&#xff08;\u5373 borg serve &#8211;rest&#xff09;&#xff1b;<\/li>\n<li>\u521b\u5efa\u4ed3\u5e93\u5e94\u4f7f\u7528 borg repo-create \u800c\u975e borg init\u3002<\/li>\n<\/ul>\n<p>\u56e0\u6b64&#xff0c;\u5982\u679c\u90e8\u7f72\u7684\u662f Borg 1.x \u73af\u5883&#xff0c;\u672c\u6587\u7684 ssh:\/\/ \u793a\u4f8b\u53ef\u76f4\u63a5\u4f7f\u7528&#xff1b;\u5982\u679c\u4f7f\u7528 Borg 2 \u53ca\u66f4\u65b0\u7248\u672c&#xff0c;\u8bf7\u53c2\u8003\u4ed3\u5e93\u4e2d\u7684 hosting-repositories.rst&#xff08;\u5176\u4e2d\u7ed9\u51fa\u4e86 command&#061;&#034;borg serve &#8211;rest &#8211;restrict-to-repository &#8230;&#034;,restrict \u7684\u73b0\u4ee3\u5199\u6cd5&#xff09;\u4e0e repo-create.rst&#xff08;\u4f8b\u5982 borg repo-create &#8211;encryption&#061;aes256-ocb&#xff09;\u4f5c\u5bf9\u5e94\u8c03\u6574\u3002\u672c\u6587\u540e\u7eed\u5185\u5bb9\u4e25\u683c\u9075\u5faa\u539f\u6587\u6863&#xff0c;\u4ee5 ssh:\/\/ &#043; borg serve \u7684\u7ecf\u5178\u96c6\u4e2d\u5f0f\u670d\u52a1\u5668\u4e3a\u4f8b\u5c55\u5f00\u3002<\/p>\n<h3>\u673a\u5668\u89c4\u5212&#xff08;Machines&#xff09;<\/h3>\n<p>\u672c\u65b9\u6848\u6d89\u53ca\u591a\u53f0\u673a\u5668&#xff0c;\u6587\u6863\u4e2d\u4ee5\u5404\u81ea\u7684\u5b8c\u5168\u9650\u5b9a\u57df\u540d&#xff08;FQDN&#xff09;\u6765\u6307\u4ee3&#xff1a;<\/p>\n<ul>\n<li>\u5907\u4efd\u670d\u52a1\u5668&#xff1a;backup01.srv.local<\/li>\n<li>\u5ba2\u6237\u7aef&#xff1a;\n<ul>\n<li>John Doe \u7684\u684c\u9762\u673a&#xff1a;johndoe.clnt.local<\/li>\n<li>Web \u670d\u52a1\u5668 01&#xff1a;web01.srv.local<\/li>\n<li>\u5e94\u7528\u670d\u52a1\u5668 01&#xff1a;app01.srv.local<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u6838\u5fc3\u8bbe\u8ba1\u601d\u60f3\u662f&#xff1a;\u6240\u6709\u5ba2\u6237\u7aef\u5171\u4eab\u540c\u4e00\u4e2a\u5907\u4efd\u670d\u52a1\u5668\u7684 UNIX \u8d26\u53f7&#xff0c;\u901a\u8fc7 SSH \u516c\u94a5 &#043; \u5f3a\u5236\u547d\u4ee4\u5b9e\u73b0\u4e00\u5bf9\u4e00\u7684\u8def\u5f84\u9694\u79bb&#xff0c;\u800c\u4e0d\u662f\u4e3a\u6bcf\u4e2a\u5ba2\u6237\u7aef\u521b\u5efa\u72ec\u7acb\u7684\u7cfb\u7edf\u8d26\u53f7\u3002<\/p>\n<h3>\u5907\u4efd\u670d\u52a1\u5668\u7684\u7528\u6237\u4e0e\u7ec4&#xff08;User and group&#xff09;<\/h3>\n<p>\u4ed3\u5e93\u670d\u52a1\u5668\u5e94\u5f53\u4e3a\u6240\u6709\u5ba2\u6237\u7aef\u521b\u5efa\u4e00\u4e2a\u5355\u4e00\u7684 UNIX \u7528\u6237\u3002\u6587\u6863\u63a8\u8350\u7684\u7528\u6237\u4e0e\u7ec4\u53ca\u9644\u52a0\u8bbe\u7f6e\u5982\u4e0b&#xff1a;<\/p>\n<table>\n<tr>\u9879\u76ee\u63a8\u8350\u503c<\/tr>\n<tbody>\n<tr>\n<td>\u7528\u6237&#xff08;User&#xff09;<\/td>\n<td>backup<\/td>\n<\/tr>\n<tr>\n<td>\u7ec4&#xff08;Group&#xff09;<\/td>\n<td>backup<\/td>\n<\/tr>\n<tr>\n<td>Shell<\/td>\n<td>\/bin\/bash&#xff08;\u6216\u5176\u4ed6\u80fd\u591f\u8fd0\u884c borg serve \u547d\u4ee4\u7684 shell&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u5bb6\u76ee\u5f55&#xff08;Home&#xff09;<\/td>\n<td>\/home\/backup<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5927\u591a\u6570\u5ba2\u6237\u7aef\u5e94\u4ee5 root \u7528\u6237\u53d1\u8d77\u5907\u4efd&#xff0c;\u4ee5\u4fbf\u6355\u83b7\u5b8c\u6574\u7684\u7528\u6237\u3001\u7ec4\u548c\u6743\u9650\u4fe1\u606f&#xff08;\u4f8b\u5982\u5907\u4efd \/home \u76ee\u5f55\u65f6&#xff09;\u3002<\/p>\n<h3>\u76ee\u5f55\u5e03\u5c40&#xff08;Folders&#xff09;<\/h3>\n<p>\u5907\u4efd\u670d\u52a1\u5668\u4e0a\u5efa\u8bae\u91c7\u7528\u5982\u4e0b\u76ee\u5f55\u7ed3\u6784&#xff1a;<\/p>\n<ul>\n<li>\u7528\u6237\u5bb6\u76ee\u5f55&#xff1a;\/home\/backup<\/li>\n<li>\u4ed3\u5e93\u8def\u5f84&#xff08;\u5b58\u50a8\u6c60&#xff09;&#xff1a;\/home\/backup\/repos<\/li>\n<li>\u5404\u5ba2\u6237\u7aef\u7684\u53d7\u9650\u8def\u5f84&#xff08;\/home\/backup\/repos\/&lt;client fqdn&gt;&#xff09;&#xff1a;\n<ul>\n<li>johndoe.clnt.local \u2192 \/home\/backup\/repos\/johndoe.clnt.local<\/li>\n<li>web01.srv.local \u2192 \/home\/backup\/repos\/web01.srv.local<\/li>\n<li>app01.srv.local \u2192 \/home\/backup\/repos\/app01.srv.local<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u5373\u6bcf\u4e2a\u5ba2\u6237\u7aef\u5728\u5b58\u50a8\u6c60\u4e0b\u62e5\u6709\u4e00\u4e2a\u4ee5\u81ea\u5df1 FQDN \u547d\u540d\u7684\u72ec\u7acb\u5b50\u76ee\u5f55&#xff0c;\u6240\u6709\u4ed3\u5e93\u90fd\u4f4d\u4e8e\u8be5\u5b50\u76ee\u5f55\u5185\u90e8\u3002<\/p>\n<h3>\u8bbf\u95ee\u9650\u5236&#xff1a;borg serve &#8211;restrict-to-path<\/h3>\n<p>Borg \u901a\u8fc7\u5982\u4e0b\u547d\u4ee4\u628a\u5ba2\u6237\u7aef\u9650\u5236\u5728\u5176\u81ea\u8eab\u8def\u5f84\u5185&#xff1a;<\/p>\n<p>borg serve &#8211;restrict-to-path \/home\/backup\/repos\/&lt;client fqdn&gt;<\/p>\n<p>\u5ba2\u6237\u7aef\u80fd\u591f\u8bbf\u95ee \/home\/backup\/repos\/&lt;client fqdn&gt; \u5185\u90e8\u7684\u4efb\u4f55\u6587\u4ef6\u4e0e\u5b50\u76ee\u5f55&#xff0c;\u4f46\u65e0\u6cd5\u8bbf\u95ee\u4efb\u4f55\u5176\u4ed6\u76ee\u5f55\u3002\u5982\u679c\u9700\u8981\u5141\u8bb8\u67d0\u4e2a\u5ba2\u6237\u7aef\u8bbf\u95ee\u591a\u4e2a\u76f8\u4e92\u72ec\u7acb\u7684\u76ee\u5f55&#xff0c;\u53ef\u4ee5\u91cd\u590d\u4f20\u9012\u591a\u4e2a &#8211;restrict-to-path \u6807\u5fd7&#xff0c;\u4f8b\u5982&#xff1a;<\/p>\n<p>borg serve &#8211;restrict-to-path \/home\/backup\/repos\/&lt;client fqdn&gt; &#8211;restrict-to-path \/home\/backup\/repos\/&lt;other client fqdn&gt;<\/p>\n<p>\u8fd9\u5728\u300c\u591a\u53f0\u673a\u5668\u5c5e\u4e8e\u540c\u4e00\u4e2a\u4eba&#xff0c;\u4e14\u6b64\u4eba\u5e94\u80fd\u8bbf\u95ee\u81ea\u5df1\u6240\u6709\u673a\u5668\u7684\u5907\u4efd\u300d\u7684\u573a\u666f\u4e0b\u975e\u5e38\u6709\u7528\u3002<\/p>\n<h4>authorized_keys \u4e2d\u7684\u5f3a\u5236\u547d\u4ee4<\/h4>\n<p>\u6bcf\u4e2a\u5ba2\u6237\u7aef\u53ea\u5141\u8bb8\u4e00\u628a SSH \u516c\u94a5\u3002\u672c\u4f8b\u4e2d\u4e3a johndoe.clnt.local\u3001web01.srv.local\u3001app01.srv.local \u5404\u6dfb\u52a0\u4e00\u628a\u5bc6\u94a5&#xff0c;\u5b83\u4eec\u4ee5\u5355\u4e00 UNIX \u8d26\u53f7 backup&#064;backup01.srv.local \u8bbf\u95ee\u5907\u4efd\u3002$HOME\/.ssh\/authorized_keys \u4e2d\u7684\u6bcf\u4e00\u628a\u5bc6\u94a5\u90fd\u5e26\u6709\u5f3a\u5236\u547d\u4ee4&#xff08;forced command&#xff09;\u4e0e\u9650\u5236\u9879&#xff0c;\u683c\u5f0f\u5982\u4e0b&#xff1a;<\/p>\n<p>command&#061;&#034;cd \/home\/backup\/repos\/&lt;client fqdn&gt;;<br \/>\n         borg serve &#8211;restrict-to-path \/home\/backup\/repos\/&lt;client fqdn&gt;&#034;,<br \/>\n         restrict &lt;keytype&gt; &lt;key&gt; &lt;host&gt;<\/p>\n<p>\u6ce8\u610f&#xff1a; \u4e0a\u8ff0\u6587\u672c\u5fc5\u987b\u5199\u6210\u5355\u884c&#xff01;<\/p>\n<p>\u8be5\u5bc6\u94a5\u884c\u6dfb\u52a0\u7684\u9009\u9879\u4f9d\u6b21\u5b8c\u6210\u4e09\u4ef6\u4e8b&#xff1a;<\/p>\n<li>\u5207\u6362\u5de5\u4f5c\u76ee\u5f55&#xff1a;cd \/home\/backup\/repos\/&lt;client fqdn&gt;<\/li>\n<li>\u4ee5\u53d7\u9650\u8def\u5f84\u8fd0\u884c borg serve&#xff1a;borg serve &#8211;restrict-to-path \/home\/backup\/repos\/&lt;client fqdn&gt;<\/li>\n<li>\u9650\u5236 SSH \u529f\u80fd&#xff1a;restrict \u5173\u952e\u5b57\u7981\u7528\u4e86\u7aef\u53e3\u8f6c\u53d1\u3001Agent \u8f6c\u53d1\u3001X11 \u8f6c\u53d1\u3001PTY \u5206\u914d\u4ee5\u53ca ~\/.ssh\/rc \u7684\u6267\u884c\u7b49\u5177\u6709\u5b89\u5168\u98ce\u9669\u7684\u80fd\u529b\u3002<\/li>\n<p>\u7531\u4e8e\u6709\u4e86 cd \u547d\u4ee4&#xff0c;\u670d\u52a1\u5668\u4f1a\u81ea\u52a8\u5207\u6362\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55&#xff0c;\u5ba2\u6237\u7aef\u65e0\u9700\u77e5\u9053\u8fdc\u7a0b\u4ed3\u5e93\u7684\u7edd\u5bf9\u6216\u76f8\u5bf9\u8def\u5f84&#xff0c;\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7\u5982\u4e0b\u5f62\u5f0f\u8bbf\u95ee\u4ed3\u5e93&#xff1a;<\/p>\n<p>ssh:\/\/&lt;user&gt;&#064;&lt;host&gt;\/.\/&lt;repo&gt;<\/p>\n<p>\u6ce8\u610f&#xff1a; \u4e0a\u8ff0\u8bbe\u7f6e\u4f1a\u5ffd\u7565\u5ba2\u6237\u7aef\u63d0\u4f9b\u7684\u3001\u901a\u5e38\u4f1a\u9644\u52a0\u5230 borg serve \u547d\u4ee4\u540e\u7684\u6240\u6709\u547d\u4ee4\u884c\u53c2\u6570&#xff08;\u9664\u5c11\u6570\u767d\u540d\u5355\u9879\u5916&#xff0c;\u89c1\u4e0b\u6587\u300cSSH_ORIGINAL_COMMAND \u767d\u540d\u5355\u673a\u5236\u300d&#xff09;\u3002<\/p>\n<h4>\u6e90\u7801\u5c42\u9762\u7684\u9650\u5236\u5b9e\u73b0<\/h4>\n<p>&#8211;restrict-to-path \u7684\u5e95\u5c42\u884c\u4e3a\u53ef\u4ee5\u5728\u6e90\u7801\u4e2d\u5f97\u5230\u5370\u8bc1&#xff1a;<\/p>\n<ul>\n<li>\u53c2\u6570\u89e3\u6790\u4f4d\u4e8e serve_cmd.py&#xff1a;&#8211;restrict-to-path \u4f7f\u7528 action&#061;&#034;append&#034;&#xff0c;\u53ef\u91cd\u590d\u6307\u5b9a\u591a\u6b21&#xff0c;\u5e2e\u52a9\u6587\u672c\u660e\u786e\u8bf4\u660e\u300cAccess to all subdirectories is granted implicitly; PATH does not need to point directly to a repository\u300d&#xff08;\u6240\u6709\u5b50\u76ee\u5f55\u9690\u5f0f\u53ef\u8bbf\u95ee&#xff0c;PATH \u4e0d\u5fc5\u76f4\u63a5\u6307\u5411\u4ed3\u5e93&#xff09;\u3002\u6b64\u5916\u8fd8\u6709 &#8211;restrict-to-repository PATH&#xff0c;\u5b83\u53ea\u5141\u8bb8\u8bbf\u95ee PATH \u5904\u7684\u5355\u4e2a\u4ed3\u5e93&#xff08;\u4e0d\u5305\u542b\u5b50\u76ee\u5f55&#xff09;&#xff0c;\u4e14 PATH \u5904\u53ef\u4ee5\u662f\u4e0d\u5b58\u5728\u7684\u7a7a\u76ee\u5f55\u3001\u5141\u8bb8\u5ba2\u6237\u7aef\u5728\u90a3\u91cc\u521d\u59cb\u5316\u4ed3\u5e93\u3002<\/li>\n<li>\u8def\u5f84\u6821\u9a8c\u4f4d\u4e8e legacy\/remote.py \u7684 RepositoryServer.open()&#xff1a;\u5148\u5bf9\u8def\u5f84\u505a os.path.realpath() \u89e3\u6790&#xff0c;\u518d\u7ed9\u8def\u5f84\u8865\u4e0a\u7ed3\u5c3e\u5206\u9694\u7b26&#xff08;os.path.join(path, &#034;&#034;)&#xff09;&#xff0c;\u7136\u540e\u9010\u6761\u4e0e\u6bcf\u4e2a\u53d7\u9650\u8def\u5f84\u505a\u5e26\u7ed3\u5c3e\u659c\u6760\u7684\u524d\u7f00\u5339\u914d&#xff08;path_with_sep.startswith(restrict_to_path_with_sep)&#xff09;\u3002\u8fd9\u6837\u8bbe\u8ba1\u662f\u4e3a\u4e86\u907f\u514d &#8211;restrict-to-path \/foo \u8bef\u653e\u884c \/foobar \u8fd9\u7c7b\u8def\u5f84&#xff1b;\u5168\u90e8\u4e0d\u5339\u914d\u65f6\u629b\u51fa PathNotAllowed\u3002<\/li>\n<li>PathNotAllowed \u5f02\u5e38\u5b9a\u4e49\u4e8e helpers\/errors.py&#xff0c;\u76f8\u5173\u6d4b\u8bd5&#xff08;\u89c1 argparsing_test.py \u4e0e serve_cmd_test.py&#xff09;\u9a8c\u8bc1\u4e86\u300c\u5141\u8bb8\u8def\u5f84\u4e4b\u4e0b\u7684 backend \u53ef\u901a\u8fc7\u3001\u8def\u5f84\u4e4b\u5916\u88ab\u62d2\u7edd\u300d\u7684\u884c\u4e3a\u3002<\/li>\n<\/ul>\n<h3>\u5ba2\u6237\u7aef\u64cd\u4f5c&#xff1a;\u521d\u59cb\u5316\u4ed3\u5e93\u4e0e\u8d8a\u6743\u793a\u4f8b<\/h3>\n<h4>\u521d\u59cb\u5316\u4ed3\u5e93<\/h4>\n<p>\u5ba2\u6237\u7aef&#xff08;\u5982 John Doe \u7684\u684c\u9762\u673a&#xff09;\u521d\u59cb\u5316 pictures \u4ed3\u5e93&#xff1a;<\/p>\n<p>borg init ssh:\/\/backup&#064;backup01.srv.local\/.\/pictures<\/p>\n<p>\/.\/ \u8868\u793a\u76f8\u5bf9\u4e8e SSH \u767b\u5f55\u540e\u7684\u5de5\u4f5c\u76ee\u5f55&#xff08;\u5373\u670d\u52a1\u5668\u5df2\u901a\u8fc7\u5f3a\u5236\u547d\u4ee4 cd \u8fdb\u5165\u7684 &lt;client fqdn&gt; \u76ee\u5f55&#xff09;&#xff0c;\u8fd9\u662f\u63a8\u8350\u5199\u6cd5\u3002<\/p>\n<p>\u4e5f\u53ef\u4ee5\u4f7f\u7528\u5b8c\u6574\u8def\u5f84&#xff08;\u4ec5\u4f5c\u6f14\u793a&#xff0c;\u5b9e\u9645\u4e0d\u5efa\u8bae\u4f7f\u7528&#xff1b;\u670d\u52a1\u5668\u4f1a\u81ea\u52a8\u5207\u6362\u5de5\u4f5c\u76ee\u5f55\u5230 &lt;client fqdn&gt; \u76ee\u5f55&#xff09;&#xff1a;<\/p>\n<p>borg init ssh:\/\/backup&#064;backup01.srv.local\/home\/backup\/repos\/johndoe.clnt.local\/pictures<\/p>\n<h4>\u8d8a\u6743\u8bbf\u95ee\u88ab\u62d2\u7edd<\/h4>\n<p>\u5f53 johndoe.clnt.local \u8bd5\u56fe\u8bbf\u95ee\u5176\u9650\u5236\u4e4b\u5916\u7684\u8def\u5f84\u65f6&#xff08;\u4f8b\u5982 John Doe \u60f3\u628a\u5907\u4efd\u5199\u5230 web01 \u7684\u8def\u5f84\u4e0b&#xff09;&#xff1a;<\/p>\n<p>borg init ssh:\/\/backup&#064;backup01.srv.local\/home\/backup\/repos\/web01.srv.local\/pictures<\/p>\n<p>\u4f1a\u5f97\u5230\u5982\u4e0b\u9519\u8bef&#xff1a;<\/p>\n<p>~~~ SNIP ~~~<br \/>\nRemote: borg.remote.PathNotAllowed: \/home\/backup\/repos\/web01.srv.local\/pictures<br \/>\n~~~ SNIP ~~~<br \/>\nRepository path not allowed<\/p>\n<p>\u8fd9\u6b63\u662f RepositoryServer.open() \u4e2d\u524d\u7f00\u6821\u9a8c\u5931\u8d25\u540e\u629b\u51fa PathNotAllowed\u3001\u5e76\u7ecf\u8fdc\u7a0b RPC \u5f02\u5e38\u91cd\u5efa\u673a\u5236\u4f20\u56de\u5ba2\u6237\u7aef\u7684\u7ed3\u679c\u3002\u4ece\u4ed3\u5e93\u6587\u6863\u4e0e\u6d4b\u8bd5\u53ef\u77e5&#xff0c;PathNotAllowed \u5bf9\u5e94\u9000\u51fa\u7801 83&#xff08;\u89c1 hosting-repositories.rst \u53ca serve_cmd_test.py \u4e2d\u5bf9 PathNotAllowed.exit_mcode \u7684\u65ad\u8a00&#xff09;\u3002<\/p>\n<h3>\u7528 Ansible \u81ea\u52a8\u5316\u90e8\u7f72<\/h3>\n<p>Ansible \u8d1f\u8d23\u5b8c\u6210\u6240\u6709\u7cfb\u7edf\u7ea7\u64cd\u4f5c&#xff1a;\u6dfb\u52a0\u7528\u6237\u3001\u521b\u5efa\u76ee\u5f55\u3001\u5b89\u88c5\u4e0e\u914d\u7f6e\u8f6f\u4ef6\u3002\u539f\u6587\u7ed9\u51fa\u7684\u5b8c\u6574 playbook \u5982\u4e0b&#xff1a;<\/p>\n<p>&#8211; hosts: backup01.srv.local<br \/>\n  vars:<br \/>\n    user: backup<br \/>\n    group: backup<br \/>\n    home: \/home\/backup<br \/>\n    pool: &#034;{{ home }}\/repos&#034;<br \/>\n    auth_users:<br \/>\n      &#8211; host: johndoe.clnt.local<br \/>\n        key: &#034;{{ lookup(&#039;file&#039;, &#039;\/path\/to\/keys\/johndoe.clnt.local.pub&#039;) }}&#034;<br \/>\n      &#8211; host: web01.clnt.local<br \/>\n        key: &#034;{{ lookup(&#039;file&#039;, &#039;\/path\/to\/keys\/web01.clnt.local.pub&#039;) }}&#034;<br \/>\n      &#8211; host: app01.clnt.local<br \/>\n        key: &#034;{{ lookup(&#039;file&#039;, &#039;\/path\/to\/keys\/app01.clnt.local.pub&#039;) }}&#034;<br \/>\n  tasks:<br \/>\n  &#8211; package: name&#061;borg state&#061;present<br \/>\n  &#8211; group: name&#061;&#034;{{ group }}&#034; state&#061;present<br \/>\n  &#8211; user: name&#061;&#034;{{ user }}&#034; shell&#061;\/bin\/bash home&#061;&#034;{{ home }}&#034; createhome&#061;yes group&#061;&#034;{{ group }}&#034; groups&#061; state&#061;present<br \/>\n  &#8211; file: path&#061;&#034;{{ home }}&#034; owner&#061;&#034;{{ user }}&#034; group&#061;&#034;{{ group }}&#034; mode&#061;0700 state&#061;directory<br \/>\n  &#8211; file: path&#061;&#034;{{ home }}\/.ssh&#034; owner&#061;&#034;{{ user }}&#034; group&#061;&#034;{{ group }}&#034; mode&#061;0700 state&#061;directory<br \/>\n  &#8211; file: path&#061;&#034;{{ pool }}&#034; owner&#061;&#034;{{ user }}&#034; group&#061;&#034;{{ group }}&#034; mode&#061;0700 state&#061;directory<br \/>\n  &#8211; authorized_key: user&#061;&#034;{{ user }}&#034;<br \/>\n                    key&#061;&#034;{{ item.key }}&#034;<br \/>\n                    key_options&#061;&#039;command&#061;&#034;cd {{ pool }}\/{{ item.host }};borg serve &#8211;restrict-to-path {{ pool }}\/{{ item.host }}&#034;,restrict&#039;<br \/>\n    with_items: &#034;{{ auth_users }}&#034;<br \/>\n  &#8211; file: path&#061;&#034;{{ home }}\/.ssh\/authorized_keys&#034; owner&#061;&#034;{{ user }}&#034; group&#061;&#034;{{ group }}&#034; mode&#061;0600 state&#061;file<br \/>\n  &#8211; file: path&#061;&#034;{{ pool }}\/{{ item.host }}&#034; owner&#061;&#034;{{ user }}&#034; group&#061;&#034;{{ group }}&#034; mode&#061;0700 state&#061;directory<br \/>\n    with_items: &#034;{{ auth_users }}&#034;<\/p>\n<p>\u51e0\u4e2a\u8981\u70b9&#xff1a;<\/p>\n<ul>\n<li>\u901a\u8fc7\u53d8\u91cf pool &#061; &#034;{{ home }}\/repos&#034; \u7edf\u4e00\u7ba1\u7406\u5b58\u50a8\u6c60\u8def\u5f84&#xff0c;auth_users \u5217\u8868\u4ee5\u300c\u4e3b\u673a\u540d &#043; \u516c\u94a5\u6587\u4ef6\u300d\u7684\u5f62\u5f0f\u58f0\u660e\u5ba2\u6237\u7aef&#xff1b;<\/li>\n<li>authorized_key \u6a21\u5757\u7684 key_options \u4e2d\u62fc\u63a5\u51fa\u4e0e\u624b\u52a8\u914d\u7f6e\u5b8c\u5168\u4e00\u81f4\u7684\u5f3a\u5236\u547d\u4ee4&#xff1a;command&#061;&#034;cd {{ pool }}\/{{ item.host }};borg serve &#8211;restrict-to-path {{ pool }}\/{{ item.host }}&#034;,restrict&#xff1b;<\/li>\n<li>\u6ce8\u610f authorized_keys \u4e0e\u5404\u5ba2\u6237\u7aef\u76ee\u5f55\u90fd\u4ee5 0700\/0600 \u6743\u9650\u6536\u655b&#xff0c;SSH \u5bf9\u8fd9\u4e24\u4e2a\u4f4d\u7f6e\u7684\u6743\u9650\u6709\u4e25\u683c\u8981\u6c42&#xff1b;<\/li>\n<li>playbook \u4e2d johndoe.clnt.local \u7684 auth_users \u4f7f\u7528\u4e86 .clnt&#xff0c;\u800c\u6587\u6863\u300cMachines\u300d\u4e00\u8282\u4e2d\u4e3a .clnt&#xff0c;\u4e24\u8005\u5728\u539f\u6587\u4e2d\u5373\u5b58\u5728\u7ec6\u5fae\u4e0d\u4e00\u81f4&#xff0c;\u5b9e\u9645\u4f7f\u7528\u65f6\u8bf7\u7edf\u4e00\u4e3a\u4f60\u73af\u5883\u4e2d\u771f\u5b9e\u7684 FQDN\u3002<\/li>\n<\/ul>\n<h3>\u7528 Salt \u81ea\u52a8\u5316\u90e8\u7f72<\/h3>\n<p>\u4ee5\u4e0b\u662f\u4e0e\u4e4b\u7b49\u4ef7\u7684 Salt \u914d\u7f6e&#xff0c;\u8fd0\u884c\u4e8e Debian \u7cfb\u7edf&#xff1a;<\/p>\n<p>Install borg backup from pip:<br \/>\n  pkg.installed:<br \/>\n    &#8211; pkgs:<br \/>\n      &#8211; python3<br \/>\n      &#8211; python3-dev<br \/>\n      &#8211; python3-pip<br \/>\n      &#8211; python-virtualenv<br \/>\n      &#8211; libssl-dev<br \/>\n      &#8211; openssl<br \/>\n      &#8211; libacl1-dev<br \/>\n      &#8211; libacl1<br \/>\n      &#8211; build-essential<br \/>\n      &#8211; libfuse-dev<br \/>\n      &#8211; fuse<br \/>\n      &#8211; pkg-config<br \/>\n  pip.installed:<br \/>\n    &#8211; pkgs: [&#034;borgbackup&#034;]<br \/>\n    &#8211; bin_env: \/usr\/bin\/pip3<\/p>\n<p>Setup backup user:<br \/>\n  user.present:<br \/>\n    &#8211; name: backup<br \/>\n    &#8211; fullname: Backup User<br \/>\n    &#8211; home: \/home\/backup<br \/>\n    &#8211; shell: \/bin\/bash<br \/>\n# CAUTION!<br \/>\n# If you change the ssh command&#061; option below, it won&#039;t necessarily get pushed to the backup<br \/>\n# server correctly unless you delete the ~\/.ssh\/authorized_keys file and re-create it!<br \/>\n{% for host in backupclients %}<br \/>\nGive backup access to {{host}}:<br \/>\n  ssh_auth.present:<br \/>\n    &#8211; user: backup<br \/>\n    &#8211; source: salt:\/\/conf\/ssh-pubkeys\/{{host}}-backup.id_ecdsa.pub<br \/>\n    &#8211; options:<br \/>\n      &#8211; command&#061;&#034;cd \/home\/backup\/repos\/{{host}}; borg serve &#8211;restrict-to-path \/home\/backup\/repos\/{{host}}&#034;<br \/>\n      &#8211; restrict<br \/>\n{% endfor %}<\/p>\n<p>\u8981\u70b9\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>Salt \u65b9\u6848\u5728 Debian \u4e0a\u901a\u8fc7 pkg.installed \u5b89\u88c5 Python \u53ca\u6784\u5efa\u4f9d\u8d56&#xff08;\u542b libfuse-dev\/fuse \u7528\u4e8e\u6302\u8f7d\u3001libacl1-dev\/libacl1 \u7528\u4e8e ACL \u652f\u6301&#xff09;&#xff0c;\u518d\u7ecf pip.installed \u5b89\u88c5 borgbackup \u5305&#xff1b;<\/li>\n<li>\u4f7f\u7528 user.present \u521b\u5efa backup \u7528\u6237&#xff08;\u5bb6\u76ee\u5f55 \/home\/backup\u3001shell \/bin\/bash&#xff09;&#xff1b;<\/li>\n<li>{% for host in backupclients %} \u5faa\u73af\u4e3a\u6bcf\u4e2a\u5ba2\u6237\u7aef\u4ece salt:\/\/conf\/ssh-pubkeys\/{{host}}-backup.id_ecdsa.pub \u62c9\u53d6\u516c\u94a5&#xff0c;\u5e76\u5199\u5165\u4e0e Ansible \u7248\u672c\u76f8\u540c\u7684\u5f3a\u5236\u547d\u4ee4\u4e0e restrict \u9650\u5236&#xff1b;<\/li>\n<li>\u6ce8\u610f\u6ce8\u91ca\u4e2d\u7684\u8b66\u544a&#xff1a;\u5982\u679c\u4fee\u6539\u4e86 ssh command&#061; \u9009\u9879&#xff0c;\u9664\u975e\u5148\u5220\u9664 ~\/.ssh\/authorized_keys \u6587\u4ef6\u518d\u91cd\u65b0\u751f\u6210&#xff0c;\u5426\u5219\u6539\u52a8\u4e0d\u4e00\u5b9a\u4f1a\u6b63\u786e\u63a8\u9001\u5230\u5907\u4efd\u670d\u52a1\u5668&#xff08;Salt \u7684 ssh_auth.present \u5bf9\u65e2\u6709\u6388\u6743\u884c\u7684\u66f4\u65b0\u884c\u4e3a\u6240\u81f4&#xff09;\u3002<\/li>\n<\/ul>\n<h3>\u589e\u5f3a\u65b9\u5411&#xff08;Enhancements&#xff09;<\/h3>\n<p>\u539f\u6587\u6863\u6307\u51fa&#xff0c;\u4e0a\u8ff0\u65b9\u6848\u662f\u4e00\u4e2a\u7b80\u5355\u4e14\u6709\u6548\u7684\u914d\u7f6e&#xff0c;\u4f46\u4e5f\u53ef\u4ee5\u8fdb\u4e00\u6b65\u589e\u5f3a&#xff0c;\u4ee5\u652f\u6301&#xff08;\u6709\u9650\u96c6\u5408\u7684&#xff09;\u5ba2\u6237\u7aef\u63d0\u4f9b\u7684\u547d\u4ee4&#xff1a;<\/p>\n<ul>\n<li>\u53ef\u4ee5\u7f16\u5199\u4e00\u4e2a\u7528\u4e8e\u542f\u52a8 borg serve \u7684\u5305\u88c5\u811a\u672c&#xff08;wrapper&#xff09;&#xff1b;<\/li>\n<li>\u6216\u8005\u589e\u5f3a Borg \u81ea\u8eab\u2014\u2014\u901a\u8fc7\u68c0\u6d4b SSH_ORIGINAL_COMMAND \u73af\u5883\u53d8\u91cf\u6765\u81ea\u52a8\u8bc6\u522b\u5b83\u662f\u5426\u8fd0\u884c\u5728 SSH \u4e4b\u4e0b\u3002<\/li>\n<\/ul>\n<p>\u5982\u679c Borg \u5185\u7f6e\u4e86 SSH \u81ea\u52a8\u68c0\u6d4b&#xff0c;\u5219\u65e0\u9700\u5916\u90e8\u5305\u88c5\u811a\u672c&#xff0c;\u4e5f\u65e0\u9700\u90e8\u7f72\u5176\u4ed6\u89e3\u91ca\u5668\u6216\u5e94\u7528\u7a0b\u5e8f\u3002\u8fd9\u4e00\u70b9\u5728\u5f53\u524d\u4ed3\u5e93\u4e2d\u5df2\u7ecf\u90e8\u5206\u5b9e\u73b0&#xff1a;borg serve \u5bf9 ssh \u5f3a\u5236\u547d\u4ee4\u6709\u4e13\u95e8\u652f\u6301\u2014\u2014\u5f53\u73af\u5883\u53d8\u91cf SSH_ORIGINAL_COMMAND \u5b58\u5728\u65f6&#xff0c;\u5b83\u4f1a\u5ffd\u7565\u5ba2\u6237\u7aef\u547d\u4ee4\u884c\u4e2d\u9664\u767d\u540d\u5355\u5916\u7684\u9009\u9879&#xff0c;\u53ea\u4ece\u8be5\u53d8\u91cf\u53d6\u503c&#xff08;\u8be6\u89c1 serve.rst&#xff09;\u3002<\/p>\n<h4>SSH_ORIGINAL_COMMAND \u767d\u540d\u5355\u673a\u5236<\/h4>\n<p>\u4ece\u4ed3\u5e93\u6587\u6863 serve.rst \u53ef\u4ee5\u786e\u8ba4 borg serve \u7684\u5f3a\u5236\u547d\u4ee4\u7ec6\u8282&#xff1a;<\/p>\n<ul>\n<li>\u5ba2\u6237\u7aef\u53d1\u9001\u7684\u539f\u59cb\u547d\u4ee4\u884c\u4f1a\u901a\u8fc7 SSH_ORIGINAL_COMMAND \u4f20\u7ed9\u670d\u52a1\u5668&#xff0c;borg serve \u4ec5\u63a5\u53d7\u5176\u4e2d\u7684\u53d7\u63a7\u767d\u540d\u5355\u9009\u9879&#xff1a;\n<ul>\n<li>\u63a7\u5236\u65e5\u5fd7\u7ea7\u522b\u4e0e\u8c03\u8bd5\u4e3b\u9898\u7684\u9009\u9879&#xff0c;\u5982 &#8211;verbose\u3001&#8211;info\u3001&#8211;debug\u3001&#8211;debug-topic \u7b49&#xff1b;<\/li>\n<li>&#8211;lock-wait&#xff1a;\u5141\u8bb8\u5ba2\u6237\u7aef\u63a7\u5236\u7b49\u5f85\u9501\u7684\u8d85\u65f6\u65f6\u95f4&#xff1b;<\/li>\n<li>&#8211;backend&#xff1a;\u5141\u8bb8\u5ba2\u6237\u7aef\u9009\u62e9\u5177\u4f53\u8981\u4f7f\u7528\u7684\u4ed3\u5e93&#xff08;\u914d\u5408 borg serve &#8211;rest \u4f7f\u7528&#xff09;&#xff1b;\u5f3a\u5236\u547d\u4ee4\u59cb\u7ec8\u9489\u4f4f\u9650\u5236\u2014\u2014\u5ba2\u6237\u7aef\u7ed9\u51fa\u7684 backend \u4f1a\u88ab\u6821\u9a8c\u662f\u5426\u843d\u5728 &#8211;restrict-to-path \/ &#8211;restrict-to-repository \u5141\u8bb8\u7684\u8303\u56f4\u5185\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u660e\u786e\u4e0d\u5728\u767d\u540d\u5355\u4e2d\u7684\u6709&#xff1a;&#8211;rest&#xff08;\u5f3a\u5236\u547d\u4ee4\u9489\u4f4f\u6a21\u5f0f&#xff1a;\u662f\u5f53\u524d rest:\/\/ \u4ed3\u5e93\u8fd8\u662f legacy Borg 1.x \u4ed3\u5e93&#xff09;\u3001&#8211;restrict-to-path\u3001&#8211;restrict-to-repository\u3001&#8211;umask\u3001&#8211;permissions\u3002<\/li>\n<li>\u5ba2\u6237\u7aef\u539f\u547d\u4ee4\u4e2d\u51fa\u73b0\u7684\u73af\u5883\u53d8\u91cf&#xff08;\u5982 BORG_XXX&#xff09;\u4e0d\u4f1a\u88ab\u89e3\u91ca&#xff0c;\u800c\u662f\u88ab\u5ffd\u7565&#xff1b;\u5982\u9700\u5728 borg serve \u4fa7\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf&#xff0c;\u5fc5\u987b\u5199\u5728\u7cfb\u7edf\u7ea7\u4f4d\u7f6e&#xff08;\u5982 \/etc\/environment&#xff09;\u6216\u5f3a\u5236\u547d\u4ee4\u672c\u8eab\u4e2d\u3002<\/li>\n<\/ul>\n<p>\u56e0\u6b64&#xff0c;\u5373\u4fbf\u5ba2\u6237\u7aef\u8bd5\u56fe\u5728\u547d\u4ee4\u884c\u4e2d\u9644\u52a0\u989d\u5916\u7684 borg serve \u53c2\u6570&#xff0c;\u5176\u6a21\u5f0f\u4e0e\u8def\u5f84\u9650\u5236\u4e5f\u59cb\u7ec8\u7531 authorized_keys \u4e2d\u7684\u5f3a\u5236\u547d\u4ee4\u51b3\u5b9a\u2014\u2014\u8fd9\u6b63\u662f\u672c\u96c6\u4e2d\u5f0f\u5907\u4efd\u65b9\u6848\u5b89\u5168\u6027\u7684\u6838\u5fc3\u3002<\/p>\n<h3>\u751f\u4ea7\u73af\u5883\u52a0\u56fa\u5efa\u8bae<\/h3>\n<p>\u57fa\u4e8e\u539f\u6587\u6863\u5e76\u7ed3\u5408\u4f5c\u8005\u540e\u7eed\u6587\u6863\u4e0e\u6d4b\u8bd5&#xff0c;\u4ee5\u4e0b\u52a0\u56fa\u9879\u5f3a\u70c8\u5efa\u8bae\u5728\u90e8\u7f72\u96c6\u4e2d\u5f0f\u5907\u4efd\u670d\u52a1\u5668\u65f6\u4e00\u5e76\u843d\u5b9e&#xff1a;<\/p>\n<li>SSH \u4fdd\u6d3b\u914d\u7f6e&#xff1a;borg serve \u7684 stdin\/stdout\/stderr \u4e0e\u670d\u52a1\u5668\u7aef sshd \u8fdb\u7a0b\u76f8\u8fde\u3002\u7f51\u7edc\u4e2d\u65ad\u65f6 sshd \u53ef\u80fd\u957f\u65f6\u95f4\u65e0\u6cd5\u611f\u77e5\u5ba2\u6237\u7aef\u5df2\u65ad\u5f00&#xff0c;\u5bfc\u81f4 borg serve \u4e00\u76f4\u6301\u6709\u4ed3\u5e93\u9501&#xff0c;\u540e\u7eed\u64cd\u4f5c\u62a5 Failed to create\/acquire the lock\u3002\u89e3\u51b3\u529e\u6cd5&#xff1a;\n<ul>\n<li>\u5ba2\u6237\u7aef ~\/.ssh\/config \u6216 \/etc\/ssh\/ssh_config \u4e2d&#xff1a; Host backupserver<br \/>\n        ServerAliveInterval 10<br \/>\n        ServerAliveCountMax 30\n <\/li>\n<li>\u670d\u52a1\u5668\u7aef \/etc\/ssh\/sshd_config \u4e2d&#xff1a; ClientAliveInterval 10<br \/>\nClientAliveCountMax 30\n <\/li>\n<li>\u5ba2\u6237\u7aef\u6bcf 10 \u79d2\u53d1\u9001\u4e00\u6b21\u4fdd\u6d3b&#xff0c;30 \u6b21\u65e0\u54cd\u5e94&#xff08;\u7ea6 300 \u79d2&#xff09;\u540e\u7ec8\u6b62\u8fde\u63a5&#xff0c;borg serve \u968f\u4e4b\u4f18\u96c5\u9000\u51fa\u5e76\u91ca\u653e\u9501&#xff1b;\u914d\u5408 &#8211;lock-wait 600 \u53ef\u7559\u51fa\u5145\u8db3\u7b49\u5f85\u65f6\u95f4\u3002\u8d85\u65f6\u6570\u503c\u53ef\u6309\u5b9e\u9645\u73af\u5883\u8c03\u6574\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u6700\u5c0f\u5316 Shell&#xff1a;\u5f53\u5ba2\u6237\u7aef\u4e0d\u53ef\u4fe1\u65f6&#xff0c;\u5efa\u8bae\u5c06\u5907\u4efd\u7528\u6237 shell \u6539\u4e3a\u7cbe\u7b80\u5b9e\u73b0&#xff08;chsh -s \/bin\/sh BORGUSER&#xff09;\u3002OpenSSH \u4ee5 &#034;$SHELL&#034; -c &#034;$COMMAND&#034; \u6267\u884c authorized_keys \u4e2d\u914d\u7f6e\u7684\u547d\u4ee4&#xff0c;\u4f7f\u7528\u7cbe\u7b80 shell \u53ef\u663e\u8457\u7f29\u5c0f\u653b\u51fb\u9762\u3002\u6ce8\u610f \/bin\/sh \u53ea\u662f\u793a\u4f8b&#xff0c;\u5e76\u4e0d\u4e00\u5b9a\u662f\u300c\u7cbe\u7b80\u5b9e\u73b0\u300d\u3002<\/li>\n<li>\u6743\u9650\u6536\u7d27&#xff1a;\u5982 Ansible playbook \u6240\u793a&#xff0c;\/home\/backup\u3001\/home\/backup\/.ssh\u3001\/home\/backup\/repos \u53ca\u6bcf\u4e2a\u5ba2\u6237\u7aef\u76ee\u5f55\u5747\u8bbe\u4e3a 0700&#xff0c;authorized_keys \u8bbe\u4e3a 0600&#xff0c;\u8fd9\u662f SSH \u6b63\u5e38\u8fd0\u884c\u6240\u5fc5\u9700\u7684\u4e25\u683c\u6743\u9650\u3002<\/li>\n<li>\u4f9d\u8d56\u6587\u6863&#xff1a;\u672c\u65b9\u6848\u5728 Borg 2 \u4e0b\u7684\u7b49\u4ef7\u5b9e\u73b0&#xff08;&#8211;rest &#043; &#8211;restrict-to-repository &#043; borg repo-create&#xff09;\u8bf7\u53c2\u9605 hosting-repositories.rst&#xff1b;borg serve \u53c2\u6570\u5168\u8868\u89c1 serve.rst.inc&#xff1b;\u5b89\u5168\u6a21\u578b\u76f8\u5173\u8ba8\u8bba\u89c1 internals\/security.rst\u3002<\/li>\n<h3>\u53c2\u8003<\/h3>\n<ul>\n<li>\u672c\u90e8\u7f72\u65b9\u6848\u539f\u6587&#xff1a;central-backup-server.rst<\/li>\n<li>borg serve \u7528\u6cd5\u4e0e SSH \u5f3a\u5236\u547d\u4ee4\u767d\u540d\u5355&#xff1a;serve.rst<\/li>\n<li>Borg 2 \u7684\u4ed3\u5e93\u6258\u7ba1\u65b9\u6848&#xff08;&#8211;rest \u6a21\u5f0f&#xff09;&#xff1a;hosting-repositories.rst<\/li>\n<li>\u4ed3\u5e93\u521b\u5efa\u547d\u4ee4 borg repo-create&#xff1a;repo-create.rst<\/li>\n<li>serve \u5b50\u547d\u4ee4\u5b9e\u73b0\u4e0e &#8211;restrict-to-path\/&#8211;restrict-to-repository \u89e3\u6790&#xff1a;serve_cmd.py<\/li>\n<li>\u8def\u5f84\u9650\u5236\u524d\u7f00\u6821\u9a8c\u5b9e\u73b0&#xff08;RepositoryServer.open&#xff09;&#xff1a;legacy\/remote.py<\/li>\n<li>\u76f8\u5173\u6d4b\u8bd5&#xff1a;serve_cmd_test.py\u3001argparsing_test.py<\/li>\n<\/ul>\n<p>  <img loading=\"lazy\" decoding=\"async\" class=\"gcb-icon-like\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260930130921-6abd0a01e93fc.svg\" alt=\"\" width=\"16\" height=\"16\" \/> <span class=\"gcb-like-text\">\u8d5e<\/span>  <\/p>\n<p>   <span class=\"gcb-share-text\">\u5206\u4eab<\/span>  <\/p>\n<ul class=\"gcb-tag-list\">\n<li><span class=\"gcb-tag\">\u8fd0\u7ef4<\/span><\/li>\n<li><span class=\"gcb-tag\">\u5b58\u50a8<\/span><\/li>\n<\/ul>\n<h3 class=\"gcb-project-title\">\u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011borg<\/h3>\n<p class=\"gcb-project-desc\">Deduplicating archiver with compression and authenticated encryption.<\/p>\n<p>    <span class=\"gcb-project-addr-label\">\u9879\u76ee\u5730\u5740&#xff1a;<\/span><br \/>\n    <span class=\"gcb-project-addr-link\">https:\/\/gitcode.com\/gh_mirrors\/bo\/borg<\/span> <\/p>\n<p>  <span class=\"gcb-project-btn\"> <span class=\"gcb-project-btn-main\">\u70b9\u51fb\u67e5\u770b<\/span> <span class=\"gcb-project-btn-sub\">\u514d\u8d39\u4e0b\u8f7d<\/span> <\/span> <\/p>\n<h4 class=\"gcb-related-title\">\u76f8\u5173\u63a8\u8350<\/h4>\n<ul class=\"gcb-related-list\">\n<li class=\"gcb-related-item\">\n<h5 class=\"gcb-related-item-title\">\u90e8\u7f72\u4f01\u4e1a\u7ea7\u4e2d\u592e\u5907\u4efd\u670d\u52a1\u5668&#xff1a;BorgBackup\u591a\u5ba2\u6237\u7aef\u96c6\u4e2d\u5f0f\u5907\u4efd\u5b8c\u6574\u5b9e\u6218<\/h5>\n<p class=\"gcb-related-item-desc\">\u90e8\u7f72\u4f01\u4e1a\u7ea7\u4e2d\u592e\u5907\u4efd\u670d\u52a1\u5668&#xff1a;BorgBackup\u591a\u5ba2\u6237\u7aef\u96c6\u4e2d\u5f0f\u5907\u4efd\u5b8c\u6574\u5b9e\u6218 BorgBackup \u662f\u4e00\u6b3e\u652f\u6301\u538b\u7f29\u4e0e\u8ba4\u8bc1\u52a0\u5bc6\u7684\u53bb\u91cd\u5f52\u6863\u5de5\u5177&#xff0c;\u800c \u4e2d\u592e\u5907\u4efd\u670d\u52a1\u5668 \u6b63\u662f<\/p>\n<p>     <span class=\"gcb-tag\">\u8fd0\u7ef4<\/span><br \/>\n     <span class=\"gcb-tag\">\u5b58\u50a8<\/span>\n      <\/li>\n<li class=\"gcb-related-item\">\n<h5 class=\"gcb-related-item-title\">Hello \u7b97\u6cd5&#xff1a;\u5b50\u96c6\u548c\u95ee\u9898\u7684\u56de\u6eaf\u526a\u679d\u8be6\u89e3\u2014\u2014\u4ece\u91cd\u590d\u5b50\u96c6\u6210\u56e0\u5230\u56db\u79cd\u526a\u679d\u7b56\u7565<\/h5>\n<p class=\"gcb-related-item-desc\">Hello \u7b97\u6cd5&#xff1a;\u5b50\u96c6\u548c\u95ee\u9898\u7684\u56de\u6eaf\u526a\u679d\u8be6\u89e3\u2014\u2014\u4ece\u91cd\u590d\u5b50\u96c6\u6210\u56e0\u5230\u56db\u79cd\u526a\u679d\u7b56\u7565 \u672c\u6587\u57fa\u4e8e\u300aHello \u7b97\u6cd5\u300b\u56de\u6eaf\u6e90\u4e2d\u7684\u300c\u5b50\u96c6\u548c\u95ee\u9898\u300d\u7ae0\u8282&#xff08; subset_sum_p<\/p>\n<p>     <span class=\"gcb-tag\">\u8fd0\u7ef4<\/span><br \/>\n     <span class=\"gcb-tag\">\u5b58\u50a8<\/span>\n      <\/li>\n<li class=\"gcb-related-item\">\n<h5 class=\"gcb-related-item-title\">kubeasz \u96c6\u7fa4\u65f6\u95f4\u540c\u6b65\u5b9e\u6218&#xff1a;\u7528 chrony \u642d\u5efa NTP \u670d\u52a1\u7aef\u4e0e\u5ba2\u6237\u7aef<\/h5>\n<p class=\"gcb-related-item-desc\">kubeasz \u96c6\u7fa4\u65f6\u95f4\u540c\u6b65\u5b9e\u6218&#xff1a;\u7528 chrony \u642d\u5efa NTP \u670d\u52a1\u7aef\u4e0e\u5ba2\u6237\u7aef \u5bfc\u8bfb \u5728\u5b89\u88c5 Kubernetes \u96c6\u7fa4\u4e4b\u524d&#xff0c;\u5fc5\u987b\u786e\u4fdd\u6240\u6709\u8282\u70b9\u65f6\u95f4\u540c\u6b65\u2014\u2014\u8bc1\u4e66<\/p>\n<p>     <span class=\"gcb-tag\">\u4e91\u539f\u751f<\/span><br \/>\n     <span class=\"gcb-tag\">\u96c6\u7fa4\u7ba1\u7406<\/span><br \/>\n     <span class=\"gcb-tag\">\u8fd0\u7ef4<\/span>\n      <\/li>\n<\/ul>\n<p>  <span class=\"gcb-prev-next-label\">\u4e0a\u4e00\u7bc7&#xff1a;<\/span><br \/>\n   Vue\u53f3\u952e\u83dc\u5355\u7ec4\u4ef6v-contextmenu\u5b8c\u5168\u4f7f\u7528\u6307\u5357&#xff1a;\u6253\u9020\u6781\u81f4\u7528\u6237\u4f53\u9a8c\u7684\u7ec8\u6781\u6559\u7a0b <\/p>\n<p>  <span class=\"gcb-prev-next-label\">\u4e0b\u4e00\u7bc7&#xff1a;<\/span><br \/>\n  \u5982\u4f55\u7528 Selenium Grid 4 \u7684 relay \u529f\u80fd\u628a\u591a\u4e2a Appium \u670d\u52a1\u5668\u63a5\u5165\u540c\u4e00\u4e2a Hub&#xff1f; <\/p>\n<p>\u521b\u4f5c\u58f0\u660e\uff1a\u672c\u6587\u90e8\u5206\u5185\u5bb9\u7531AI\u8f85\u52a9\u751f\u6210\uff08AIGC\uff09\uff0c\u4ec5\u4f9b\u53c2\u8003<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd0\u7ef4\u5b58\u50a8 \u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011borg Deduplicating archiver with compression and authenticated encryption. \u9879\u76ee\u5730\u5740&#xff1a; https:\/\/gitcode.com\/gh_mirrors\/bo\/borg \u70b9\u51fb\u67e5\u770b \u514d\u8d39\u4e0b\u8f7d  \u672c\u6307\u5357\u4ee5 Borg \u4ed3\u5e93\u4e2d\u7684 docs\/deployment\/central-backup-server.rst \u4e3a\u57fa\u7840&#xff0c;\u5b8c\u6574\u8bb2\u89e3\u5982\u4f55\u5728\u4e00\u53f0\u5907\u4efd\u670d\u52a1\u5668\u4e0a\u4e3a\u591a\u4e2a\u5ba2\u6237\u7aef<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"class_list":["post-111285","post","type-post","status-publish","format-standard","hentry","category-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7528 Borg \u642d\u5efa\u96c6\u4e2d\u5f0f\u5907\u4efd\u670d\u52a1\u5668\uff1aAnsible \u4e0e Salt \u591a\u5ba2\u6237\u7aef\u90e8\u7f72\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/111285.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7528 Borg \u642d\u5efa\u96c6\u4e2d\u5f0f\u5907\u4efd\u670d\u52a1\u5668\uff1aAnsible \u4e0e Salt \u591a\u5ba2\u6237\u7aef\u90e8\u7f72\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u8fd0\u7ef4\u5b58\u50a8 \u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011borg Deduplicating archiver with compression and authenticated encryption. \u9879\u76ee\u5730\u5740&#xff1a; https:\/\/gitcode.com\/gh_mirrors\/bo\/borg \u70b9\u51fb\u67e5\u770b \u514d\u8d39\u4e0b\u8f7d \u672c\u6307\u5357\u4ee5 Borg \u4ed3\u5e93\u4e2d\u7684 docs\/deployment\/central-backup-server.rst \u4e3a\u57fa\u7840&#xff0c;\u5b8c\u6574\u8bb2\u89e3\u5982\u4f55\u5728\u4e00\u53f0\u5907\u4efd\u670d\u52a1\u5668\u4e0a\u4e3a\u591a\u4e2a\u5ba2\u6237\u7aef\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/111285.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-30T13:09:23+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260930130921-6abd0a01e93fc.svg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/111285.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/111285.html\",\"name\":\"\u7528 Borg \u642d\u5efa\u96c6\u4e2d\u5f0f\u5907\u4efd\u670d\u52a1\u5668\uff1aAnsible \u4e0e Salt \u591a\u5ba2\u6237\u7aef\u90e8\u7f72\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-30T13:09:23+00:00\",\"dateModified\":\"2026-09-30T13:09:23+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/111285.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/111285.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/111285.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7528 Borg \u642d\u5efa\u96c6\u4e2d\u5f0f\u5907\u4efd\u670d\u52a1\u5668\uff1aAnsible \u4e0e Salt \u591a\u5ba2\u6237\u7aef\u90e8\u7f72\u5b9e\u6218\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u7528 Borg \u642d\u5efa\u96c6\u4e2d\u5f0f\u5907\u4efd\u670d\u52a1\u5668\uff1aAnsible \u4e0e Salt \u591a\u5ba2\u6237\u7aef\u90e8\u7f72\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/111285.html","og_locale":"zh_CN","og_type":"article","og_title":"\u7528 Borg \u642d\u5efa\u96c6\u4e2d\u5f0f\u5907\u4efd\u670d\u52a1\u5668\uff1aAnsible \u4e0e Salt \u591a\u5ba2\u6237\u7aef\u90e8\u7f72\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u8fd0\u7ef4\u5b58\u50a8 \u3010\u514d\u8d39\u4e0b\u8f7d\u94fe\u63a5\u3011borg Deduplicating archiver with compression and authenticated encryption. \u9879\u76ee\u5730\u5740&#xff1a; https:\/\/gitcode.com\/gh_mirrors\/bo\/borg \u70b9\u51fb\u67e5\u770b \u514d\u8d39\u4e0b\u8f7d \u672c\u6307\u5357\u4ee5 Borg \u4ed3\u5e93\u4e2d\u7684 docs\/deployment\/central-backup-server.rst \u4e3a\u57fa\u7840&#xff0c;\u5b8c\u6574\u8bb2\u89e3\u5982\u4f55\u5728\u4e00\u53f0\u5907\u4efd\u670d\u52a1\u5668\u4e0a\u4e3a\u591a\u4e2a\u5ba2\u6237\u7aef","og_url":"https:\/\/www.wsisp.com\/helps\/111285.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-30T13:09:23+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260930130921-6abd0a01e93fc.svg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"7 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/111285.html","url":"https:\/\/www.wsisp.com\/helps\/111285.html","name":"\u7528 Borg \u642d\u5efa\u96c6\u4e2d\u5f0f\u5907\u4efd\u670d\u52a1\u5668\uff1aAnsible \u4e0e Salt \u591a\u5ba2\u6237\u7aef\u90e8\u7f72\u5b9e\u6218 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-30T13:09:23+00:00","dateModified":"2026-09-30T13:09:23+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/111285.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/111285.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/111285.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u7528 Borg \u642d\u5efa\u96c6\u4e2d\u5f0f\u5907\u4efd\u670d\u52a1\u5668\uff1aAnsible \u4e0e Salt \u591a\u5ba2\u6237\u7aef\u90e8\u7f72\u5b9e\u6218"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/111285","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=111285"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/111285\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=111285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=111285"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=111285"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=111285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}