View Issue Details

IDProjectCategoryView StatusLast Update
0000723bareos-coredirectorpublic2023-09-13 18:46
Reporterc.monty Assigned Tobruno-at-bareos  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionunable to reproduce 
PlatformLinuxOSSLESOS Version11
Product Version16.2.4 
Summary0000723: Defining FileSet Resource Option RegexDir on first level subdirectory fails
DescriptionHello!

I try to define a FileSet Resource using option RegexDir because the target directory for backup is:
/backup_<SID>

<SID> could be e.g.
ABC
AB1
A12
etc.

This means the RegexDir I have tried is:
RegexDir = "/backup_[A-Z][A-Z0-9][A-Z0-9]"
TagsNo tags attached.

Activities

bruno-at-bareos

bruno-at-bareos

2023-09-13 18:46

manager   ~0005439

At least with recent version of Bareos here what you can achieve

With the following content

cat /tmp/bregex_test
/backup_ABC
/backup_A12
/testme_exclude
/backup_B45
/notme_please
/backup_S16
/notme/backup_G45
backup_no.thanks
/not_that_last

bregex -f /tmp/bregex_test
Enter regex pattern: backup_[A-Z][A-Z0-9][A-Z0-9]
    1: /backup_ABC
    2: /backup_A12
    4: /backup_B45
    6: /backup_S16
    7: /notme/backup_G45
Enter regex pattern: \/backup_[A-Z][A-Z0-9][A-Z0-9]
    1: /backup_ABC
    2: /backup_A12
    4: /backup_B45
    6: /backup_S16
    7: /notme/backup_G45
Enter regex pattern: ^\/backup_[A-Z][A-Z0-9][A-Z0-9]
    1: /backup_ABC
    2: /backup_A12
    4: /backup_B45
    6: /backup_S16
Enter regex pattern:

So your solution is "^\/backup_[A-Z][A-Z0-9][A-Z0-9]"

Issue History

Date Modified Username Field Change
2016-11-10 09:30 c.monty New Issue
2023-09-13 18:46 bruno-at-bareos Assigned To => bruno-at-bareos
2023-09-13 18:46 bruno-at-bareos Status new => closed
2023-09-13 18:46 bruno-at-bareos Resolution open => unable to reproduce
2023-09-13 18:46 bruno-at-bareos Note Added: 0005439