borg-prune(1) borg (NAME) borg-prune - Borg (SYNOPSIS) borg [ ] prune [] [REPOSITORY] (DESCRIPTION) prune . : borg compact . . GFS (Grandfather-father-son) . prune ( ) ( ). (--keep-X) . -P . ! . . ( ) prune -P . --keep-within "" char "H" "d" "w" "m" "y" . --keep-within 2d . "1m" "31d" . . . --keep-daily 7 ( ). . . . . 1.2.0 Borg . . --keep-13weekly --keep-3monthly ( ) . --keep-last N --keep-secondly N ( N ). --stats - (deduplicated) "Deleted data" . "All archives" . --stats - --quick-stats ( "All archives" ). --stats / --quick-stats --dry-run . (OPTIONS) Borg borg-common(1) . (arguments) REPOSITORY (options) -n, --dry-run --force --force --force --force . -s, --stats --quick-stats --list / --keep-within INTERVAL --keep-last, --keep-secondly --keep-minutely -H, --keep-hourly -d, --keep-daily -w, --keep-weekly -m, --keep-monthly --keep-13weekly ( ) --keep-3monthly ( ) -y, --keep-yearly --save-space -c SECONDS, --checkpoint-interval SECONDS SECONDS (: 1800) (Archive filters) -P PREFIX, --prefix PREFIX . () -a GLOB, --glob-archives GLOB glob . :sh ( :sh) "borg help patterns" . (EXAMPLES) : prune . prune --glob-archives . --glob-archives -- "foobar" "foo*" . prune -v --list --dry-run ... . # . # (dry-run) . $ borg prune -v --list --dry-run --keep-daily=7 --keep-weekly=4 /path/to/repo # (hostname) # "-" : $ borg prune -v --list --keep-daily=7 --keep-weekly=4 --glob-archives='{hostname}-*' /path/to/repo # : $ borg compact /path/to/repo # # : $ borg prune -v --list --keep-daily=7 --keep-weekly=4 --keep-monthly=-1 /path/to/repo # # : $ borg prune -v --list --keep-within=10d --keep-weekly=4 --keep-monthly=-1 /path/to/repo docs/misc/prune-example.txt . (SEE ALSO) borg-common(1), borg-compact(1) (AUTHORS) The Borg Collective 2026-07-18 borg-prune(1)