I used VirtualBox, installed Ubuntu 12.10, then installed bitnami-gitlab-5.2.0-0-linux-x64-installer.run.
It is a new empty GitLab installation. No repository in it.
Then I run:
sudo -u git bash
cd /opt/gitlab-5.2.0-0
. use_gitlab
cd /opt/gitlab-5.2.0-0/apps/gitlab/htdocs/bin
bundle exec rake gitlab:backup:create RAILS_ENV=production
Output is:
(in /opt/gitlab-5.2.0-0/apps/gitlab/htdocs)
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support
for these plugins will be removed in Rails 4.0. Move them out and bundle them i
n your Gemfile, or fold them in to your app as lib/myplugin/* and config/initial
izers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required
)> at /opt/gitlab-5.2.0-0/apps/gitlab/htdocs/Rakefile:7)
Dumping database ...
done
Dumping repositories ...
done
Dumping uploads ...
rake aborted!
No such file or directory - /opt/gitlab-5.2.0-0/apps/gitlab/htdocs/public/uploads
/opt/gitlab-5.2.0-0/apps/gitlab/htdocs/lib/backup/uploads.rb:14:in `dump'
/opt/gitlab-5.2.0-0/apps/gitlab/htdocs/lib/tasks/gitlab/backup.rake:147:in `bloc
k (4 levels) in <top (required)>'
/opt/gitlab-5.2.0-0/apps/gitlab/htdocs/lib/tasks/gitlab/backup.rake:12:in `block
(3 levels) in <top (required)>'
Tasks: TOP => gitlab:backup:uploads:create
(See full trace by running task with --trace)
It seems that GitLab installer didn't create htdocs/public/uploads directory?