Skip to content
Discussion options

You must be logged in to vote

--older is parsed but never used by prune. In 2.0.0b23 do_prune builds its archive list from args.name / args.match_archives only, and nothing anywhere reads args.older or args.newer. The shared archive-filter group defines those flags for every command that uses it, so you get no error and no effect. Master has since passed older_newer=False for prune, so it will reject the flag rather than silently ignore it.

The option you want is --from:

borg prune --dry-run -v --list --from "$(date -d '20 days ago' -Is)" -d 2

Note it takes an ISO timestamp or a path it stats, not an interval like 20d.

On your second question, --from behaves like your first reading. Archives at or after the timestamp…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@tve
Comment options

@ThomasWaldmann
Comment options

@tve
Comment options

@PhrozenByte
Comment options

Answer selected by tve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants