BitnamiGitLab备份升级操作

来源:互联网 发布:js防水涂料报价 编辑:程序博客网 时间:2024/06/05 03:12


bundle exec/opt/gitlab-7.13.5-0/apps/gitlab/htdocs/bin/rakegitlab:backup:restore RAILS_ENV=production   BACKUP=1450907787

备份  gitlab.yml文件中定义备份路径

 

cd /opt/gitlab-7.13.5-0/

./use_gitlab

cd /opt/gitlab-7.13.5-0/apps/gitlab/htdocs

 

 

bundle exec bin/rakegitlab:backup:create RAILS_ENV=production  #这里得到的备份文件夹属组为root,可以在备份之后将备份文件夹

属组改为 git或者,在升级之后将 repositories文件夹的权限给 git。

 

cd /opt/gitlab-7.13.5-0/

./use_gitlab

cd /opt/gitlab-7.13.5-0/apps/gitlab/htdocs

bundleexec bin/rake  gitlab:backup:restoreRAILS_ENV=production   BACKUP=1405247282  #这里的数字是备份之后本分文件的前缀

chown git:git -R/opt/gitlab-6.4.3-1/apps/gitlab/repositories  #此处如果权限不给git则升级之后在页面上看不到仓库的服务器路径


注意:

  在切换目录的时候不能使用命令 cd /opt/gitlb*/...一定要输入完整的路径,否则可能得到升级命令找不到的错误。




0 0
原创粉丝点击