gitlab-org--gitlab-foss/doc/raketasks/cleanup.md

15 lines
402 B
Markdown
Raw Normal View History

2013-05-17 18:39:55 -04:00
### Remove garbage from filesystem. Important! Data loss!
2013-01-05 17:30:38 -05:00
2013-05-17 18:39:55 -04:00
Remove namespaces(dirs) from `/home/git/repositories` if they don't exist in GitLab database.
2013-01-05 17:30:38 -05:00
```
bundle exec rake gitlab:cleanup:dirs RAILS_ENV=production
```
2013-05-17 18:39:55 -04:00
Remove repositories (global only for now) from `/home/git/repositories` if they don't exist in GitLab database.
2013-01-05 17:30:38 -05:00
```
bundle exec rake gitlab:cleanup:repos RAILS_ENV=production
```