BigW Consortium Gitlab

cleanup.md 677 Bytes
Newer Older
1 2
# Cleanup

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

5
Remove namespaces(dirs) from all repository storage paths 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
Rename repositories from all repository storage paths if they don't exist in GitLab database.
16
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
```