On jeudi, 10 novembre 2016 05.00:08 h CET 74cmonty wrote:
> Hi,
>
> I have this directory tree of which I want to save only ABC/log, A2D/log and
> BS4/log: ll /bareos/
> total 36
> drwxr-xr-x 2 root root 4096 Nov 10 09:38 123
> drwxr-xr-x 2 root root 4096 Nov 10 12:03 1AB
> drwxr-xr-x 2 root root 4096 Nov 10 12:04 A-A
> drwxr-xr-x 2 root root 4096 Nov 10 12:03 A2a
> drwxr-xr-x 2 root root 4096 Nov 10 12:04 AA-
> drwxr-xr-x 2 root root 4096 Nov 10 13:29 Aa12
> drwxr-xr-x 2 root root 4096 Nov 10 12:03 Aa3
> drwxr-xr-x 2 root root 4096 Nov 10 12:03 ABC
> drwxr-xr-x 2 root root 4096 Nov 10 12:03 A2D
> drwxr-xr-x 2 root root 4096 Nov 9 16:32 BS4
> drwxr-xr-x 2 root root 4096 Nov 10 09:23 abc
>
> The files in log are e.g.
> ll /bareos/BS4/log/
> /bareos/BS4/log/:
> total 80776
> -rw-r----- 1 bs4 bs4 20652032 Oct 7 15:44 log_backup_0_0_0_0.1475847869836
> -rw-r----- 1 bs4 bs4 20652032 Oct 27 13:42 log_backup_0_0_0_0.1477568552988
> -rw-r----- 1 bs4 bs4 20656128 Oct 27 16:24 log_backup_0_0_0_0.1477578252091
> -rw-r----- 1 bs4 bs4 20656128 Nov 9 14:22 log_backup_0_0_0_0.1478697761446
>
>
> My FileSet resource configuration is this:
> FileSet {
> Name = log
> Description = "Backup of log files."
> Include {
> File = /bareos
> Options {
> signature = MD5
> RegexDir = "\/bareos\/[A-Z][A-Z0-9]{2}\/log"
> }
> Options {
> Exclude = yes
> wilddir = "/bareos/*"
> }
> Exclude Dir Containing = .nobackup
> }
> }
>
> However testing the fileset using the estimate command in the Console
> program returns this: *estimate listing job=client-log
> Using Catalog "DLM"
> Connecting to Client ld9906-fd at ld9906:9102
> drwxr-xr-x 11 root root 4096 2016-11-10 13:29:51 /bareos
> 2000 OK estimate files=1 bytes=0
>
> What is wrong with the FileSet Resource?
>
> THX
wilddir exclude bareos/*
I also advise you to try your partern with bwild and bregex
see documentation you will preserve your nerves :-)
--
Bruno Friedmann
Ioda-Net Sàrl www.ioda-net.ch
Bareos Partner, openSUSE Member, fsfe fellowship
GPG KEY : D5C9B751C4653227
irc: tigerfoot
openSUSE Tumbleweed
Linux 4.8.6-2-default x86_64 GNU/Linux, nvidia: 367.57
Qt: 5.7.0, KDE Frameworks: 5.27.0, Plasma: 5.8.3, kmail2 5.3.0 (QtWebEngine)
--
You received this message because you are subscribed to the Google Groups
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.