repack

vb repack [REPOSITORY]

Description

Perform extra delta-compression to try to minimize the size of the repository. This command is simply a short-hand for:

vb rebuild --compress-only

The name for this command is stolen from the git repack command that does approximately the same thing in Git.

Examples

  • Repack repository (shorthand for rebuild –compress-only)

$ vb dbstat
project-name:      VisionByteDoc
repository-size:   3,543,400,448 bytes
artifact-count:    17,958 (stored as 7,902 full text and 10,056 deltas)
artifact-sizes:    813,476 average, 107,346,930 max, 14,607,604,324 total
compression-ratio: 41:10
check-ins:         1,644
files:             11,361 across all branches
wiki-pages:        30 (139 changes)
tickets:           6 (6 changes)
events:            0
tag-changes:       184
latest-change:     2026-01-28 02:29:39 - about 6 days ago
project-age:       4,864 days or approximately 13.32 years.
project-id:        0f91bc8572dgf6cc094960645a221b33dd7ba674
schema-version:    2015-01-24
vb-version:        2025-04-30 16:57:32 [1205ec86cb] [2.26] (msc-19.44.35222)
sqlite-version:    2025-06-06 14:52:32 [b77dc5e0f5] (3.50.1)
database-stats:    432,544 pages, 8192 bytes/pg, 58,131 free pages, UTF-8, wal mode

$ vb repack
283 new deltas save 336,061,203 bytes
Vacuuming the database... done

$ vb dbstat
project-name:      VisionByteDoc
repository-size:   2,725,715,968 bytes
artifact-count:    17,958 (stored as 7,619 full text and 10,339 deltas)
artifact-sizes:    813,476 average, 107,346,930 max, 14,607,604,324 total
compression-ratio: 5:1
check-ins:         1,644
files:             11,361 across all branches
wiki-pages:        30 (139 changes)
tickets:           6 (6 changes)
events:            0
tag-changes:       184
latest-change:     2026-01-28 02:29:39 - about 6 days ago
project-age:       4,864 days or approximately 13.32 years.
project-id:        0f91bc8572dgf6cc094960645a221b33dd7ba674
schema-version:    2015-01-24
vb-version:        2025-04-30 16:57:32 [1205ec86cb] [2.26] (msc-19.44.35222)
sqlite-version:    2025-06-06 14:52:32 [b77dc5e0f5] (3.50.1)
database-stats:    332,729 pages, 8192 bytes/pg, 0 free pages, UTF-8, wal mode