Skip to content

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.

Terminal window
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

Finalize idle archives and end sessions whose lease has expired

Terminal window
goback [global flags] maintain sweep

Rewrite small archives into full-sized ones

Terminal window
goback [global flags] maintain compact

Tombstone the retired commits whose trash window has ended

Terminal window
goback [global flags] maintain retire

Build a presence filter for each set whose newest commit lacks one

Terminal window
goback [global flags] maintain presence

Report the commits in the store that are missing from the index and not tombstoned

Terminal window
goback [global flags] maintain check

Record the logical size of commits that lack one; measure the sets whose commits changed

Terminal window
goback [global flags] maintain sizes