]> arthur.barton.de Git - bup.git/commit
Add bup prune-older command
authorRob Browning <rlb@defaultvalue.org>
Sun, 30 Oct 2016 18:31:43 +0000 (13:31 -0500)
committerRob Browning <rlb@defaultvalue.org>
Wed, 7 Dec 2016 23:59:36 +0000 (17:59 -0600)
commite291bccf8ea6e14902460eb9701a3e15108e4958
treea5bda251b04c73240b2089109f7526bb2ceae2fe
parent494bc8b44fb4073aa5a3e3e1158834e884ba9604
Add bup prune-older command

prune-older removes (permanently deletes) all saves except those
preserved by various temporal keep arguments.  It is equivalent to a
suitable "bup rm" invocation followed by "bup gc".

For example, this invocation keeps all saves on the BRANCH for the past
month, and any older monthlies for the past year, and deletes the
remainder:

  $ bup prune-older --keep-all-for 1m --keep-monthlies-for 1y BRANCH

Tested-by: Rob Browning <rlb@defaultvalue.org>
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Documentation/bup-prune-older.md [new file with mode: 0644]
Makefile
cmd/prune-older-cmd.py [new file with mode: 0755]
lib/bup/gc.py
lib/bup/helpers.py
t/test-prune-older [new file with mode: 0755]