From 185f428fa5e6123ffa0f29e307523da138e7b028 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 7 Oct 2019 12:06:18 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- doc/raketasks/cleanup.md | 40 ---------------------------------------- 1 file changed, 40 deletions(-) (limited to 'doc/raketasks') diff --git a/doc/raketasks/cleanup.md b/doc/raketasks/cleanup.md index 957f583cd7d..67bf7cbd828 100644 --- a/doc/raketasks/cleanup.md +++ b/doc/raketasks/cleanup.md @@ -2,46 +2,6 @@ ## Remove garbage from filesystem -DANGER: **Danger:** -The commands below will remove data permanently from your GitLab instance. Only use -these commands if you are 100% certain that it is safe to delete this data. - -Remove namespaces(dirs) from all repository storage paths if they don't exist in GitLab database. - -``` -# omnibus-gitlab -sudo gitlab-rake gitlab:cleanup:dirs - -# installation from source -bundle exec rake gitlab:cleanup:dirs RAILS_ENV=production -``` - -DANGER: **Danger:** -The following task does not currently work as expected. -The use will probably mark more existing repositories as orphaned. -For more information, see the [issue](https://gitlab.com/gitlab-org/gitlab/issues/24633). - -Rename repositories from all repository storage paths 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. - -``` -# omnibus-gitlab -sudo gitlab-rake gitlab:cleanup:repos - -# installation from source -bundle exec rake gitlab:cleanup:repos RAILS_ENV=production -``` - -Remove old repository copies from repositories moved to another storage. - -``` -# omnibus-gitlab -sudo gitlab-rake gitlab:cleanup:moved - -# installation from source -bundle exec rake gitlab:cleanup:moved RAILS_ENV=production -``` - Clean up local project upload files if they don't exist in GitLab database. The task attempts to fix the file if it can find its project, otherwise it moves the file to a lost and found directory. -- cgit v1.2.1