我试图备份Git。我找到了这个脚本(在这里:https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/raketasks/backup_restore.md)
但是,如果我使用这个命令,它会说命令未找到。我做错了什么?
root@gitlab-test 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
但是此命令在upload.rb
处停止,并显示Errno::ENOENT: No such file or directory
。