GitSwarm-EE 2017.1-1 Documentation


Cleanup

Remove garbage from filesystem. Important! Data loss!

Remove namespaces(dirs) from all repository storage paths if they don't exist in GitSwarm database.

# package installations
sudo gitswarm-rake gitswarm:cleanup:dirs

# source installation
bundle exec rake gitswarm:cleanup:dirs RAILS_ENV=production

Rename repositories from all repository storage paths if they don't exist in GitSwarm database. The repositories get a +orphaned+TIMESTAMP suffix so that they cannot block new repositories from being created.

# package installations
sudo gitswarm-rake gitswarm:cleanup:repos

# source installation
bundle exec rake gitswarm:cleanup:repos RAILS_ENV=production

Remove old repository copies from repositories moved to another storage.

# package installations
sudo gitswarm-rake gitswarm:cleanup:moved

# source installation
bundle exec rake gitswarm:cleanup:moved RAILS_ENV=production