debian-mirror-gitlab/doc/raketasks/cleanup.md

25 lines
677 B
Markdown
Raw Normal View History

2014-09-02 18:07:02 +05:30
# Cleanup
## Remove garbage from filesystem. Important! Data loss!
2016-09-13 17:45:13 +05:30
Remove namespaces(dirs) from all repository storage paths if they don't exist in GitLab database.
2014-09-02 18:07:02 +05:30
```
# 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
```
2016-09-13 17:45:13 +05:30
Rename repositories from all repository storage paths if they don't exist in GitLab database.
2015-10-24 18:46:33 +05:30
The repositories get a `+orphaned+TIMESTAMP` suffix so that they cannot block new repositories from being created.
2014-09-02 18:07:02 +05:30
```
# 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
```