2016-07-27 52 views
2

だから私はgitのバックアップをしようとします。私はこのスクリプト(ここでは:https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/raketasks/backup_restore.md)を見つけました
しかし、私はこのコマンドを使用すると、コマンドが見つからないと言います。私は間違って何をしていますか?Linuxはgitlab-rakeを見つけることができませんか?

[email protected] git/gitlab# sudo gitlab-rake gitlab:backup:create SKIP=db,uploads                            
    sudo: gitlab-rake: command not found 

はまた、私は、コマンド

sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production

しかし、コマンドがErrno::ENOENT: No such file or directoryupload.rbで停止していることとを試してみました。

答えて

0

これはgitlabがインストールされている場所によって異なります。たとえば

PATH=$PATH:/opt/gitlab/bin 
export PATH 

チェックgitlab-rake場合/opt/gitlab/binでもあります。

There should be symlinks in /usr/bin
はない場合は、多分あなたは、ソースからソース(sudo -u git -H bundle exec rake

+0

からGitLabをインストールしている:多分シンボリックリンクの問題を:https://gitlab.com/gitlab-org/gitlab-ce/issues/899#note_2558643 – VonC

関連する問題