diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-06 00:30:38 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-06 00:30:38 +0200 |
commit | 1665a06fddf7c51fcf80da74590c613f5c785f47 (patch) | |
tree | 574f030706b4b7f683134675b47127cd1bc3b4c6 /doc | |
parent | 68eb394824f6d7edd895d8175d16f281af68073a (diff) | |
download | gitlab-ce-1665a06fddf7c51fcf80da74590c613f5c785f47.tar.gz |
Added cleanup to help rake
Diffstat (limited to 'doc')
-rw-r--r-- | doc/raketasks/cleanup.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/raketasks/cleanup.md b/doc/raketasks/cleanup.md new file mode 100644 index 00000000000..ad9e5a613b0 --- /dev/null +++ b/doc/raketasks/cleanup.md @@ -0,0 +1,20 @@ +### Remove grabage from gitolite config and filesystem. Important! Data loss! + +Remove projects from gitolite config if they dont exist in GitLab database + +``` +bundle exec rake gitlab:cleanup:config RAILS_ENV=production +``` + +Remove namespaces(dirs) from /home/git/repositories if they dont 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 dont exist in GitLab database + +``` +bundle exec rake gitlab:cleanup:repos RAILS_ENV=production +``` + |