BigW Consortium Gitlab

cleanup.md 669 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
# omnibus-gitlab
sudo gitlab-rake gitlab:cleanup:dirs

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

15 16
Rename repositories from `/home/git/repositories` if they don't exist in GitLab database.
The repositories get a `+orphaned+TIMESTAMP` suffix so that they cannot block new repositories from being created.
17 18

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

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