You can do so 
with 
https://docs.bareos.org/bareos-24/Configuration/Director.html#config-Dir_Fileset_Include_Options_RegexFile
But you should for performance reason try to use WildFile and WildDir 
options
https://docs.bareos.org/bareos-24/Configuration/Director.html#config-Dir_Fileset_Include_Options_WildDir

Our systemtest might be a source of inspiration
https://github.com/bareos/bareos/tree/master/systemtests/tests/fileset-multiple-blocks/etc/bareos/bareos-dir.d/fileset

On Monday, 22 September 2025 at 18:10:02 UTC+2 Stefan Harbich wrote:

> Hello,
> is there a way to use wildcards for directories? This way, different 
> directories that are similar at the beginning are taken into account?
> Regards, Stefan Harbich
> Stefan Harbich schrieb am Samstag, 20. September 2025 um 20:29:52 UTC+2:
>
>> Hello,
>> i would like to additionally back up my zfs-auto-snapshots on my Proxmox 
>> node. These are stored hidden in the following directories:
>> - /rpool/data/nfs-rpool/vm-100-disk-0/.zfs
>> - /rpool/data/nfs-rpool/vm-101-disk-0/.zfs
>> - /rpool/data/nfs-rpool/vm-101-disk-1/.zfs
>> - /rpool/data/nfs-rpool/vm-102-disk-0/.zfs
>> ...
>> How can I ensure that if additional directories are created according to 
>> the above pattern, they are also backed up without having to add the 
>> directories to the fileset each time? This didn't work:
>> ...
>> root@dsme01:~# cat /etc/bareos/bareos-dir.d/fileset/ProxmoxSnapshot.conf
>> FileSet {
>> Name = "ProxmoxSnapshot"
>> Description = "Backup all Proxmox Snapshots."
>> Include { 
>> Options { 
>> Signature = MD5 # calculate md5 checksum per file 
>> One FS = No # change into other files systems 
>> xattrsupport = no 
>> 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 = travel refs 
>> FS Type = jfs 
>> FS Type = xfs 
>> FS Type = zfs 
>> FS Type = fuse 
>> } 
>> File = /rpool/data/nfs-rpool/vm-*-disk-*/.* 
>> } 
>> # Things that usually have to be excluded 
>> # You have to exclude /var/lib/bareos/storage 
>> # on your bareos server 
>> exclude { 
>> }
>> }
>>
>> ...
>> Error message:
>> ...
>> 2025-09-20 20:17:47 psme02-fd JobId 1684: Could not stat 
>> "/rpool/data/nfs-rpool/vm-*-disk-*/.*": ERR=No such file or directory
>> ...
>> Do you have a tip for me?
>> Regards, Stefan Harbich
>>
>

-- 
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 view this discussion visit 
https://groups.google.com/d/msgid/bareos-users/68dfd30a-bb31-4050-9893-7c4c80f60463n%40googlegroups.com.

Reply via email to