gitlab-org--gitlab-foss/doc/raketasks/cleanup.md
2014-06-03 23:16:31 +02:00

411 B

Cleanup

Remove garbage from filesystem. Important! Data loss!

Remove namespaces(dirs) from /home/git/repositories if they don't exist in GitLab database.

bundle exec rake gitlab:cleanup:dirs RAILS_ENV=production

Remove repositories (global only for now) from /home/git/repositories if they don't exist in GitLab database.

bundle exec rake gitlab:cleanup:repos RAILS_ENV=production