how to exclude many similar sub-sub-subfolders of the same name from backup

Wrote this question by mistake already somewhere else, think it should be on its own:
I want to save ONE folder sitting in a disk's root.
This folder contains 100+ subfolders (growing a bit each week), and each of them contains three to five sub-subfolders.
Each of those again contains multiple sub-sub-subfolders, whereas always two of them are named "cache" and "trash".
How to backup this one folder and all its subfolders, but exclude ALL sub-sub-subfolders named "cache" and "trash" - without having to manually DE-select 800+ folders under backup options? (and without having to adjust the to-backup-list each week) ?

Thank you for your answer
Actually I found a solution, at least somehow - it works as long as the folders to omit keep appearing at the same hierarchy level. I created a disk backup, and as it looks it is possible to exclude all occurrences of the same subfolder name by adding multiple wildcards as path.
Under exclusions I added
f:\*\*\*\*\cache
f:\*\*\trash
which does exclude ALL "cache"-folders as long as they are nested four (sub-)folders deep and ALL "trash"-folders as long as they are nested two (sub-)folders deep.
I assume it would easily be possible to prepare for several nesting-levels (f:\cache / f:\*\cache / f:\*\*\cache / f:\*\*\*\cache / f:\*\*\*\*\cache) to be ready for different nesting, but I don't need that..
- Log in to post comments

Ronny thanks for posting this information. I was wondering if such an approach can work, and now thanks to you I know.
Ian
- Log in to post comments
Gigabyte Aorus GA-AX370-Gaming 5 M/B; AMD Ryzen 1700X; 16gig RAM; 2 x 500 gig Samsung 970 EVO PCIe NVMe, 1 x 250 gig Samsung 960 EVO PCIe NVMe drives + other drives (Windows 10 Pro 64)
Gigabyte Aorus B360 Gaming 3M/B, Intel i5 9400; 16gig RAM; 1 x 500 gig Samsung EVO Plus PCIe NVMe + 1 x 250 gig Samsung 960 EVO PCIe NVMe + other drives (Windows 10 Enterprise 64)
Gigabyte Aorus H370 Gaming 3M/B, Intel i5 9400; 16gig RAM; 1 x 500 gig Samsung EVO Plus PCIe NVMe + 3 x Kingston HyerX Fury 240gig RAID 5 + other drives (Windows 10 Enterprise 64)
Synology DS414 NAS 4 x 4TB WD Red HDD
Acronis Links : Acronis Scheduler Manager : Acronis VSS Doctor : Backup Archive Compatibility : Cleanup Tool (All versions) : Cloning Disks : Contact Acronis Support : Difference between Backup and Disk Clone : Repair program / settings
MVP Assistant (Log Viewer) latest version see pinned topic in ACPHO forum page.
MVP Custom PE Builder available from Community Tools page.
Acronis True Image User Guides available from Product Documentation page.
imTranslator for quick translation of language posts.