2014-05-27 08:12:15 -04:00
|
|
|
# Cleanup
|
|
|
|
|
2014-04-24 18:48:22 -04:00
|
|
|
## Remove garbage from filesystem. Important! Data loss!
|
2013-01-05 17:30:38 -05:00
|
|
|
|
2016-07-21 17:48:57 -04:00
|
|
|
Remove namespaces(dirs) from all repository storage paths if they don't exist in GitLab database.
|
2013-01-05 17:30:38 -05:00
|
|
|
|
|
|
|
```
|
2014-06-23 04:38:22 -04:00
|
|
|
# omnibus-gitlab
|
|
|
|
sudo gitlab-rake gitlab:cleanup:dirs
|
|
|
|
|
2015-01-28 01:50:31 -05:00
|
|
|
# installation from source
|
2013-01-05 17:30:38 -05:00
|
|
|
bundle exec rake gitlab:cleanup:dirs RAILS_ENV=production
|
|
|
|
```
|
|
|
|
|
2016-07-21 17:48:57 -04:00
|
|
|
Rename repositories from all repository storage paths if they don't exist in GitLab database.
|
2015-09-25 08:38:42 -04:00
|
|
|
The repositories get a `+orphaned+TIMESTAMP` suffix so that they cannot block new repositories from being created.
|
2013-01-05 17:30:38 -05:00
|
|
|
|
|
|
|
```
|
2014-06-23 04:38:22 -04:00
|
|
|
# omnibus-gitlab
|
|
|
|
sudo gitlab-rake gitlab:cleanup:repos
|
|
|
|
|
2015-01-28 01:50:31 -05:00
|
|
|
# installation from source
|
2013-01-05 17:30:38 -05:00
|
|
|
bundle exec rake gitlab:cleanup:repos RAILS_ENV=production
|
|
|
|
```
|