{"id":654493,"date":"2025-10-16T22:03:05","date_gmt":"2025-10-16T14:03:05","guid":{"rendered":"http:\/\/puo.cn\/?p=654493"},"modified":"2025-10-16T22:03:06","modified_gmt":"2025-10-16T14:03:06","slug":"%e8%85%be%e8%ae%af%e4%ba%91%e8%bd%bb%e9%87%8f%e6%9c%8d%e5%8a%a1%e5%99%a8%e5%ae%9a%e6%97%b6%e5%88%9b%e5%bb%ba%e5%bf%ab%e7%85%a7","status":"publish","type":"post","link":"http:\/\/puo.cn\/?p=654493","title":{"rendered":"\u817e\u8baf\u4e91\u8f7b\u91cf\u670d\u52a1\u5668\u5b9a\u65f6\u521b\u5efa\u5feb\u7167"},"content":{"rendered":"<p>\u4e70\u4e86\u817e\u8baf\u65e0\u5fe7\u670d\u52a1\u5668\u4ee5\u540e\uff0c\u56fd\u5185\u670d\u52a1\u5668\u4e5f\u5c31\u57fa\u672c\u4f7f\u7528\u817e\u8baf\u4e91\u4e86\u3002\u6700\u8fd1\u60f3\u7740\u65e2\u7136\u817e\u8baf\u4e91\u6709\u5feb\u7167\u529f\u80fd\uff0c\u90a3\u4e3a\u4ec0\u4e48\u4e0d\u5229\u7528\u8d77\u6765\uff0c\u5f53\u4f5c\u7ed9\u670d\u52a1\u5668\u8fdb\u884c\u6570\u636e\u5907\u4efd\u3002<\/p>\n<p>\u4f46\u662f\u6bcf\u5929\u624b\u52a8\u64cd\u4f5c\u53c8\u592a\u9ebb\u70e6\uff0c\u4e8e\u662f\u60f3\u5229\u7528\u817e\u8baf\u4e91\u7684 api \u521b\u5efa\u5b9a\u65f6\u4efb\u52a1\uff0c\u6bcf\u5929\u81ea\u52a8\u521b\u5efa\u5feb\u7167\u3002<\/p>\n<p>\u4f7f\u7528\u65b9\u5f0f\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u83b7\u53d6\u817e\u8baf\u4e91\u5bc6\u94a5<\/li>\n<\/ol>\n<p>\u5730\u5740\uff1a<a rel=\"nofollow\" href=\"https:\/\/console.cloud.tencent.com\/cam\/capi\" target=\"blank\" rel=\"nofollow\">https:\/\/console.cloud.tencent.com\/cam\/capi<\/a><\/p>\n<ol start=\"2\">\n<li>\u83b7\u53d6\u5b9e\u4f8bid<\/li>\n<\/ol>\n<p>\u5730\u5740\uff1a<a rel=\"nofollow\" href=\"https:\/\/console.cloud.tencent.com\/lighthouse\" target=\"blank\" rel=\"nofollow\">https:\/\/console.cloud.tencent.com\/lighthouse<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-654494\" title=\"20251017060213245\" src=\"\/wp-content\/uploads\/replace\/b90ab5341c281729c976288c25d8d5e3.png\" alt=\"20251017060213245\" width=\"667\" height=\"496\" \/><\/p>\n<ol start=\"3\">\n<li>\u786e\u5b9a\u670d\u52a1\u5668\u5730\u57df<\/li>\n<\/ol>\n<p>\u53c2\u8003\u5730\u5740\uff1a<a rel=\"nofollow\" href=\"https:\/\/www.tencentcloud.com\/zh\/document\/product\/215\/31786\" target=\"blank\" rel=\"nofollow\">https:\/\/www.tencentcloud.com\/zh\/document\/product\/215\/31786<\/a><\/p>\n<p>\u6bd4\u5982\u6211\u7684\u670d\u52a1\u5668\u662f\u5e7f\u5dde\u4e09\u533a\uff0c\u90a3\u4e48\u5730\u57df\u5c31\u662f\u00a0<code>ap-guangzhou<\/code>\u3002<\/p>\n<ol start=\"4\">\n<li>\u521b\u5efa\u5bb9\u5668<\/li>\n<\/ol>\n<p>v1 \u7248\u672c\uff0c\u9002\u5408\u5355\u4e2a\u8d26\u6237\u5355\u4e2a\u670d\u52a1\u5668\uff0c\u8fd0\u884c\u6bd4\u8f83\u7b80\u5355\u3002(\u5373\u4f7f\u5355\u4e2a\u4e5f\u5efa\u8bae\u4f7f\u7528\u5176\u4ed6\u7248\u672c\uff0c\u65e5\u5fd7\u66f4\u5168)<\/p>\n<div class=\"pk-code-tools\" data-pre-id=\"hljs-item-0\">\n<div class=\"dot\"><\/div>\n<div class=\"actions\">\n<div><\/div>\n<\/div>\n<\/div>\n<table class=\"hljs-ln\">\n<tbody>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"1\">docker run -d <span class=\"hljs-comment\">&#8211;name snapshot \\<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"2\">-e INSTANCE_ID=<span class=\"hljs-string\">&#8220;lhins-xxx&#8221;<\/span> \\<\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"3\">-e REGION=<span class=\"hljs-string\">&#8220;ap-xxx&#8221;<\/span> \\<\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"4\">-e SECRET_ID=<span class=\"hljs-string\">&#8220;xxx&#8221;<\/span> \\<\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"5\">-e SECRET_KEY=<span class=\"hljs-string\">&#8220;xxx&#8221;<\/span> \\<\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"6\">-e CRON=<span class=\"hljs-string\">&#8220;30 3 * * *&#8221;<\/span> \\<\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"7\">hausen1012\/tencent-snapshot:v1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<p><strong>2024\u5e7410\u6708\u66f4\u65b0<\/strong><\/p>\n<p>v2 \u7248\u672c\uff0c\u9002\u5408\u6709\u591a\u53f0\u670d\u52a1\u5668\u9700\u8981<a rel=\"nofollow\" title=\"\u67e5\u770b\u5b9a\u65f6\u5feb\u7167\u7684\u6240\u6709\u6587\u7ae0\" href=\"https:\/\/www.amjun.com\/tag\/dskz\/\" target=\"blank\">\u5b9a\u65f6\u5feb\u7167<\/a>\u7684\u60c5\u51b5\u3002<\/p>\n<p>\u9996\u5148\u521b\u5efa\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n<div class=\"pk-code-tools\" data-pre-id=\"hljs-item-1\">\n<div class=\"dot\"><\/div>\n<div class=\"actions\">\n<div><\/div>\n<\/div>\n<\/div>\n<table class=\"hljs-ln\">\n<tbody>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"1\"><span class=\"hljs-string\">mkdir<\/span> <span class=\"hljs-string\">-p<\/span> <span class=\"hljs-string\">\/home\/docker\/snapshot\/config\/<\/span> <span class=\"hljs-string\">&amp;&amp;<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"2\"><span class=\"hljs-string\">cat<\/span> <span class=\"hljs-string\">&gt;<\/span> <span class=\"hljs-string\">\/home\/docker\/snapshot\/config\/config.yaml<\/span> <span class=\"hljs-string\">&lt;&lt;EOF<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"3\"><span class=\"hljs-attr\">wy1:<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"4\"><span class=\"hljs-attr\">TASK_NAME:<\/span> <span class=\"hljs-string\">wy1<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"5\"><span class=\"hljs-attr\">INSTANCE_ID:<\/span> <span class=\"hljs-string\">lhins-xxx<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"6\"><span class=\"hljs-attr\">REGION:<\/span> <span class=\"hljs-string\">ap-xxx<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"7\"><span class=\"hljs-attr\">SECRET_ID:<\/span> <span class=\"hljs-string\">xxx<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"8\"><span class=\"hljs-attr\">SECRET_KEY:<\/span> <span class=\"hljs-string\">xxx<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"9\"><span class=\"hljs-attr\">CRON:<\/span> <span class=\"hljs-string\">&#8220;30 3 * * *&#8221;<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"10\"><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"11\"><span class=\"hljs-attr\">wy2:<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"12\"><span class=\"hljs-attr\">TASK_NAME:<\/span> <span class=\"hljs-string\">wy2<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"13\"><span class=\"hljs-attr\">INSTANCE_ID:<\/span> <span class=\"hljs-string\">lhins-xxx<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"14\"><span class=\"hljs-attr\">REGION:<\/span> <span class=\"hljs-string\">ap-xxx<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"15\"><span class=\"hljs-attr\">SECRET_ID:<\/span> <span class=\"hljs-string\">xxx<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"16\"><span class=\"hljs-attr\">SECRET_KEY:<\/span> <span class=\"hljs-string\">xxx<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"17\"><span class=\"hljs-attr\">CRON:<\/span> <span class=\"hljs-string\">&#8220;30 3 * * *&#8221;<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"18\"><span class=\"hljs-string\">EOF<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8fd0\u884c\u5bb9\u5668\uff1a<\/p>\n<div class=\"pk-code-tools\" data-pre-id=\"hljs-item-2\">\n<div class=\"dot\"><\/div>\n<div class=\"actions\">\n<div><\/div>\n<\/div>\n<\/div>\n<table class=\"hljs-ln\">\n<tbody>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"1\">docker run -d &#8211;name snapshot \\<\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"2\">-v \/home\/docker\/snapshot\/config\/<span class=\"hljs-symbol\">:\/app\/config<\/span> \\<\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"3\">hausen1012\/tencent-<span class=\"hljs-symbol\">snapshot:<\/span>v2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<p><strong>2025\u5e742\u6708\u66f4\u65b0<\/strong><\/p>\n<p>v3 \u7248\u672c\uff0c\u4e3a\u4e86\u4e0d\u6d6a\u8d39\u514d\u8d39\u5feb\u7167\u6570\u91cf\uff0c\u589e\u52a0\u00a0<code>RETAIN_DAYS<\/code>\u00a0\u53c2\u6570\uff0c\u4fdd\u7559\u6700\u65e7\u7684\u4e00\u6b21\u5feb\u7167\u65e5\u671f\u3002\u5373\u5220\u9664\u5feb\u7167\u65f6\uff0c\u5224\u65ad\u6700\u65e7\u7684\u5feb\u7167\u8ddd\u4eca\u662f\u5426\u8d85\u8fc7 20 \u5929\uff0c\u5982\u679c\u662f\u5219\u5220\u9664\uff0c\u5426\u5219\u53ea\u5220\u9664\u6700\u8fd1\u7684\u5feb\u7167\u3002<\/p>\n<div class=\"pk-code-tools\" data-pre-id=\"hljs-item-3\">\n<div class=\"dot\"><\/div>\n<div class=\"actions\">\n<div><\/div>\n<\/div>\n<\/div>\n<table class=\"hljs-ln\">\n<tbody>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"1\"><span class=\"hljs-string\">mkdir<\/span> <span class=\"hljs-string\">-p<\/span> <span class=\"hljs-string\">\/home\/docker\/snapshot\/config\/<\/span> <span class=\"hljs-string\">&amp;&amp;<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"2\"><span class=\"hljs-string\">cat<\/span> <span class=\"hljs-string\">&gt;<\/span> <span class=\"hljs-string\">\/home\/docker\/snapshot\/config\/config.yaml<\/span> <span class=\"hljs-string\">&lt;&lt;EOF<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"3\"><span class=\"hljs-attr\">wy1:<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"4\"><span class=\"hljs-attr\">TASK_NAME:<\/span> <span class=\"hljs-string\">wy1<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"5\"><span class=\"hljs-attr\">INSTANCE_ID:<\/span> <span class=\"hljs-string\">lhins-xxx<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"6\"><span class=\"hljs-attr\">REGION:<\/span> <span class=\"hljs-string\">ap-xxx<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"7\"><span class=\"hljs-attr\">SECRET_ID:<\/span> <span class=\"hljs-string\">xxx<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"8\"><span class=\"hljs-attr\">SECRET_KEY:<\/span> <span class=\"hljs-string\">xxx<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"9\"><span class=\"hljs-attr\">CRON:<\/span> <span class=\"hljs-string\">&#8220;30 3 * * *&#8221;<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"10\"><span class=\"hljs-attr\">RETAIN_DAYS:<\/span> <span class=\"hljs-number\">20<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"11\"><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"12\"><span class=\"hljs-attr\">wy2:<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"13\"><span class=\"hljs-attr\">TASK_NAME:<\/span> <span class=\"hljs-string\">wy2<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"14\"><span class=\"hljs-attr\">INSTANCE_ID:<\/span> <span class=\"hljs-string\">lhins-xxx<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"15\"><span class=\"hljs-attr\">REGION:<\/span> <span class=\"hljs-string\">ap-xxx<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"16\"><span class=\"hljs-attr\">SECRET_ID:<\/span> <span class=\"hljs-string\">xxx<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"17\"><span class=\"hljs-attr\">SECRET_KEY:<\/span> <span class=\"hljs-string\">xxx<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"18\"><span class=\"hljs-attr\">CRON:<\/span> <span class=\"hljs-string\">&#8220;30 3 * * *&#8221;<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"19\"><span class=\"hljs-attr\">RETAIN_DAYS:<\/span> <span class=\"hljs-number\">20<\/span><\/td>\n<\/tr>\n<tr>\n<td class=\"hljs-ln-line hljs-ln-code\" data-line-number=\"20\"><span class=\"hljs-string\">EOF<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p class=\"fs12 c-sub\">\n","protected":false},"excerpt":{"rendered":"<p>\u4e70\u4e86\u817e\u8baf\u65e0\u5fe7\u670d\u52a1\u5668\u4ee5\u540e\uff0c\u56fd\u5185\u670d\u52a1\u5668\u4e5f\u5c31\u57fa\u672c\u4f7f\u7528\u817e\u8baf\u4e91\u4e86\u3002\u6700\u8fd1\u60f3\u7740\u65e2\u7136\u817e\u8baf\u4e91\u6709\u5feb\u7167\u529f\u80fd\uff0c\u90a3\u4e3a\u4ec0\u4e48\u4e0d\u5229\u7528\u8d77\u6765\uff0c\u5f53\u4f5c\u7ed9\u670d\u52a1\u5668\u8fdb\u884c\u6570\u636e\u5907\u4efd\u3002 \u4f46\u662f\u6bcf\u5929\u624b\u52a8\u64cd\u4f5c\u53c8\u592a\u9ebb\u70e6\uff0c\u4e8e\u662f\u60f3\u5229\u7528\u817e\u8baf\u4e91\u7684 api \u521b\u5efa\u5b9a\u65f6\u4efb\u52a1\uff0c\u6bcf\u5929\u81ea\u52a8\u521b\u5efa\u5feb\u7167\u3002 \u4f7f\u7528\u65b9\u5f0f\u5982\u4e0b\uff1a \u83b7&#8230;<\/p>\n","protected":false},"author":1,"featured_media":654494,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[128],"tags":[603],"topic":[],"class_list":["post-654493","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-128","tag-603"],"_links":{"self":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/654493","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=654493"}],"version-history":[{"count":1,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/654493\/revisions"}],"predecessor-version":[{"id":654496,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/654493\/revisions\/654496"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/media\/654494"}],"wp:attachment":[{"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=654493"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=654493"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=654493"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftopic&post=654493"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}