[SOLVED] Backup client, how to exclude all except specific file type?

nateify

New Member
Apr 22, 2024
2
0
1
Hello, I am trying to use the Proxmox backup client in a specific way, to replicate how I use rsync currently using --filter="merge filter.txt" syntax to allow only specific file types to be included in all directories recursively.

Here is an example of my rsync merge filter:
Code:
+ */
+ **.nfo
- *

However it seems all 3 of these attempts exclude every file, resulting in an empty backup:
Code:
**/*
!**/*.nfo
Code:
**/*
!*.nfo
Code:
*
!*.nfo

Any help figuring this out would be greatly appreciated
 
if you don't mind empty dirs (if they don't contain a matching file)., then the following should do the trick:

Code:
*
!*.nfo
!*/

the first excludes everything. the second includes your wanted files. the third includes dirs, else the client will not recurse into them since they are excluded by the first line.
 
if you don't mind empty dirs (if they don't contain a matching file)., then the following should do the trick:

Code:
*
!*.nfo
!*/

the first excludes everything. the second includes your wanted files. the third includes dirs, else the client will not recurse into them since they are excluded by the first line.
Thank you, this produced the expected behavior