BigW Consortium Gitlab

cleanup.md 600 Bytes
Newer Older
1 2
# Cleanup

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

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

```
8 9 10 11
# omnibus-gitlab
sudo gitlab-rake gitlab:cleanup:dirs

# installation from source or cookbook
12 13 14
bundle exec rake gitlab:cleanup:dirs RAILS_ENV=production
```

Ben Bodenmiller committed
15
Remove repositories (global only for now) from `/home/git/repositories` if they don't exist in GitLab database.
16 17

```
18 19 20 21
# omnibus-gitlab
sudo gitlab-rake gitlab:cleanup:repos

# installation from source or cookbook
22 23
bundle exec rake gitlab:cleanup:repos RAILS_ENV=production
```