docker gitlab backup & restore
docker상에서 운영중이 gitlab의 백업 및 리스토어 #backup [root@localhost ~]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES a336aa66475e gitlab/gitlab-ce:latest "/assets/wrapper" 6 hours ago Exited (137) 6 hours ago gitlabgnoti 95013969775b gitlab/gitlab-ce:latest "/assets/wrapper" 29 hours ago Up 6 hours (healthy) 443/tcp, 0.0.0.0:6015->22/tcp, 0.0.0.0:8897->80/tcp gitlab [root@localhost ~]# docker exec -i -t gitlab bash [root@localhost ~]# docker exec -i -t gitlab bash root@gitlab:/# gitlab-rake gitlab:backup:create 2019-09-18 12:32:59 +0000 -- Dumping database ... Dumping PostgreSQL database gitlabhq_production ... [DONE] 2019-09-18 12:33:03 +0000 -- done 2019-09-18 12:33:03 +0000 -- Dumping repositories ... * gnoti/searchman