2014-05-27 12:12:15 +00:00
|
|
|
# Cleanup
|
|
|
|
|
2014-04-24 22:48:22 +00:00
|
|
|
## Remove garbage from filesystem. Important! Data loss!
|
2013-01-05 22:30:38 +00:00
|
|
|
|
2013-05-17 22:39:55 +00:00
|
|
|
Remove namespaces(dirs) from `/home/git/repositories` if they don't exist in GitLab database.
|
2013-01-05 22:30:38 +00:00
|
|
|
|
|
|
|
```
|
2014-06-23 08:38:22 +00:00
|
|
|
# omnibus-gitlab
|
|
|
|
sudo gitlab-rake gitlab:cleanup:dirs
|
|
|
|
|
|
|
|
# installation from source or cookbook
|
2013-01-05 22:30:38 +00:00
|
|
|
bundle exec rake gitlab:cleanup:dirs RAILS_ENV=production
|
|
|
|
```
|
|
|
|
|
2013-05-17 22:39:55 +00:00
|
|
|
Remove repositories (global only for now) from `/home/git/repositories` if they don't exist in GitLab database.
|
2013-01-05 22:30:38 +00:00
|
|
|
|
|
|
|
```
|
2014-06-23 08:38:22 +00:00
|
|
|
# omnibus-gitlab
|
|
|
|
sudo gitlab-rake gitlab:cleanup:repos
|
|
|
|
|
|
|
|
# installation from source or cookbook
|
2013-01-05 22:30:38 +00:00
|
|
|
bundle exec rake gitlab:cleanup:repos RAILS_ENV=production
|
|
|
|
```
|