{"id":54576,"date":"2025-08-13T08:00:10","date_gmt":"2025-08-13T00:00:10","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/54576.html"},"modified":"2025-08-13T08:00:10","modified_gmt":"2025-08-13T00:00:10","slug":"%e5%a6%82%e4%bd%95%e8%bf%81%e7%a7%bbgitlab%e5%88%b0%e5%8f%a6%e4%b8%80%e5%8f%b0%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/54576.html","title":{"rendered":"\u5982\u4f55\u8fc1\u79fbgitlab\u5230\u53e6\u4e00\u53f0\u670d\u52a1\u5668"},"content":{"rendered":"<h2>\u524d\u8a00<\/h2>\n<p>\u56e0\u4e3a\u516c\u53f8\u8981\u8fc1\u79fbgitlab\u5230\u65b0\u7684\u5408\u9002\u7684\u670d\u52a1\u5668&#xff0c;\u56e0\u6b64\u9700\u8981\u5bf9gitlab\u505a\u4e00\u6b21\u6574\u4f53\u8fc1\u79fb&#xff0c;\u5728\u53c2\u8003\u4e86\u5b98\u65b9\u6587\u6863\u548c\u81ea\u5df1\u5b9e\u8df5\u540e&#xff0c;\u5f97\u51fa\u4e86\u5982\u4e0b\u7684\u89e3\u51b3\u6b65\u9aa4&#xff0c;\u4ec5\u4f9b\u53c2\u8003&#xff0c;<span style=\"color:#fe2c24\">\u7ec6\u8282\u53ef\u80fd\u56e0\u6bcf\u4e2a\u4eba\u9700\u6c42\u800c\u6709\u6240\u5dee\u5f02<\/span>\u3002<\/p>\n<h2>\u5404\u8f6f\u4ef6\u7248\u672c<\/h2>\n<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" style=\"width:500px\">\n<tbody>\n<tr>\n<td>\u8f6f\u4ef6\u540d\u79f0<\/td>\n<td>\u7248\u672c<\/td>\n<\/tr>\n<tr>\n<td>gitlab<\/td>\n<td>18.2-jh<\/td>\n<\/tr>\n<tr>\n<td>\u670d\u52a1\u5668<\/td>\n<td>aws ec2<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u53c2\u8003\u6587\u6863<\/h2>\n<p>gitlab\u5b98\u65b9\u53c2\u8003\u6587\u6863&#xff1a;https:\/\/gitlab.cn\/docs\/jh\/administration\/backup_restore<\/p>\n<h2>\u90e8\u7f72\u6587\u4ef6<\/h2>\n<p>\u56e0\u4e3a\u6211\u662f\u91c7\u7528docker compose\u6587\u4ef6\u90e8\u7f72\u7684&#xff0c;docker-compose.yaml\u6587\u4ef6\u5982\u4e0b&#xff0c;\u4e00\u4e9b\u654f\u611f\u4fe1\u606f\u5df2\u53bb\u9664&#xff0c;\u5927\u5bb6\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u81ea\u884c\u586b\u5199\u6216\u4fee\u6539<\/p>\n<p>services: \u00a0 web: \u00a0 \u00a0 image: &#039;registry.gitlab.cn\/omnibus\/gitlab-jh:18.2.1-jh.0&#039; \u00a0 \u00a0 restart: always \u00a0 \u00a0 pull_policy: always \u00a0 \u00a0 hostname: &#039;&#039; \u00a0 \u00a0 environment: \u00a0 \u00a0 \u00a0 GITLAB_OMNIBUS_CONFIG: | \u00a0 \u00a0 \u00a0 \u00a0 external_url &#039;&#039; \u00a0 \u00a0 \u00a0 \u00a0 # Add any other gitlab.rb configuration here, each on its own line \u00a0 \u00a0 ports: \u00a0 \u00a0 \u00a0 &#8211; &#039;80:80&#039; \u00a0 \u00a0 \u00a0 &#8211; &#039;443:443&#039; \u00a0 \u00a0 \u00a0 &#8211; &#039;2224:22&#039; \u00a0 \u00a0 \u00a0 &#8211; &#039;8929:8929&#039; \u00a0 \u00a0 volumes: \u00a0 \u00a0 \u00a0 &#8211; &#039;.\/config:\/etc\/gitlab&#039; \u00a0 \u00a0 \u00a0 &#8211; &#039;.\/logs:\/var\/log\/gitlab&#039; \u00a0 \u00a0 \u00a0 &#8211; &#039;.\/data:\/var\/opt\/gitlab&#039; \u00a0 \u00a0 \u00a0 &#8211; &#039;.\/path\/to\/cert:\/etc\/gitlab\/ssl&#039; \u00a0 \u00a0 shm_size: &#039;256m&#039;<\/p>\n<h2>\u5177\u4f53\u6b65\u9aa4\u00a0<\/h2>\n<h3>\u65e7\u670d\u52a1\u5668\u4e0a\u6267\u884c<\/h3>\n<h4>\u67e5\u770bgitlab\u5bb9\u5668\u540d<\/h4>\n<p>docker ps <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"256\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812235959-689bd57f2ed43.png\" width=\"1900\" \/>\u00a0<\/p>\n<h4>\u00a0\u6267\u884c\u5907\u4efd\u64cd\u4f5c<\/h4>\n<p>docker exec -t gitlab-web-1 gitlab-backup create<\/p>\n<p>\u7b49\u5f85\u5907\u4efd\u5b8c\u6210\u00a0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"788\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813000000-689bd58086009.png\" width=\"1924\" \/><\/p>\n<p>\u5907\u4efd\u6587\u4ef6\u4e00\u822c\u9ed8\u8ba4\u653e\u5728\u5bb9\u5668\u5185\u7684\/var\/opt\/gitlab\/backups\u76ee\u5f55\u4e0b&#xff0c;\u56e0\u4e3a\u6211\u5c06\/var\/opt\/gitlab\u6620\u5c04\u5230\u5bbf\u4e3b\u673a\u7684.\/data\u76ee\u5f55&#xff0c;\u56e0\u6b64\u76f4\u63a5\u5728\u5bbf\u4e3b\u673a\u4e0a\u8fdb\u5165~\/data\/backups\u6765\u67e5\u770b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"72\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813000003-689bd5831e5b9.png\" width=\"818\" \/><\/p>\n<p><span style=\"color:#fe2c24\">\u6e29\u99a8\u63d0\u793a &#xff1a;\u5efa\u8bae\u4e0d\u8981\u66f4\u6539\u540d\u5b57&#xff0c;\u56e0\u4e3a\u540e\u7eed\u7684\u6062\u590d\u5bf9\u6587\u4ef6\u540d\u683c\u5f0f\u6709\u8981\u6c42&#xff01;&#xff01;&#xff01;<\/span><\/p>\n<h4>\u5c06\u5907\u4efd\u6587\u4ef6\u8f6c\u79fb\u5230\u65b0\u670d\u52a1\u5668<\/h4>\n<p>\u65b9\u6cd5\u5f88\u591a&#xff0c;\u4e0a\u4f20\u5230oss&#xff0c;\u6216\u8005\u901a\u8fc7\u5176\u4ed6\u4efb\u610f\u65b9\u5f0f\u8f6c\u79fb\u5747\u53ef&#xff0c;\u56e0\u4e3a\u6211\u7684\u670d\u52a1\u5668\u662faws ec2&#xff0c;\u6240\u4ee5\u6211\u8fd9\u91cc\u9009\u62e9\u5c06\u5176\u4e0a\u4f20\u5230aws s3<\/p>\n<p><span style=\"color:#fe2c24\">\u6ce8\u610f<\/span><\/p>\n<li><span style=\"color:#fe2c24\">\u6b64\u547d\u4ee4\u53ea\u9002\u7528aws s3&#xff0c;\u963f\u91cc\u4e91\u6216\u8005\u5176\u4ed6oss\u670d\u52a1\u8bf7\u53c2\u8003\u5bf9\u5e94\u7684\u5b98\u65b9\u6587\u6863<\/span><\/li>\n<li><span style=\"color:#fe2c24\">\u5982\u679c\u4f7f\u7528aws s3&#xff0c;\u5c06your-bucket-name\u6539\u6210\u81ea\u5df1\u7684bucket name<\/span><\/li>\n<p>aws s3 cp 1753761475_2025_07_29_18.2.1-jh_gitlab_backup.tar s3:\/\/your-bucket-name\/1753761475_2025_07_29_18.2.1-jh_gitlab_backup.tar <\/p>\n<p>\u7b49\u5f85\u4e0a\u4f20\u5b8c\u6210<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"152\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813000003-689bd58394562.png\" width=\"1908\" \/><\/p>\n<h3>\u65b0\u670d\u52a1\u5668\u4e0a\u6267\u884c\u00a0<\/h3>\n<h4>\u542f\u52a8\u65b0gitlab<\/h4>\n<p>\u4f7f\u7528\u65e7\u7684docker compose\u6587\u4ef6\u542f\u52a8\u6216\u8005\u9ed8\u8ba4\u542f\u52a8\u4e00\u4e2a\u5747\u53ef&#xff0c;\u6211\u8fd9\u91cc\u4f7f\u7528\u65e7\u7684docker compose\u6587\u4ef6\u6765\u542f\u52a8<\/p>\n<p><span style=\"color:#fe2c24\">\u6ce8\u610f&#xff0c;\u5982\u679c\u4f7f\u7528\u65e7docker compose\u6587\u4ef6\u6765\u542f\u52a8&#xff0c;\u9700\u8981\u5c06\u5bb9\u5668\u5377\u5bf9\u5e94\u7684\u76ee\u5f55\u521b\u5efa\u597d&#xff0c;\u540c\u65f6\u5c06\u65e7gitlab\u7684config\u76ee\u5f55\u4e0b\u7684\u5185\u5bb9\u5148\u884c\u62f7\u8d1d\u8fc7\u6765&#xff0c;\u8981\u4e0d\u7136\u4f1a\u542f\u52a8\u5931\u8d25<\/span><\/p>\n<p>\u7b49\u5f85\u56db\u4e94\u5206\u949f&#xff0c;\u65b0gitlab\u5bb9\u5668\u542f\u52a8\u6210\u529f&#xff0c;\u5e76\u4e14\u5065\u5eb7\u68c0\u67e5\u72b6\u6001\u4e3ahealthy<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"258\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813000004-689bd584559de.png\" width=\"1920\" \/><\/p>\n<h4>\u5c06\u5907\u4efd\u6587\u4ef6\u8f6c\u79fb\u8fc7\u6765\u00a0<\/h4>\n<p>\u56e0\u4e3a\u6211\u4e4b\u524d\u662f\u4f20\u5230s3&#xff0c;\u56e0\u6b64\u6211\u4eces3\u4e0a\u62c9\u53d6\u4e0b\u6765&#xff0c;\u4e3a\u4e86\u65b9\u4fbf&#xff0c;\u6211\u76f4\u63a5\u5728backups\u76ee\u5f55\u4e0b\u6267\u884c\u8fd9\u4e2a\u64cd\u4f5c<\/p>\n<p>aws s3 cp s3:\/\/your-bucket-name\/1753761475_2025_07_29_18.2.1-jh_gitlab_backup.tar . <\/p>\n<p>\u7b49\u5f85\u62c9\u53d6\u5b8c\u6210<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"116\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813000005-689bd58573147.png\" width=\"1902\" \/><\/p>\n<h4>\u6267\u884c\u6062\u590d\u6587\u4ef6<\/h4>\n<p><span style=\"color:#fe2c24\">\u6ce8\u610f&#xff1a;gitlab\u4f1a\u81ea\u52a8\u8865\u5168\u6587\u4ef6\u540e\u7f00\u540d_gitlab_backup.tar&#xff0c;\u56e0\u6b64\u6587\u4ef6\u539f\u540d\u662f1753761475_2025_07_29_18.2.1-jh_gitlab_backup.tar&#xff0c;\u4f46\u662f\u547d\u4ee4\u4e2d\u53ea\u8f93\u51651753761475_2025_07_29_18.2.1-jh<\/span><\/p>\n<p>docker exec -it gitlab-web-1 gitlab-backup restore BACKUP&#061;1753761475_2025_07_29_18.2.1-jh <\/p>\n<p>\u00a0\u7b49\u5f85\u89e3\u6790\u5b8c\u6210\u540e\u8fdb\u5165\u5f15\u5bfc<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"580\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813000006-689bd5863416a.png\" width=\"1898\" \/><\/p>\n<p><span style=\"color:#fe2c24\">\u6ce8\u610f&#xff0c;\u6062\u590d\u4f1a\u683c\u5f0f\u5316\u65b0gitlab\u7684\u6570\u636e\u5e93&#xff0c;\u4e0d\u8fc7\u4f5c\u4e3a\u5373\u5c06\u8fc1\u79fb\u7684\u65b0gitlab&#xff0c;\u672c\u6765\u5c31\u662f\u8981\u88ab\u8986\u76d6\u7684&#xff0c;\u8fd9\u4e2a\u5e76\u4e0d\u9700\u8981\u62c5\u5fc3<\/span><\/p>\n<p><span style=\"color:null\">\u8f93\u5165yes\u540e\u7ee7\u7eed<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"182\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813000007-689bd587b9cbf.png\" width=\"994\" \/><\/p>\n<p>\u7ee7\u7eed\u8f93\u5165yes<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"772\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250813000008-689bd5883a958.png\" width=\"1898\" \/><\/p>\n<h3>\u8fc1\u79fb\u5b8c\u6210<\/h3>\n<p>\u8fdb\u5165\u65b0\u670d\u52a1\u5668\u7684\u5730\u5740&#xff0c;\u53ef\u4ee5\u67e5\u770b\u5230\u8d26\u6237\u548c\u4ed3\u5e93\u7b49\u4fe1\u606f\u90fd\u5df2\u7ecf\u8fc1\u79fb\u8fc7\u53bb\u4e86<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb793\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf13\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86GitLab\u670d\u52a1\u5668\u8fc1\u79fb\u7684\u5b8c\u6574\u6b65\u9aa4\u3002\u65e7\u670d\u52a1\u5668\u4e0a\u4f7f\u7528Docker\u6267\u884c\u5907\u4efd\u547d\u4ee4\uff0c\u5907\u4efd\u6587\u4ef6\u9ed8\u8ba4\u5b58\u653e\u5728\/var\/opt\/gitlab\/backups\u76ee\u5f55\u3002\u901a\u8fc7AWS S3\u5c06\u5907\u4efd\u6587\u4ef6\u4f20\u8f93\u5230\u65b0\u670d\u52a1\u5668\u540e\uff0c\u4f7f\u7528\u539f\u6709docker-compose\u6587\u4ef6\u542f\u52a8\u65b0GitLab\u5b9e\u4f8b\uff08\u9700\u9884\u5148\u914d\u7f6e\u597d\u5377\u76ee\u5f55\uff09\u3002\u6267\u884c\u6062\u590d\u547d\u4ee4\u65f6\u9700\u6ce8\u610f\u6587\u4ef6\u540d\u683c\u5f0f\u8981\u6c42\uff0c\u6062\u590d\u8fc7\u7a0b\u4f1a\u8986\u76d6\u65b0\u670d\u52a1\u5668\u6570\u636e\u5e93\u3002\u6700\u540e\u9a8c\u8bc1\u663e\u793a\u8d26\u6237\u548c\u4ed3\u5e93\u7b49\u6570\u636e\u5747\u5df2\u6210\u529f\u8fc1\u79fb\u3002\u6574\u4e2a\u8fc7\u7a0b\u6d89\u53ca\u5907\u4efd\u3001\u4f20\u8f93\u3001\u6062\u590d\u4e09\u4e2a\u4e3b\u8981\u73af\u8282\u3002_gitlab \u6574\u4e2a\u8fc1\u79fb<\/p>\n","protected":false},"author":2,"featured_media":54567,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[89,92,273,44],"topic":[],"class_list":["post-54576","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-git","tag-github","tag-gitlab","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5982\u4f55\u8fc1\u79fbgitlab\u5230\u53e6\u4e00\u53f0\u670d\u52a1\u5668 - \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\/54576.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u8fc1\u79fbgitlab\u5230\u53e6\u4e00\u53f0\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb793\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf13\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86GitLab\u670d\u52a1\u5668\u8fc1\u79fb\u7684\u5b8c\u6574\u6b65\u9aa4\u3002\u65e7\u670d\u52a1\u5668\u4e0a\u4f7f\u7528Docker\u6267\u884c\u5907\u4efd\u547d\u4ee4\uff0c\u5907\u4efd\u6587\u4ef6\u9ed8\u8ba4\u5b58\u653e\u5728\/var\/opt\/gitlab\/backups\u76ee\u5f55\u3002\u901a\u8fc7AWS S3\u5c06\u5907\u4efd\u6587\u4ef6\u4f20\u8f93\u5230\u65b0\u670d\u52a1\u5668\u540e\uff0c\u4f7f\u7528\u539f\u6709docker-compose\u6587\u4ef6\u542f\u52a8\u65b0GitLab\u5b9e\u4f8b\uff08\u9700\u9884\u5148\u914d\u7f6e\u597d\u5377\u76ee\u5f55\uff09\u3002\u6267\u884c\u6062\u590d\u547d\u4ee4\u65f6\u9700\u6ce8\u610f\u6587\u4ef6\u540d\u683c\u5f0f\u8981\u6c42\uff0c\u6062\u590d\u8fc7\u7a0b\u4f1a\u8986\u76d6\u65b0\u670d\u52a1\u5668\u6570\u636e\u5e93\u3002\u6700\u540e\u9a8c\u8bc1\u663e\u793a\u8d26\u6237\u548c\u4ed3\u5e93\u7b49\u6570\u636e\u5747\u5df2\u6210\u529f\u8fc1\u79fb\u3002\u6574\u4e2a\u8fc7\u7a0b\u6d89\u53ca\u5907\u4efd\u3001\u4f20\u8f93\u3001\u6062\u590d\u4e09\u4e2a\u4e3b\u8981\u73af\u8282\u3002_gitlab \u6574\u4e2a\u8fc1\u79fb\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/54576.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-13T00:00:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812235959-689bd57f2ed43.png\" \/>\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=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/54576.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/54576.html\",\"name\":\"\u5982\u4f55\u8fc1\u79fbgitlab\u5230\u53e6\u4e00\u53f0\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-13T00:00:10+00:00\",\"dateModified\":\"2025-08-13T00:00:10+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/54576.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/54576.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/54576.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u8fc1\u79fbgitlab\u5230\u53e6\u4e00\u53f0\u670d\u52a1\u5668\"}]},{\"@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":"\u5982\u4f55\u8fc1\u79fbgitlab\u5230\u53e6\u4e00\u53f0\u670d\u52a1\u5668 - \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\/54576.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u8fc1\u79fbgitlab\u5230\u53e6\u4e00\u53f0\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb793\u6b21\uff0c\u70b9\u8d5e14\u6b21\uff0c\u6536\u85cf13\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86GitLab\u670d\u52a1\u5668\u8fc1\u79fb\u7684\u5b8c\u6574\u6b65\u9aa4\u3002\u65e7\u670d\u52a1\u5668\u4e0a\u4f7f\u7528Docker\u6267\u884c\u5907\u4efd\u547d\u4ee4\uff0c\u5907\u4efd\u6587\u4ef6\u9ed8\u8ba4\u5b58\u653e\u5728\/var\/opt\/gitlab\/backups\u76ee\u5f55\u3002\u901a\u8fc7AWS S3\u5c06\u5907\u4efd\u6587\u4ef6\u4f20\u8f93\u5230\u65b0\u670d\u52a1\u5668\u540e\uff0c\u4f7f\u7528\u539f\u6709docker-compose\u6587\u4ef6\u542f\u52a8\u65b0GitLab\u5b9e\u4f8b\uff08\u9700\u9884\u5148\u914d\u7f6e\u597d\u5377\u76ee\u5f55\uff09\u3002\u6267\u884c\u6062\u590d\u547d\u4ee4\u65f6\u9700\u6ce8\u610f\u6587\u4ef6\u540d\u683c\u5f0f\u8981\u6c42\uff0c\u6062\u590d\u8fc7\u7a0b\u4f1a\u8986\u76d6\u65b0\u670d\u52a1\u5668\u6570\u636e\u5e93\u3002\u6700\u540e\u9a8c\u8bc1\u663e\u793a\u8d26\u6237\u548c\u4ed3\u5e93\u7b49\u6570\u636e\u5747\u5df2\u6210\u529f\u8fc1\u79fb\u3002\u6574\u4e2a\u8fc7\u7a0b\u6d89\u53ca\u5907\u4efd\u3001\u4f20\u8f93\u3001\u6062\u590d\u4e09\u4e2a\u4e3b\u8981\u73af\u8282\u3002_gitlab \u6574\u4e2a\u8fc1\u79fb","og_url":"https:\/\/www.wsisp.com\/helps\/54576.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-13T00:00:10+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250812235959-689bd57f2ed43.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/54576.html","url":"https:\/\/www.wsisp.com\/helps\/54576.html","name":"\u5982\u4f55\u8fc1\u79fbgitlab\u5230\u53e6\u4e00\u53f0\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-13T00:00:10+00:00","dateModified":"2025-08-13T00:00:10+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/54576.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/54576.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/54576.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u8fc1\u79fbgitlab\u5230\u53e6\u4e00\u53f0\u670d\u52a1\u5668"}]},{"@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\/54576","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=54576"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/54576\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/54567"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=54576"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=54576"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=54576"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=54576"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}