bup-gc - remove unreferenced, unneeded data (CAUTION: EXPERIMENTAL)
bup gc [-#|--verbose] <branch|save...>
bup gc removes (permanently deletes) unreachable data from the repository, data that isn't referred to directly or indirectly by the current set of branches (backup sets) and tags. But bear in mind that given deduplication, deleting a save and running the garbage collector might or might not actually delete anything (or reclaim any space).
With the current, proababilistic implementation, some fraction of the unreachable data may be retained. In exchange, the garbage collection should require much less RAM than might by some more precise approaches.
Typically, the garbage collector would be invoked after some set of invocations of
WARNING: This is one of the few bup commands that modifies your archive in intentionally destructive ways. Though if an attempt to
restore the data you still care about after a
gc succeeds, that's a fairly encouraging sign that the commands worked correctly. (The
t/compare-trees command in the source tree can be used to help test before/after results.)
# Remove all saves of "home" and most of the otherwise unreferenced data. $ bup rm home $ bup gc
Part of the