2014-09-02 18:07:02 +05:30
|
|
|
# Cleanup
|
|
|
|
|
|
|
|
## Remove garbage from filesystem. Important! Data loss!
|
|
|
|
|
|
|
|
Remove namespaces(dirs) from `/home/git/repositories` if they don't exist in GitLab database.
|
|
|
|
|
|
|
|
```
|
|
|
|
# omnibus-gitlab
|
|
|
|
sudo gitlab-rake gitlab:cleanup:dirs
|
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
# installation from source
|
2014-09-02 18:07:02 +05:30
|
|
|
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.
|
|
|
|
|
|
|
|
```
|
|
|
|
# omnibus-gitlab
|
|
|
|
sudo gitlab-rake gitlab:cleanup:repos
|
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
# installation from source
|
2014-09-02 18:07:02 +05:30
|
|
|
bundle exec rake gitlab:cleanup:repos RAILS_ENV=production
|
|
|
|
```
|