[Borgbackup] borg prune behaviour

nicrel at arcor.de nicrel at arcor.de
Wed Jun 22 16:11:07 EDT 2016


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
------------------------------------------------------------------------------
                       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


More information about the Borgbackup mailing list