goback maintain
Run the housekeeping that is due, for example from cron
Without a subcommand, maintain sweeps, retires, compacts and builds presence filters. It collects garbage once the last collection is older than –gc-interval. It also rebuilds the database indexes of heavily changed tables in the index. A subcommand runs one of these operations. A store server runs this housekeeping on its own schedule.
goback [global flags] maintain [flags] <command>| Flag | Description | Environment | Default |
|---|---|---|---|
--gc-interval value |
collect garbage when the last collection is at least this old; 0 turns collection off | 168h0m0s |
maintain sweep
Section titled “maintain sweep”Finalize idle archives and end sessions whose lease has expired
goback [global flags] maintain sweepmaintain compact
Section titled “maintain compact”Rewrite small archives into full-sized ones
goback [global flags] maintain compactmaintain retire
Section titled “maintain retire”Tombstone the retired commits whose trash window has ended
goback [global flags] maintain retiremaintain presence
Section titled “maintain presence”Build a presence filter for each set whose newest commit lacks one
goback [global flags] maintain presencemaintain check
Section titled “maintain check”Report the commits in the store that are missing from the index and not tombstoned
goback [global flags] maintain checkmaintain sizes
Section titled “maintain sizes”Record the logical size of commits that lack one; measure the sets whose commits changed
goback [global flags] maintain sizes