binami gitlab 备份恢复

 

1.设定备份目录:
cat /opt/gitlab-8.8.4-0/apps/gitlab/htdocs/config/gitlab.yml

一般备份路径:/opt/gitlab-8.8.4-0/apps/gitlab/htdocs/tmp/backups

2.备份命令

cd /opt/gitlab-8.8.4-0/
./use_gitlab //切换环境
cd /opt/gitlab-8.8.4-0/apps/gitlab/htdocs
bundle exec bin/rake gitlab:backup:create RAILS_ENV=production


3.恢复

BACKUP=timestamp_of_backup  #(required if more than one backup exists):

cd /opt/gitlab-8.8.4-0/
./use_gitlab
cd /opt/gitlab-8.8.4-0/apps/gitlab/htdocs
bundle exec bin/rake  gitlab:backup:restore RAILS_ENV=production   BACKUP=1405247282
chown git:git -R /opt/gitlab-8.8.4-0/apps/gitlab/repositories

 

修改端口

/data/gitlab-8.13/apache2/conf/bitnami/bitnami.conf 文件中对应端口

/data/gitlab-8.13/apps/目录下的应用conf文件修改端口号

端口:gitlab.rb

gitlab/gitlab-shell/config.yml

gitlab-workhorse/scripts/ctl.sh

 

 

 

你可能感兴趣的:(Git)