命令以 Errno: :EEXIST 消息结束
Command end with a Errno: :EEXIST Message
所以我正在尝试使用此脚本从源备份 git:https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/raketasks/backup_restore.md(以及命令:sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=生产)
它在开始时有效,但在转储存储库时停止。
我需要解决什么问题?
Dumping repositories ...
rake aborted!
Errno::EEXIST: File exists @ dir_s_mkdir - /home/git/gitlab/tmp/backups/repositories
/home/git/gitlab/lib/backup/repository.rb:136:in `prepare'
/home/git/gitlab/lib/backup/repository.rb:8:in `dump'
/home/git/gitlab/lib/tasks/gitlab/backup.rake:69:in `block (4 levels) in <top (required)>'
/home/git/gitlab/lib/tasks/gitlab/backup.rake:12:in `block (3 levels) in <top (required)>'
Tasks: TOP => gitlab:backup:repo:create
(See full trace by running task with --trace)
root@gitlab-test gitlab/public#
消息很清楚!看起来该目录已经存在!
将其删除或将其移动到临时位置。
移动它
mv /home/git/gitlab/tmp/backups/repositories /home/git/gitlab/tmp/backups/repositories.old
所以我正在尝试使用此脚本从源备份 git:https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/raketasks/backup_restore.md(以及命令:sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=生产) 它在开始时有效,但在转储存储库时停止。 我需要解决什么问题?
Dumping repositories ...
rake aborted!
Errno::EEXIST: File exists @ dir_s_mkdir - /home/git/gitlab/tmp/backups/repositories
/home/git/gitlab/lib/backup/repository.rb:136:in `prepare'
/home/git/gitlab/lib/backup/repository.rb:8:in `dump'
/home/git/gitlab/lib/tasks/gitlab/backup.rake:69:in `block (4 levels) in <top (required)>'
/home/git/gitlab/lib/tasks/gitlab/backup.rake:12:in `block (3 levels) in <top (required)>'
Tasks: TOP => gitlab:backup:repo:create
(See full trace by running task with --trace)
root@gitlab-test gitlab/public#
消息很清楚!看起来该目录已经存在!
将其删除或将其移动到临时位置。
移动它
mv /home/git/gitlab/tmp/backups/repositories /home/git/gitlab/tmp/backups/repositories.old