cleanup.md 411 Bytes
Newer Older
Marin Jankovski's avatar
Marin Jankovski committed
1 2
# Cleanup

3
## Remove garbage from filesystem. Important! Data loss!
4

Ben Bodenmiller's avatar
Ben Bodenmiller committed
5
Remove namespaces(dirs) from `/home/git/repositories` if they don't exist in GitLab database.
6 7 8 9 10

```
bundle exec rake gitlab:cleanup:dirs RAILS_ENV=production
```

Ben Bodenmiller's avatar
Ben Bodenmiller committed
11
Remove repositories (global only for now) from `/home/git/repositories` if they don't exist in GitLab database.
12 13 14 15

```
bundle exec rake gitlab:cleanup:repos RAILS_ENV=production
```