{"id":6911,"date":"2026-05-08T06:30:53","date_gmt":"2026-05-07T22:30:53","guid":{"rendered":"https:\/\/www.babel.cc\/blog\/?p=6911"},"modified":"2026-05-08T06:30:53","modified_gmt":"2026-05-07T22:30:53","slug":"%e4%bc%81%e4%b8%9a%e4%ba%91%e7%9b%98%e6%95%b0%e6%8d%ae%e5%a4%87%e4%bb%bd%e4%b8%8e%e7%81%be%e5%a4%87%e6%81%a2%e5%a4%8d%e5%ae%9e%e6%88%98%ef%bc%9a3-2-1%e5%8e%9f%e5%88%99%e4%b8%8e%e8%b7%a8%e5%9c%b0","status":"publish","type":"post","link":"https:\/\/www.babel.cc\/blog\/?p=6911","title":{"rendered":"\u4f01\u4e1a\u4e91\u76d8\u6570\u636e\u5907\u4efd\u4e0e\u707e\u5907\u6062\u590d\u5b9e\u6218\uff1a3-2-1\u539f\u5219\u4e0e\u8de8\u5730\u57df\u67b6\u6784\u8bbe\u8ba1"},"content":{"rendered":"<p>\u5e72\u8fd0\u7ef4\u6700\u6015\u4ec0\u4e48\uff1f\u4e0d\u662f\u534a\u591c\u670d\u52a1\u5668\u6302\u4e86\uff0c\u662f\u6570\u636e\u4e22\u4e86\u627e\u4e0d\u56de\u6765\u3002<\/p>\n<p>\u53bb\u5e74\u6709\u4e2a\u670b\u53cb\u516c\u53f8\u4e0a\u4e86\u4e00\u5957\u5f00\u6e90\u4f01\u4e1a\u4e91\u76d8\uff0c\u7528\u5f97\u633a\u987a\u624b\uff0c\u7ed3\u679c\u673a\u623f\u65ad\u7535\uff0cUPS\u4e5f\u6ca1\u8d77\u4f5c\u7528\uff0c3TB\u7684\u8bbe\u8ba1\u6587\u4ef6\u5168\u6ca1\u4e86\u3002\u8001\u677f\u95ee&#8221;\u5907\u4efd\u5462&#8221;\uff0c\u4ed6\u6123\u5728\u539f\u5730\u8bf4\u4e0d\u51fa\u8bdd\u3002<\/p>\n<p>\u5907\u4efd\u8fd9\u4ef6\u4e8b\uff0c\u8bf4\u8d77\u6765\u7b80\u5355\uff0c\u505a\u8d77\u6765\u5168\u662f\u5751\u3002\u4eca\u5929\u628a\u6211\u8e29\u8fc7\u7684\u5751\u6574\u7406\u4e00\u4e0b\uff0c\u7ed9\u6b63\u5728\u9009\u578b\u6216\u8005\u5df2\u7ecf\u4e0a\u4e86\u4f01\u4e1a\u4e91\u76d8\u7684\u8fd0\u7ef4\u540c\u884c\u4e00\u4e2a\u53c2\u8003\u3002<\/p>\n<hr \/>\n<h2>\u4e00\u30013-2-1\u5907\u4efd\u539f\u5219\uff1a\u5f88\u591a\u516c\u53f8\u53ea\u505a\u5230\u4e861<\/h2>\n<p>\u5907\u4efd\u9886\u57df\u6709\u4e2a\u7ecf\u5178\u539f\u5219\u53eb&#8221;3-2-1&#8243;\uff1a\u81f3\u5c113\u4efd\u526f\u672c\uff0c\u5b58\u57282\u79cd\u4e0d\u540c\u4ecb\u8d28\uff0c\u5176\u4e2d1\u4efd\u5728\u5f02\u5730\u3002<\/p>\n<p>\u542c\u8d77\u6765\u7b80\u5355\uff0c\u4f46\u5b9e\u9645\u6267\u884c\u8d77\u6765\u95ee\u9898\u4e00\u5806\u3002<\/p>\n<p><strong>\u4f01\u4e1a\u4e91\u76d8\u573a\u666f\u7684\u7279\u6b8a\u6027<\/strong>\uff1a<br \/>\n&#8211; \u6587\u4ef6\u91cf\u5927\uff08\u52a8\u4e0d\u52a8\u51e0\u5341TB\uff09<br \/>\n&#8211; \u7248\u672c\u591a\uff08\u540c\u4e00\u4e2a\u6587\u4ef6\u53ef\u80fd\u6709\u51e0\u5341\u4e2a\u5386\u53f2\u7248\u672c\uff09<br \/>\n&#8211; \u589e\u91cf\u9891\u7e41\uff08\u6bcf\u5929\u51e0\u767eGB\u7684\u65b0\u589e\u548c\u4fee\u6539\uff09<\/p>\n<p>\u6211\u89c1\u8fc7\u6700\u5e38\u89c1\u7684\u9519\u8bef\u505a\u6cd5\uff1a\u5b9a\u65f6\u7528<code>rsync<\/code>\u628a\u6570\u636e\u540c\u6b65\u5230\u53e6\u4e00\u53f0\u670d\u52a1\u5668\u3002\u542c\u8d77\u6765\u6709\u5907\u4efd\uff0c\u5b9e\u9645\u4e0a\u5b58\u5728\u4e09\u4e2a\u81f4\u547d\u95ee\u9898\uff1a<\/p>\n<ol>\n<li><strong>\u5355\u70b9\u6545\u969c<\/strong>\uff1a\u6e90\u548c\u5907\u4efd\u5728\u540c\u4e00\u673a\u623f\uff0c\u5730\u9707\/\u706b\u707e\u5168\u5b8c<\/li>\n<li><strong>\u7248\u672c\u6df7\u4e71<\/strong>\uff1arsync\u53ea\u540c\u6b65\u6700\u65b0\u7248\u672c\uff0c\u5386\u53f2\u7248\u672c\u88ab\u8986\u76d6<\/li>\n<li><strong>\u65e0\u589e\u91cf\u6982\u5ff5<\/strong>\uff1a\u6bcf\u6b21\u5168\u91cf\u540c\u6b65\uff0c\u5e26\u5bbd\u548c\u5b58\u50a8\u6d6a\u8d39\u4e25\u91cd<\/li>\n<\/ol>\n<h3>\u6b63\u786e\u7684\u5907\u4efd\u67b6\u6784\u957f\u4ec0\u4e48\u6837<\/h3>\n<p>\u4ee5\u5df4\u522b\u9e1f\u4e3a\u4f8b\uff0c\u6211\u5efa\u8bae\u7684\u5907\u4efd\u67b6\u6784\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n<pre><code>[\u5df4\u522b\u9e1f\u5b58\u50a8\u8282\u70b91] \u2500\u2500\u2510\r\n[\u5df4\u522b\u9e1f\u5b58\u50a8\u8282\u70b92] \u2500\u2500\u253c\u2500\u2500\u2192 [\u672c\u5730\u5907\u4efd\u8282\u70b9] \u2500\u2500\u2192 [\u5f02\u5730\u5907\u4efd\u4e2d\u5fc3]\r\n[\u5df4\u522b\u9e1f\u5b58\u50a8\u8282\u70b93] \u2500\u2500\u2518        \u2502                      \u2502\r\n                            \u2502 (WORM\u4fdd\u62a4)           \u2502\r\n                        \u5feb\u7167\u5907\u4efd               \u8de8\u5730\u57df\u590d\u5236\r\n<\/code><\/pre>\n<p>\u4e24\u5c42\u5907\u4efd\uff0c\u672c\u5730\u505a\u5feb\u7167\uff0c\u5f02\u5730\u505a\u590d\u5236\u3002\u574f\u4e86\u5148\u4ece\u672c\u5730\u6062\u590d\uff0c\u5feb\u5230\u79bb\u8c31\uff1b\u672c\u5730\u5168\u706d\u4e86\u5c31\u4ece\u5f02\u5730\u62c9\uff0c\u4e0d\u81f3\u4e8e\u8981\u7b49\u51e0\u5929\u4ece\u96f6\u91cd\u5efa\u3002<\/p>\n<hr \/>\n<h2>\u4e8c\u3001\u5feb\u7167\u6280\u672f\uff1a\u672c\u5730\u5907\u4efd\u7684\u7b2c\u4e00\u9053\u9632\u7ebf<\/h2>\n<h3>\u4ec0\u4e48\u662f\u5feb\u7167\uff0c\u4e3a\u4ec0\u4e48\u4f01\u4e1a\u4e91\u76d8\u5fc5\u987b\u5f00<\/h3>\n<p>\u5feb\u7167\u662f\u5728\u67d0\u4e2a\u65f6\u95f4\u70b9\u7ed9\u5b58\u50a8\u5377\u6253\u4e2a\u6807\u8bb0\uff0c\u5b58\u50a8\u7cfb\u7edf\u53ea\u8bb0\u5f55&#8221;\u53d8\u5316\u7684\u90e8\u5206&#8221;\u3002\u548c\u5168\u91cf\u5907\u4efd\u76f8\u6bd4\uff0c\u5feb\u7167\u51e0\u4e4e\u4e0d\u5360\u989d\u5916\u7a7a\u95f4\uff0c\u521b\u5efa\u65f6\u95f4\u53ea\u9700\u8981\u51e0\u79d2\u3002<\/p>\n<p>\u4f01\u4e1a\u4e91\u76d8\u7684\u5feb\u7167\u7b56\u7565\uff0c\u6211\u5efa\u8bae\u8fd9\u6837\u914d\uff1a<\/p>\n<pre><code class=\"language-bash\"># \u67e5\u770b\u5f53\u524d\u5feb\u7167\u5217\u8868\r\nbablebird-cli snapshot list --volume \/data\r\n\r\n# \u521b\u5efa\u624b\u52a8\u5feb\u7167\uff08\u5907\u4efd\u524d\u5fc5\u505a\uff09\r\nbablebird-cli snapshot create \\\r\n  --volume \/data \\\r\n  --name &quot;weekly-full-backup-2026-05-08&quot; \\\r\n  --description &quot;\u672c\u5468\u5168\u91cf\u5907\u4efd\uff0c\u5907\u4efd\u524d\u624b\u52a8\u5feb\u7167&quot;\r\n\r\n# \u81ea\u52a8\u5feb\u7167\u7b56\u7565\uff08cron\u4f5c\u4e1a\uff0c\u6bcf\u5929\u51cc\u66682\u70b9\uff09\r\nbablebird-cli snapshot schedule \\\r\n  --volume \/data \\\r\n  --cron &quot;0 2 * * *&quot; \\\r\n  --retention 7 \\\r\n  --prefix &quot;auto-daily&quot;\r\n<\/code><\/pre>\n<p><strong>\u5173\u952e\u53c2\u6570\u89e3\u91ca<\/strong>\uff1a<br \/>\n&#8211; <code>--retention 7<\/code>\uff1a\u53ea\u4fdd\u7559\u6700\u8fd17\u4e2a\u5feb\u7167\uff0c\u8282\u7701\u7a7a\u95f4<br \/>\n&#8211; <code>--prefix \"auto-daily\"<\/code>\uff1a\u65b9\u4fbf\u8bc6\u522b\u548c\u7ba1\u7406<\/p>\n<h3>\u5feb\u7167\u7684\u5751\uff1aCOW vs ROW<\/h3>\n<p>\u4e0d\u540c\u5b58\u50a8\u5f15\u64ce\u7684\u5feb\u7167\u5b9e\u73b0\u65b9\u5f0f\u4e0d\u4e00\u6837\uff0c\u5dee\u522b\u5f88\u5927\u3002<\/p>\n<p><strong>COW\uff08Copy-On-Write\uff09<\/strong>\uff1a\u5199\u64cd\u4f5c\u65f6\u5148\u590d\u5236\u539f\u6570\u636e\u518d\u4fee\u6539\uff0c\u5feb\u7167\u521b\u5efa\u5feb\u4f46\u8bfb\u6027\u80fd\u5dee\u3002\u9002\u5408\u8bfb\u5c11\u5199\u5c11\u7684\u573a\u666f\u3002<\/p>\n<p><strong>ROW\uff08Redirect-On-Write\uff09<\/strong>\uff1a\u5199\u64cd\u4f5c\u76f4\u63a5\u5199\u5165\u65b0\u4f4d\u7f6e\uff0c\u539f\u6570\u636e\u4fdd\u6301\u4e0d\u53d8\uff0c\u8bfb\u6027\u80fd\u597d\u4f46\u5feb\u7167\u521b\u5efa\u7a0d\u6162\u3002\u9002\u5408\u4f01\u4e1a\u4e91\u76d8\u8fd9\u79cd\u8bfb\u591a\u5199\u4e5f\u591a\u7684\u573a\u666f\u3002<\/p>\n<p>\u9a8c\u8bc1\u65b9\u6cd5\u662f\uff1a<\/p>\n<pre><code class=\"language-bash\"># \u67e5\u770b\u5b58\u50a8\u5f15\u64ce\u7c7b\u578b\r\nbablebird-cli storage info --volume \/data | grep -i &quot;snapshot.*type&quot;\r\n\r\n# \u8f93\u51fa\u793a\u4f8b\uff08ROW\u5f15\u64ce\uff09\r\n# SnapshotType: ROW\r\n# CloneSpeed: fast\r\n<\/code><\/pre>\n<p>\u5982\u679c\u4f60\u53d1\u73b0\u81ea\u5bb6\u4f01\u4e1a\u4e91\u76d8\u7528\u7684\u662fCOW\uff0c\u800c\u4e14\u6587\u4ef6\u91cf\u8d85\u8fc710TB\uff0c\u8bfb\u64cd\u4f5c\u4f1a\u660e\u663e\u53d8\u6162\u3002\u8fd9\u65f6\u5019\u53ef\u4ee5\u8003\u8651\u5347\u7ea7\u5b58\u50a8\u5f15\u64ce\u6216\u8005\u52a0\u7f13\u5b58\u5c42\u3002<\/p>\n<h3>\u5feb\u7167\u6062\u590d\u7684\u6b63\u786e\u59ff\u52bf<\/h3>\n<p>\u6062\u590d\u5feb\u7167\u6700\u6015\u7684\u662f&#8221;\u6062\u590d\u9519\u4e86\u7248\u672c&#8221;\u6216\u8005&#8221;\u6062\u590d\u8fc7\u7a0b\u4e2d\u8986\u76d6\u4e86\u6700\u65b0\u6570\u636e&#8221;\u3002<\/p>\n<pre><code class=\"language-bash\"># \u5148\u67e5\u770b\u5feb\u7167\u5185\u5bb9\uff08\u53ea\u8bfb\u6302\u8f7d\uff0c\u4e0d\u4f1a\u5f71\u54cd\u539f\u5377\uff09\r\nbablebird-cli snapshot mount \\\r\n  --snapshot &quot;weekly-full-backup-2026-05-08&quot; \\\r\n  --mount-point \/mnt\/snapshot-readonly \\\r\n  --readonly\r\n\r\n# \u786e\u8ba4\u5185\u5bb9\u6b63\u786e\u540e\u518d\u6267\u884c\u6062\u590d\r\nbablebird-cli snapshot restore \\\r\n  --snapshot &quot;weekly-full-backup-2026-05-08&quot; \\\r\n  --target-volume \/data \\\r\n  --mode &quot;clone&quot;  # clone\u6a21\u5f0f\uff1a\u521b\u5efa\u4e00\u4e2a\u65b0\u5377\uff0c\u4e0d\u5f71\u54cd\u539f\u5377\r\n\r\n# \u5982\u679c\u786e\u8ba4\u8981\u539f\u5730\u6062\u590d\uff08\u5371\u9669\u64cd\u4f5c\uff01\uff09\r\nbablebird-cli snapshot restore \\\r\n  --snapshot &quot;weekly-full-backup-2026-05-08&quot; \\\r\n  --target-volume \/data \\\r\n  --mode &quot;inplace&quot; \\\r\n  --confirm &quot;YES_I_UNDERSTAND_THIS_WILL_OVERWRITE_CURRENT_DATA&quot;\r\n<\/code><\/pre>\n<p><strong>\u8840\u7684\u6559\u8bad<\/strong>\uff1a\u4e0d\u8981\u7528<code>inplace<\/code>\u6a21\u5f0f\u505a\u65e5\u5e38\u6062\u590d\u6d4b\u8bd5\u3002\u521b\u5efa\u65b0\u5377\u518d\u6302\u8f7d\u786e\u8ba4\uff0c\u8fd9\u662f\u6807\u51c6\u64cd\u4f5c\u6d41\u7a0b\u3002<\/p>\n<hr \/>\n<h2>\u4e09\u3001\u8de8\u5730\u57df\u590d\u5236\uff1a\u5f02\u5730\u5907\u4efd\u7684\u6838\u5fc3<\/h2>\n<h3>\u4e3a\u4ec0\u4e48\u5fc5\u987b\u8de8\u5730\u57df<\/h3>\n<p>\u672c\u5730\u5feb\u7167\u80fd\u9632\u4f4f\u8f6f\u4ef6\u6545\u969c\u548c\u4eba\u4e3a\u8bef\u5220\uff0c\u4f46\u9632\u4e0d\u4f4f\u7269\u7406\u5c42\u9762\u7684\u707e\u96be\uff1a<br \/>\n&#8211; \u673a\u623f\u65ad\u7535\uff08UPS\u5931\u6548\uff09<br \/>\n&#8211; \u706b\u707e\/\u5730\u9707\uff08\u7269\u7406\u635f\u6bc1\uff09<br \/>\n&#8211; \u52d2\u7d22\u8f6f\u4ef6\uff08\u52a0\u5bc6\u672c\u5730+\u5907\u4efd\uff09<\/p>\n<p>\u5f02\u5730\u590d\u5236\u7684\u76ee\u7684\u662f\uff1a\u5728\u4e3b\u7ad9\u70b9\u5b8c\u5168\u4e0d\u53ef\u7528\u65f6\uff0c\u4e1a\u52a1\u80fd\u5728\u5f02\u5730\u5feb\u901f\u6062\u590d\u3002<\/p>\n<h3>\u8de8\u5730\u57df\u590d\u5236\u7684\u67b6\u6784\u8bbe\u8ba1<\/h3>\n<p>\u6211\u63a8\u8350\u7528&#8221;\u4e3b\u4ece\u5f02\u6b65\u590d\u5236&#8221;\u67b6\u6784\uff1a<\/p>\n<pre><code>[\u4e3b\u7ad9\u70b9 - \u5317\u4eac]\r\n  \u2502\r\n  \u2502 \u6bcf5\u5206\u949f\u589e\u91cf\u540c\u6b65\r\n  \u25bc\r\n[\u4ece\u7ad9\u70b9 - \u4e0a\u6d77]\r\n<\/code><\/pre>\n<p>\u6280\u672f\u5b9e\u73b0\u4e0a\uff0c\u5e38\u89c1\u7684\u65b9\u6848\u6709\u4e09\u79cd\uff1a<\/p>\n<p><strong>\u65b9\u68481\uff1a\u5b58\u50a8\u5c42\u590d\u5236<\/strong><br \/>\n\u5728\u5b58\u50a8\u9635\u5217\u5c42\u9762\u505a\u590d\u5236\uff0c\u517c\u5bb9\u6027\u6700\u597d\u4f46\u9700\u8981\u4e13\u7528\u786c\u4ef6\u3002\u6211\u89c1\u8fc7\u67d0\u5382\u5546\u7684\u5b58\u50a8\u67dc\uff0c\u81ea\u5e26\u8de8\u5730\u57df\u590d\u5236\u529f\u80fd\uff0c\u914d\u597d\u76ee\u6807\u7ad9\u70b9IP\u5c31\u80fd\u7528\u3002<\/p>\n<p>\u7f3a\u70b9\uff1a\u8d35\u3002\u4e00\u5957\u5e26\u590d\u5236\u529f\u80fd\u7684\u5b58\u50a8\u67dc\uff0c\u4ef7\u683c\u662f\u666e\u901a\u5b58\u50a8\u76842-3\u500d\u3002<\/p>\n<p><strong>\u65b9\u68482\uff1a\u5e94\u7528\u5c42\u590d\u5236<\/strong><br \/>\n\u5e94\u7528\u5c42\u611f\u77e5\u590d\u5236\u72b6\u6001\uff0c\u590d\u5236\u6548\u7387\u548c\u4e00\u81f4\u6027\u6700\u597d\uff0c\u4f46\u9700\u8981\u5e94\u7528\u672c\u8eab\u652f\u6301\u3002<\/p>\n<p>\u5df4\u522b\u9e1f\u652f\u6301\u5e94\u7528\u5c42\u590d\u5236\uff0c\u914d\u7f6e\u65b9\u6cd5\uff1a<\/p>\n<pre><code class=\"language-yaml\"># \/etc\/babelbird\/replication.yaml\r\nreplication:\r\n  enabled: true\r\n  mode: async  # \u5f02\u6b65\u590d\u5236\uff0c\u4e0d\u5f71\u54cd\u4e3b\u7ad9\u70b9\u5199\u5165\u6027\u80fd\r\n  interval: 5m  # \u6bcf5\u5206\u949f\u589e\u91cf\u540c\u6b65\r\n\r\n  target:\r\n    endpoint: https:\/\/backup.babelbird.cn\r\n    api_key: &quot;your-replication-api-key&quot;\r\n    volume: &quot;\/backup\/beijing-primary&quot;\r\n\r\n  bandwidth_limit: 100MB\/s  # \u9650\u901f\uff0c\u907f\u514d\u5360\u7528\u592a\u591a\u5e7f\u57df\u7f51\u5e26\u5bbd\r\n\r\n  conflict_resolution: &quot;primary_wins&quot;  # \u4e3b\u7ad9\u70b9\u4f18\u5148\uff0c\u907f\u514d\u6570\u636e\u51b2\u7a81\r\n\r\n  filters:\r\n    include:\r\n      - &quot;\/projects\/*&quot;\r\n      - &quot;\/documents\/*&quot;\r\n    exclude:\r\n      - &quot;\/temp\/*&quot;\r\n      - &quot;\/cache\/*&quot;\r\n<\/code><\/pre>\n<p><strong>\u8e29\u5751\u8bb0\u5f55<\/strong>\uff1a\u5e26\u5bbd\u9650\u5236\u8fd9\u4e2a\u53c2\u6570\u5fc5\u987b\u914d\u3002\u4e0d\u914d\u7684\u8bdd\uff0c\u590d\u5236\u4f1a\u5403\u6ee1\u5e26\u5bbd\uff0c\u5f71\u54cd\u6b63\u5e38\u4e1a\u52a1\u8bbf\u95ee\u3002\u6211\u89c1\u8fc7\u51cc\u66682\u70b9\u5e26\u5bbd\u6ee1\u4e86\uff0c\u767d\u5929\u4e1a\u52a1\u5c31\u5361\u4e86\u3002<\/p>\n<p><strong>\u65b9\u68483\uff1a\u5bf9\u8c61\u5b58\u50a8\u5f52\u6863<\/strong><\/p>\n<p>\u51b7\u6570\u636e\uff08\u4e0d\u5e38\u8bbf\u95ee\u7684\u5386\u53f2\u7248\u672c\uff09\u7528\u5bf9\u8c61\u5b58\u50a8\u5f52\u6863\uff0c\u6210\u672c\u6700\u4f4e\uff1a<\/p>\n<pre><code class=\"language-python\"># Python\u811a\u672c\uff1a\u5386\u53f2\u7248\u672c\u5f52\u6863\u5230S3\r\nimport boto3\r\nfrom babelbird import BackupClient\r\n\r\nbackup = BackupClient(api_key=&quot;your-key&quot;)\r\ns3 = boto3.client('s3', \r\n    endpoint_url='https:\/\/s3.cn-beijing.aliyuncs.com',\r\n    aws_access_key_id='your-key-id',\r\n    aws_secret_access_key='your-secret')\r\n\r\ndef archive_old_versions(days=90):\r\n    &quot;&quot;&quot;\u5f52\u686390\u5929\u524d\u7684\u5386\u53f2\u7248\u672c\u5230\u5bf9\u8c61\u5b58\u50a8&quot;&quot;&quot;\r\n    old_versions = backup.list_versions(\r\n        older_than_days=days,\r\n        status='archived'\r\n    )\r\n\r\n    for version in old_versions:\r\n        file_path = version['file_path']\r\n        version_id = version['version_id']\r\n\r\n        s3.upload_file(\r\n            f&quot;\/data\/.versions\/{version_id}&quot;,\r\n            'company-cloud-backup',\r\n            f&quot;history\/{file_path}\/{version_id}&quot;\r\n        )\r\n\r\n        # \u5220\u9664\u672c\u5730\u7248\u672c\uff0c\u91ca\u653e\u7a7a\u95f4\r\n        backup.delete_local_version(version_id)\r\n        print(f&quot;\u5f52\u6863\u5b8c\u6210: {file_path} v{version_id}&quot;)\r\n\r\nif __name__ == '__main__':\r\n    archive_old_versions(days=90)\r\n<\/code><\/pre>\n<h3>RPO\u548cRTO\uff1a\u8fd9\u4e24\u4e2a\u6307\u6807\u51b3\u5b9a\u4e86\u5907\u4efd\u67b6\u6784\u9009\u578b<\/h3>\n<p><strong>RPO\uff08Recovery Point Objective\uff09<\/strong>\uff1a\u6700\u591a\u80fd\u5bb9\u5fcd\u4e22\u5931\u591a\u5c11\u6570\u636e<\/p>\n<ul>\n<li>RPO=0\uff1a\u96f6\u6570\u636e\u4e22\u5931\uff0c\u5fc5\u987b\u540c\u6b65\u590d\u5236<\/li>\n<li>RPO=5\u5206\u949f\uff1a\u5f02\u6b65\u590d\u5236\uff0c\u6bcf5\u5206\u949f\u540c\u6b65\u4e00\u6b21<\/li>\n<li>RPO=24\u5c0f\u65f6\uff1a\u6bcf\u65e5\u5907\u4efd\u5c31\u591f\u4e86<\/li>\n<\/ul>\n<p><strong>RTO\uff08Recovery Time Objective\uff09<\/strong>\uff1a\u707e\u96be\u53d1\u751f\u540e\uff0c\u4e1a\u52a1\u6062\u590d\u9700\u8981\u591a\u957f\u65f6\u95f4<\/p>\n<ul>\n<li>RTO=0\uff1a\u5b9e\u65f6\u5207\u6362\uff0c\u4e1a\u52a1\u4e0d\u4e2d\u65ad\uff08\u9700\u8981\u53cc\u6d3b\u67b6\u6784\uff09<\/li>\n<li>RTO=1\u5c0f\u65f6\uff1a\u5f02\u5730\u5907\u7528\u7ad9\u70b9\u5c0f\u65f6\u7ea7\u62c9\u8d77<\/li>\n<li>RTO=24\u5c0f\u65f6\uff1a\u5f02\u5730\u5907\u4efd\uff0c\u78c1\u5e26\/\u5bf9\u8c61\u5b58\u50a8\u6062\u590d<\/li>\n<\/ul>\n<p>\u6211\u89c1\u8fc7\u6709\u4e9b\u516c\u53f8\u7684\u5907\u4efd\u65b9\u6848\uff0cRPO\u8bbe\u62101\u5c0f\u65f6\u4f46\u5b9e\u9645\u4e0a\u6bcf\u5929\u53ea\u540c\u6b65\u4e00\u6b21\uff0cRPO\u5f62\u540c\u865a\u8bbe\u3002<\/p>\n<hr \/>\n<h2>\u56db\u3001\u707e\u5907\u6f14\u7ec3\uff1a\u7eb8\u4e0a\u8c08\u5175\u4e0d\u5982\u5b9e\u6218<\/h2>\n<h3>\u4e3a\u4ec0\u4e48\u5fc5\u987b\u6f14\u7ec3<\/h3>\n<p>\u5907\u4efd\u6ca1\u6f14\u7ec3\u8fc7\uff0c\u7b49\u4e8e\u6ca1\u6709\u5907\u4efd\u3002<\/p>\n<p>\u6211\u53c2\u4e0e\u8fc7\u4e00\u6b21\u707e\u5907\u6f14\u7ec3\uff0c\u8fc7\u7a0b\u4e2d\u53d1\u73b0\u4e09\u4e2a\u95ee\u9898\uff1a<\/p>\n<ol>\n<li>\u6062\u590d\u811a\u672c\u91cc\u6709bug\uff0c\u8dd1\u4e8630\u5206\u949f\u62a5\u9519\u9000\u51fa\u4e86<\/li>\n<li>\u5f02\u5730\u590d\u5236\u7684API Key\u8fc7\u671f\u4e86\uff0c\u6ca1\u53d1\u73b0<\/li>\n<li>\u6062\u590d\u6d41\u7a0b\u9700\u89815\u6b65\uff0c\u4f46\u6587\u6863\u53ea\u5199\u4e862\u6b65<\/li>\n<\/ol>\n<p>\u8fd9\u4e09\u4e2a\u95ee\u9898\u90fd\u662f\u6f14\u7ec3\u624d\u53d1\u73b0\u7684\u3002\u5982\u679c\u771f\u7684\u707e\u96be\u53d1\u751f\u4e86\uff0c\u6839\u672c\u6765\u4e0d\u53ca\u53cd\u5e94\u3002<\/p>\n<h3>\u6f14\u7ec3\u7684\u9891\u7387\u548c\u65b9\u6cd5<\/h3>\n<p><strong>\u5b63\u5ea6\u7ea7\u6f14\u7ec3<\/strong>\uff08\u5efa\u8bae\uff09\uff1a<br \/>\n&#8211; \u5b8c\u6574\u7684\u707e\u5907\u5207\u6362\u6d41\u7a0b<br \/>\n&#8211; \u4ece\u5f02\u5730\u5907\u4efd\u62c9\u8d77\u4e1a\u52a1<br \/>\n&#8211; \u9a8c\u8bc1\u6570\u636e\u5b8c\u6574\u6027<\/p>\n<p><strong>\u6708\u5ea6\u7ea7\u6f14\u7ec3<\/strong>\uff08\u5c0f\u89c4\u6a21\uff09\uff1a<br \/>\n&#8211; \u5feb\u7167\u6062\u590d\u6d4b\u8bd5\uff08\u4e0d\uff0c\u5f71\u54cd\u751f\u4ea7\uff09<br \/>\n&#8211; \u5355\u6587\u4ef6\u6062\u590d\u6d4b\u8bd5<br \/>\n&#8211; \u5907\u4efd\u5b8c\u6574\u6027\u6821\u9a8c<\/p>\n<h3>\u6f14\u7ec3\u68c0\u67e5\u6e05\u5355<\/h3>\n<pre><code class=\"language-bash\">#!\/bin\/bash\r\n# \u707e\u5907\u6f14\u7ec3\u68c0\u67e5\u811a\u672c\r\n\r\necho &quot;=== \u707e\u5907\u6f14\u7ec3\u68c0\u67e5 ===&quot;\r\n\r\necho &quot;[1\/6] \u68c0\u67e5\u672c\u5730\u5feb\u7167\u72b6\u6001&quot;\r\nbablebird-cli snapshot list --volume \/data | grep &quot;auto-daily&quot;\r\nif [ $? -ne 0 ]; then\r\n    echo &quot;\u274c \u5feb\u7167\u5f02\u5e38\uff1a\u672a\u627e\u5230\u81ea\u52a8\u5feb\u7167&quot;\r\n    exit 1\r\nfi\r\necho &quot;\u2705 \u5feb\u7167\u6b63\u5e38&quot;\r\n\r\necho &quot;[2\/6] \u68c0\u67e5\u5feb\u7167\u6570\u91cf&quot;\r\ncount=$(bablebird-cli snapshot list --volume \/data | wc -l)\r\nif [ $count -lt 5 ]; then\r\n    echo &quot;\u26a0\ufe0f \u5feb\u7167\u6570\u91cf\u4e0d\u8db3\uff1a\u5f53\u524d $count \u4e2a\uff0c\u5efa\u8bae\u4fdd\u7559\u22655\u4e2a&quot;\r\nfi\r\n\r\necho &quot;[3\/6] \u68c0\u67e5\u8de8\u5730\u57df\u590d\u5236\u72b6\u6001&quot;\r\nrepl_status=$(bablebird-cli replication status)\r\necho &quot;$repl_status&quot; | grep -q &quot;status.*healthy&quot;\r\nif [ $? -ne 0 ]; then\r\n    echo &quot;\u274c \u590d\u5236\u72b6\u6001\u5f02\u5e38&quot;\r\n    echo &quot;$repl_status&quot;\r\n    exit 1\r\nfi\r\necho &quot;\u2705 \u590d\u5236\u72b6\u6001\u6b63\u5e38&quot;\r\n\r\necho &quot;[4\/6] \u68c0\u67e5\u6700\u65b0\u590d\u5236\u5ef6\u8fdf&quot;\r\ndelay=$(echo &quot;$repl_status&quot; | grep &quot;lag&quot; | awk '{print $2}')\r\necho &quot;\u5f53\u524d\u590d\u5236\u5ef6\u8fdf: $delay&quot;\r\nif [ &quot;$delay&quot; -gt 600 ]; then  # \u8d85\u8fc710\u5206\u949f\u8b66\u544a\r\n    echo &quot;\u26a0\ufe0f \u590d\u5236\u5ef6\u8fdf\u8fc7\u9ad8\uff0c\u8bf7\u68c0\u67e5\u7f51\u7edc\u548c\u76ee\u6807\u7ad9\u70b9\u72b6\u6001&quot;\r\nfi\r\n\r\necho &quot;[5\/6] \u6d4b\u8bd5\u5355\u6587\u4ef6\u6062\u590d&quot;\r\ntest_file=$(bablebird-cli snapshot restore \\\r\n  --snapshot &quot;auto-daily-$(date +%Y-%m-%d)&quot; \\\r\n  --file &quot;\/test\/\u6f14\u7ec3\u6d4b\u8bd5\u6587\u4ef6.txt&quot; \\\r\n  --target &quot;\/tmp\/restore-test.txt&quot;)\r\nif [ $? -ne 0 ]; then\r\n    echo &quot;\u274c \u6587\u4ef6\u6062\u590d\u5931\u8d25&quot;\r\n    exit 1\r\nfi\r\necho &quot;\u2705 \u6587\u4ef6\u6062\u590d\u6b63\u5e38&quot;\r\nrm -f \/tmp\/restore-test.txt\r\n\r\necho &quot;[6\/6] \u68c0\u67e5\u5907\u4efd\u5b58\u50a8\u7a7a\u95f4&quot;\r\ndf -h \/backup | tail -1 | awk '{print &quot;\u5907\u4efd\u76d8\u4f7f\u7528\u7387: &quot; $5}'\r\n\r\necho &quot;&quot;\r\necho &quot;=== \u6f14\u7ec3\u5b8c\u6210 ===&quot;\r\n<\/code><\/pre>\n<hr \/>\n<h2>\u4e94\u3001\u5e38\u89c1\u8e29\u5751\u6848\u4f8b<\/h2>\n<h3>\u6848\u4f8b1\uff1a\u5907\u4efd\u811a\u672c\u6ca1\u5199\u597d\uff0c\u6062\u590d\u65f6\u53d1\u73b0\u6570\u636e\u635f\u574f<\/h3>\n<p>\u67d0\u5ba2\u6237\u7528Python\u5199\u4e86\u4e2a\u5907\u4efd\u811a\u672c\uff0c\u628a\u6587\u4ef6\u6253\u5305\u6210zip\u4f20\u5230\u5bf9\u8c61\u5b58\u50a8\u3002\u6062\u590d\u7684\u65f6\u5019\u53d1\u73b0zip\u635f\u574f\u4e86\uff0c\u89e3\u538b\u62a5\u9519\u3002<\/p>\n<p>\u539f\u56e0\uff1a\u6587\u4ef6\u5728\u6253\u5305\u8fc7\u7a0b\u4e2d\u88ab\u5176\u4ed6\u8fdb\u7a0b\u4fee\u6539\u4e86\uff0c\u5bfc\u81f4zip\u7ed3\u6784\u4e0d\u5b8c\u6574\u3002<\/p>\n<p>\u89e3\u51b3\uff1a\u5907\u4efd\u524d\u5bf9\u76ee\u5f55\u52a0\u5206\u5e03\u5f0f\u9501\uff0c\u6216\u8005\u7528\u5feb\u7167\u505a\u5907\u4efd\u6e90\uff08\u5feb\u7167\u662f\u53ea\u8bfb\u7684\uff0c\u4e0d\u4f1a\u6709\u5e76\u53d1\u4fee\u6539\u95ee\u9898\uff09\u3002<\/p>\n<pre><code class=\"language-python\"># \u9519\u8bef\u505a\u6cd5\uff1a\u76f4\u63a5\u6253\u5305\u6b63\u5728\u5199\u5165\u7684\u76ee\u5f55\r\nimport zipfile\r\nimport shutil\r\n\r\ndef backup_old_way():\r\n    shutil.make_archive('\/backup\/today', 'zip', '\/data\/shared')\r\n    # \u274c \u95ee\u9898\uff1a\/data\/shared \u5728\u6253\u5305\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u88ab\u5176\u4ed6\u8fdb\u7a0b\u4fee\u6539\r\n\r\n# \u6b63\u786e\u505a\u6cd5\uff1a\u4ece\u5feb\u7167\u5907\u4efd\r\ndef backup_new_way():\r\n    snapshot = client.create_snapshot('\/data', 'backup-$(date +%Y%m%d)')\r\n    mount_point = client.mount_snapshot(snapshot, readonly=True)\r\n    shutil.make_archive('\/backup\/today', 'zip', mount_point)\r\n    client.unmount_snapshot(snapshot)\r\n    # \u2705 \u5feb\u7167\u662f\u53ea\u8bfb\u89c6\u56fe\uff0c\u4efb\u610f\u65f6\u523b\u90fd\u662f\u4e00\u81f4\u7684\r\n<\/code><\/pre>\n<h3>\u6848\u4f8b2\uff1a\u5ffd\u7565\u4e86\u6570\u636e\u5e93\u548c\u6587\u4ef6\u7684\u5173\u8054\u6027<\/h3>\n<p>\u4f01\u4e1a\u4e91\u76d8\u4e0d\u53ea\u662f\u5b58\u6587\u4ef6\uff0c\u8fd8\u6709\u6570\u636e\u5e93\uff08\u6587\u4ef6\u7d22\u5f15\u3001\u6743\u9650\u3001\u7528\u6237\u4fe1\u606f\u7b49\uff09\u3002\u6709\u4e9b\u8fd0\u7ef4\u53ea\u5907\u4efd\u5b58\u50a8\u5377\uff0c\u5fd8\u4e86\u5907\u4efd\u6570\u636e\u5e93\u3002<\/p>\n<p>\u7ed3\u679c\uff1a\u6587\u4ef6\u6062\u590d\u4e86\uff0c\u4f46\u7d22\u5f15\u5168\u4e71\u4e86\uff0c\u7528\u6237\u8bbf\u95ee\u6587\u4ef6\u62a5\u9519&#8221;\u6587\u4ef6\u4e0d\u5b58\u5728&#8221;\uff08\u5b9e\u9645\u4e0a\u662f\u6570\u636e\u5e93\u91cc\u6ca1\u6709\u8bb0\u5f55\uff09\u3002<\/p>\n<p>\u89e3\u51b3\uff1a\u5907\u4efd\u65b9\u6848\u5fc5\u987b\u540c\u65f6\u8986\u76d6\u5b58\u50a8\u5377\u548c\u6570\u636e\u5e93\u3002\u53ef\u4ee5\u7528\u6570\u636e\u5e93\u7684<code>mysqldump<\/code>\u6216\u8005PgSQL\u7684<code>pg_dump<\/code>\uff0c\u914d\u5408\u5b58\u50a8\u5377\u5feb\u7167\u505a\u539f\u5b50\u5907\u4efd\u3002<\/p>\n<pre><code class=\"language-bash\">#!\/bin\/bash\r\n# \u539f\u5b50\u5907\u4efd\u811a\u672c\uff1a\u6570\u636e\u5e93+\u5b58\u50a8\u5377\u540c\u65f6\u5907\u4efd\r\n\r\nDATE=$(date +%Y%m%d_%H%M%S)\r\nVOLUME=\/data\r\n\r\n# 1. \u521b\u5efa\u5b58\u50a8\u5377\u5feb\u7167\r\nSNAPSHOT=$(bablebird-cli snapshot create \\\r\n  --volume $VOLUME \\\r\n  --name &quot;atomic-backup-$DATE&quot; \\\r\n  --description &quot;\u6570\u636e\u5e93+\u6587\u4ef6\u539f\u5b50\u5907\u4efd&quot;)\r\n\r\n# 2. \u5feb\u7167\u521b\u5efa\u6210\u529f\u540e\u518ddump\u6570\u636e\u5e93\r\nmysqldump -h localhost -u babelbird -p'your-password' \\\r\n  --single-transaction \\\r\n  --quick \\\r\n  --lock-tables=false \\\r\n  babelbird | gzip &gt; \/backup\/db-$DATE.sql.gz\r\n\r\n# 3. \u9a8c\u8bc1\u6570\u636e\u5e93\u5907\u4efd\r\nif [ $? -eq 0 ]; then\r\n    echo &quot;\u6570\u636e\u5e93\u5907\u4efd\u6210\u529f: \/backup\/db-$DATE.sql.gz&quot;\r\nelse\r\n    echo &quot;\u274c \u6570\u636e\u5e93\u5907\u4efd\u5931\u8d25\uff0c\u5220\u9664\u5feb\u7167&quot;\r\n    bablebird-cli snapshot delete $SNAPSHOT\r\n    exit 1\r\nfi\r\n\r\n# 4. \u5feb\u7167\u6807\u8bb0\u4e3a&quot;\u5df2\u5907\u4efd&quot;\uff0c\u540e\u7eed\u7531\u5f52\u6863\u4efb\u52a1\u5904\u7406\r\nbablebird-cli snapshot tag $SNAPSHOT --tag &quot;backup-complete&quot;\r\n<\/code><\/pre>\n<h3>\u6848\u4f8b3\uff1a\u6062\u590d\u6f14\u7ec3\u6ca1\u505a\uff0c\u6062\u590d\u65f6\u95f4\u6bd4\u9884\u671f\u957f\u5f88\u591a<\/h3>\n<p>\u6709\u4e2a\u5ba2\u6237\u7684\u65b9\u6848\u662f\uff1a\u672c\u5730\u5907\u4efd\u6bcf\u65e5\u4e00\u6b21\uff0c\u5f02\u5730\u5907\u4efd\u6bcf\u5468\u4e00\u6b21\u3002\u7406\u8bba\u4e0aRTO\u662f1\u5929\u3002<\/p>\n<p>\u7ed3\u679c\uff1a\u771f\u5b9e\u6f14\u7ec3\u53d1\u73b0\uff0c\u4ece\u5f02\u5730\u5907\u4efd\u6062\u590d\u9700\u8981\u91cd\u65b0\u4f20\u8f9330TB\u6570\u636e\uff0c\u5728\u4ed6\u4eec\u7684\u5e7f\u57df\u7f51\u5e26\u5bbd\u4e0b\u9700\u89817\u5929\u3002<\/p>\n<p>\u89e3\u51b3\uff1a\u4e0d\u80fd\u53ea\u770b\u5907\u4efd\u9891\u7387\uff0c\u8fd8\u8981\u770b\u6062\u590d\u65f6\u95f4\u3002\u5e26\u5bbd\u4e0d\u591f\u7684\u8bdd\uff0c\u8981\u5728\u5f02\u5730\u7ad9\u70b9\u653e\u4e00\u4e2a&#8221;\u51c6\u5728\u7ebf&#8221;\u7684\u5907\u4efd\uff08\u589e\u91cf\u540c\u6b65\u5230\u80fd\u652f\u6491\u5c0f\u65f6\u7ea7\u6062\u590d\u7684\u7a0b\u5ea6\uff09\u3002<\/p>\n<hr \/>\n<h2>\u516d\u3001\u603b\u7ed3\uff1a\u5907\u4efd\u65b9\u6848\u7684\u8bc4\u4f30\u7ef4\u5ea6<\/h2>\n<p>\u9009\u578b\u6216\u8005\u8bc4\u4f30\u73b0\u6709\u65b9\u6848\u65f6\uff0c\u4ece\u8fd9\u51e0\u4e2a\u7ef4\u5ea6\u6253\u5206\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>\u7ef4\u5ea6<\/th>\n<th>\u5dee\uff080\u5206\uff09<\/th>\n<th>\u4e2d\uff081\u5206\uff09<\/th>\n<th>\u597d\uff082\u5206\uff09<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>RPO<\/td>\n<td>&gt;24\u5c0f\u65f6<\/td>\n<td>1-24\u5c0f\u65f6<\/td>\n<td>&lt;1\u5c0f\u65f6<\/td>\n<\/tr>\n<tr>\n<td>RTO<\/td>\n<td>&gt;7\u5929<\/td>\n<td>1-7\u5929<\/td>\n<td>&lt;1\u5929<\/td>\n<\/tr>\n<tr>\n<td>\u8de8\u5730\u57df<\/td>\n<td>\u65e0<\/td>\n<td>\u540c\u57ce<\/td>\n<td>\u8de8region<\/td>\n<\/tr>\n<tr>\n<td>\u6f14\u7ec3\u9891\u7387<\/td>\n<td>\u4ece\u4e0d<\/td>\n<td>\u534a\u5e74\u4e00\u6b21<\/td>\n<td>\u6bcf\u5b63\u5ea6<\/td>\n<\/tr>\n<tr>\n<td>\u81ea\u52a8\u5316\u7a0b\u5ea6<\/td>\n<td>\u7eaf\u624b\u52a8<\/td>\n<td>\u534a\u81ea\u52a8<\/td>\n<td>\u5168\u81ea\u52a8<\/td>\n<\/tr>\n<tr>\n<td>\u7248\u672c\u652f\u6301<\/td>\n<td>\u4ec5\u6700\u65b0\u7248<\/td>\n<td>\u652f\u6301N\u4e2a\u7248\u672c<\/td>\n<td>\u65e0\u9650\u7248\u672c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u76ee\u6807\uff1aRPO\u22641\u5c0f\u65f6\uff0cRTO\u22641\u5929\uff0c\u8de8region\uff0c\u5b63\u5ea6\u6f14\u7ec3\uff0c\u5168\u81ea\u52a8\u3002<\/p>\n<hr \/>\n<p>\u5907\u4efd\u8fd9\u4ef6\u4e8b\uff0c\u6838\u5fc3\u5c31\u4e00\u53e5\u8bdd\uff1a<strong>\u4e0d\u6015\u4e00\u4e07\uff0c\u53ea\u6015\u4e07\u4e00<\/strong>\u3002\u6570\u636e\u4e22\u4e86\u518d\u6765\u540e\u6094\uff0c\u6210\u672c\u592a\u9ad8\u3002\u8d81\u73b0\u5728\u8fd8\u6ca1\u51fa\u4e8b\uff0c\u628a\u5907\u4efd\u65b9\u6848\u597d\u597d\u68b3\u7406\u4e00\u904d\uff0c\u503c\u5f97\u3002<\/p>\n<hr \/>\n<p><strong>\u6807\u7b7e<\/strong>\uff1a\u8fd0\u7ef4\u3001\u707e\u5907\u3001\u6570\u636e\u5b89\u5168\u3001\u4f01\u4e1a\u4e91\u76d8\u3001\u5b58\u50a8<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5e72\u8fd0\u7ef4\u6700\u6015\u4ec0\u4e48\uff1f\u4e0d\u662f\u534a\u591c\u670d\u52a1\u5668\u6302\u4e86\uff0c\u662f\u6570\u636e\u4e22\u4e86\u627e\u4e0d\u56de\u6765\u3002 \u53bb&#8230; <a class=\"read-more\" href=\"https:\/\/www.babel.cc\/blog\/?p=6911\">[Continue Reading]<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-6911","post","type-post","status-publish","format-standard","hentry","category-2","no-post-thumbnail"],"_links":{"self":[{"href":"https:\/\/www.babel.cc\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6911","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.babel.cc\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.babel.cc\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.babel.cc\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.babel.cc\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6911"}],"version-history":[{"count":1,"href":"https:\/\/www.babel.cc\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6911\/revisions"}],"predecessor-version":[{"id":6912,"href":"https:\/\/www.babel.cc\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6911\/revisions\/6912"}],"wp:attachment":[{"href":"https:\/\/www.babel.cc\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6911"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.babel.cc\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6911"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.babel.cc\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}