cleanup.md 677 字节
Newer Older
M
Marin Jankovski 已提交
1 2
# Cleanup

3
## Remove garbage from filesystem. Important! Data loss!
D
Dmitriy Zaporozhets 已提交
4

5
Remove namespaces(dirs) from all repository storage paths if they don't exist in GitLab database.
D
Dmitriy Zaporozhets 已提交
6 7

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

11
# installation from source
D
Dmitriy Zaporozhets 已提交
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.
D
Dmitriy Zaporozhets 已提交
17 18

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

22
# installation from source
D
Dmitriy Zaporozhets 已提交
23 24
bundle exec rake gitlab:cleanup:repos RAILS_ENV=production
```