docker-compose创建的gitlab迁移到ECS 安装gitlab需要的组件: ssh-copy-id -i ~/.ssh/id_rsa.pub backup_ip #授信免密登陆 scp backup_files backup_ip:/data/gitlab/backups/ #传输备份文件 yum install curl policycoreutils openssh-server openssh-clients postfix policycoreutils-python -y wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-11.8.1-ce.0.el7.x86_64.rpm rpm -ivh gitlab-ce-11.8.1-ce.0.el7.x86_64.rpm 进行备份迁移: 注意:先改配置文件 [root@pro /var/opt/gitlab/backups]# vim /etc/gitlab/gitlab.rb ... gitlab_rails['manage_..... Gitlab迁移 Gitlab