On Sunday, October 29, 2017 at 12:02:18 AM UTC+2, Jörg Steffens wrote:
> On 26.10.2017 at 13:47 wrote tonyalbers:
> > Hi guys,
> > 
> > On linux, I have some users' homedirs I'd like to back up in one job and 
> > others in another job. All the homedirs are in /data/home from where they 
> > are automounted on other hosts.
> > 
> > The users are named something like tbap001 kfcp003 etc.
> > 
> > I'd like to have a job, called p001home that backs up only directories 
> > called *p001 in /data/home and excludes their subdir called "data" but I'm 
> > not sure exactly how to do this. Right now I've got the following fileset 
> > conf file:
> > 
> > FileSet {
> >   Name = "p001home"
> >   Description = "Backup P001 user homedirs."
> >   Include {
> >     Options {
> >       Signature = MD5 # calculate md5 checksum per file
> >       One FS = No     # change into other filessytems
> >       FS Type = btrfs
> >       FS Type = ext2  # filesystems of given types will be backed up
> >       FS Type = ext3  # others will be ignored
> >       FS Type = ext4
> >       FS Type = reiserfs
> >       FS Type = jfs
> >       FS Type = xfs
> >       FS Type = zfs
> >       WildDir = /data/home/*p001
> >     }
> > #    File = /data/home/
> >   }
> >   Exclude {
> >     File = /data/home/*p001/data
> >   }
> > }
> > 
> > I commented out the "File = /data/home" line because it grabbed 
> > everything(of course).
> > 
> > 
> > 
> > Any advice is much appreciated.
> 
> You may take a look at bareos-regress:
> https://github.com/bareos/bareos-regress/blob/master/configs/fileset-multiple-options-blocks/bareos-dir.d/fileset/FS_TESTJOB.conf.in
> 
> Without testing it, it might be
> 
> FileSet {
>   Name = FS_TESTJOB
>   Include {
> 
>      Options {
>         exclude     = yes
>         wilddir     = /data/home/*p001/data
>      }
>      Options {
>         signature   = MD5
>         wilddir     = /data/home/*p001
>         wild        = /data/home/*p001/*
>      }
>      Options {
>         exclude     = yes
>         wilddir     = /data/home/*
>      }
> 
>      File = /data/home/
>   }
> }
> 
> -- 
>  Jörg Steffens                   
>  Bareos GmbH & Co. KG            Phone: +49 221 630693-91
>  http://www.bareos.com           Fax:   +49 221 630693-10
> 
>  Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
>  Komplementär: Bareos Verwaltungs-GmbH
>  Geschäftsführer:
>  S. Dühr, M. Außendorf, Jörg Steffens, P. Storz



Thanks Jörg, I'll give it a try.

/tony

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

Reply via email to