[Borgbackup] borg prune behaviour

nicrel at arcor.de nicrel at arcor.de
Wed Jun 22 16:59:17 EDT 2016


Hi Adrian,
thanks for your quick response!

That solved my issue immediately.

Anyways, I'd suggest to add --list to examples shown on https://borgbackup.readthedocs.io/en/stable/usage.html#borg-prune.

There it says "It is strongly recommended to always run prune --dry-run ... first so you will see what it would do without it actually doing anything." but with the examples shown, you just don't see what it would acutally be doing as --list is missing from the examples...

Maybe even setting --list as default for prune would be a good idea?

Best regards,
Carsten

----- Original Nachricht ----
Von:     Adrian Klaver <adrian.klaver at aklaver.com>
An:      nicrel at arcor.de, borgbackup at python.org
Datum:   22.06.2016 22:48
Betreff: Re: [Borgbackup] borg prune behaviour

> On 06/22/2016 01:11 PM, nicrel at arcor.de wrote:
> > Hi everybody,
> > I'm trying to prune my very first borg repo created on 2016-05-25.
> >
> > I tried dry-run param to have an idea of what it would prune when leaving
> only 7 days daily backups.
> >
> > When running the suggested command from the documentatioin site, from the
> command line output I got, I would consider no files to be deleted?
> >
> > Can somebody shed some light on this issue?
> >
> > From documentation, I had expected pruning of all archives apart from
> (keep the last 7 daily ones):
> >
> > 2016-06-15                           Wed, 2016-06-15 12:21:33
> > 2016-06-16                           Thu, 2016-06-16 12:21:28
> > 2016-06-17                           Fri, 2016-06-17 12:21:36
> > 2016-06-18                           Sat, 2016-06-18 12:21:16
> > 2016-06-19                           Sun, 2016-06-19 12:21:17
> > 2016-06-20                           Mon, 2016-06-20 12:21:17
> > 2016-06-22                           Wed, 2016-06-22 12:21:26
> >
> > Summary might be correct (0 bytes gained, as I have probably only added
> files); but wouldn't borg at least list the archive tags that will be
> removed?
> >
> >
> >
> 8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<-------8<--
> -----8<-------8<-------
> >
> >
> > user at host:/mnt/remoterepo# borg list /mnt/remoterepo/repository.borg_a
> > 2016-05-25                           Thu, 2016-05-26 00:02:11
> > 2016-05-26                           Thu, 2016-05-26 22:50:16
> > 2016-05-26b                          Thu, 2016-05-26 23:01:38
> > 2016-06-01                           Wed, 2016-06-01 23:57:49
> > 2016-06-02                           Thu, 2016-06-02 22:55:11
> > 2016-06-03                           Fri, 2016-06-03 12:21:10
> > 2016-06-04                           Sat, 2016-06-04 12:21:21
> > 2016-06-05                           Sun, 2016-06-05 12:21:23
> > 2016-06-06                           Mon, 2016-06-06 12:21:14
> > 2016-06-07                           Tue, 2016-06-07 12:21:20
> > 2016-06-08                           Wed, 2016-06-08 12:21:30
> > 2016-06-09                           Thu, 2016-06-09 12:21:20
> > 2016-06-11                           Sat, 2016-06-11 15:43:16
> > 2016-06-12                           Sun, 2016-06-12 12:21:25
> > 2016-06-13                           Mon, 2016-06-13 12:21:18
> > 2016-06-14                           Tue, 2016-06-14 12:21:25
> > 2016-06-15                           Wed, 2016-06-15 12:21:33
> > 2016-06-16                           Thu, 2016-06-16 12:21:28
> > 2016-06-17                           Fri, 2016-06-17 12:21:36
> > 2016-06-18                           Sat, 2016-06-18 12:21:16
> > 2016-06-19                           Sun, 2016-06-19 12:21:17
> > 2016-06-20                           Mon, 2016-06-20 12:21:17
> > 2016-06-22                           Wed, 2016-06-22 12:21:26
> >
> > user at host:/mnt/remoterepo# borg prune -s -v --dry-run --keep-daily=7
> /mnt/remoterepo/repository.borg_a
> 
> Add --list to above.
> 
> http://borgbackup.readthedocs.io/en/1.0.3/usage.html#borg-prune
> "--list                output verbose list of archives it keeps/prunes"
> 
> >
> ----------------------------------------------------------------------------
> --
> >                        Original size      Compressed size    Deduplicated
> size
> > Deleted data:                    0 B                  0 B                 
> 0 B
> > All archives:                5.66 TB              5.21 TB           
> 215.21 GB
> >
> >                        Unique chunks         Total chunks
> > Chunk index:                  259286              7263925
> >
> ----------------------------------------------------------------------------
> --
> > user at host:/mnt/remoterepo# borg --version
> > borg 1.0.3
> >
> > Thumbs up for this great product & best regards,
> > Carsten
> > _______________________________________________
> > Borgbackup mailing list
> > Borgbackup at python.org
> > https://mail.python.org/mailman/listinfo/borgbackup
> >
> 
> 
> -- 
> Adrian Klaver
> adrian.klaver at aklaver.com
> 


More information about the Borgbackup mailing list