Skip to content

prune with double escaped prefix #5080

@tdahh

Description

@tdahh

Have you checked borgbackup docs, FAQ, and open Github issues?

I checked the docs, FAQ and browsed open Github issues but could not find a solutions. Missed?

Is this a BUG / ISSUE report or a QUESTION?

Seems to be a bug.

System information. For client/server mode post info for both machines.

Your borg version (borg -V).

borg 1.1.9

Operating system (distribution) and version.

Linux dev-via-wlan 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64 GNU/Linux

Hardware / network configuration, and filesystems used.

me@dev-via-wlan:~$ cat proc/cpuinfo (and some parts removed)
   model name      : Intel(R) Core(TM) i7-2640M CPU @ 2.80GHz
   cache size      : 4096 KB
   cpu cores       : 2
me@dev-via-wlan:~$ ip addr:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
    inet xxx/24 brd xxx.255 scope global enp0s25
       valid_lft forever preferred_lft forever
    inet6 xxx/64 scope link 
       valid_lft forever preferred_lft forever
3: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether xx:xx:xx:xx:xx:xx  brd ff:ff:ff:ff:ff:ff
    inet xxx/24 brd xxx.255 scope global dynamic noprefixroute wlp3s0
       valid_lft 17217sec preferred_lft 17217sec
    inet6 xxx/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
    me@dev-via-wlan:~$ lsusb ...
    Bus 001 Device 007: ID 05dc:a838 Lexar Media, Inc. JumpDrive Tough

How much data is handled by borg?

                       Original size      Compressed size    Deduplicated size
All archives:               97.81 GB             38.77 GB              1.15 GB

                       Unique chunks         Total chunks
Chunk index:                   41557              2158045

Full borg commandline that lead to the problem (leave away excludes and passwords)

borg prune --stats --list --keep-daily=7 --keep-weekly=52 --keep-monthly=24 --prefix="{hostname}-{user}-" /media/me/Lexar_USB/borgbackup

Describe the problem you're observing.

prune does not remove anything if I give the prefix as "{hostname}-{user}" as used during backup.

  • the hostname has dashes

This also does not work: prefix as "{hostname}-{user}-"
This also does not work: prefix as "dev-via-wlan-root-

Can you reproduce the problem? If so, describe how. If not, describe troubleshooting steps you took before opening the issue.

There is only this behavior so reproducing is easy.

Include any warning/errors/backtraces from the system logs

nothing found there

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions