ability to ignore file structure - or automatically create new folder pairs

Get help for specific problems
Posts: 1
Joined: 12 Apr 2026

AnonymousMouse

heya, i have a specific sync situation that i'm very close fully automating, but there's a couple of issues that i can't find solutions for online - sorry for the long post

my situation is a database folder, full of schematic files for a game, and several "instance" folders - the game uses a folder named "schematics" to save and load the files, and i have several instances of the game, each with their own schematics folder

my desired behaviour is for each schematic folder to update the database as new schematics are added (along with some custom sync rules which i already have working)

the file structure of the instances looks like this (*i cannot change this structure*):

/instances/pack1/schematics/schematic.nbt
/instances/pack2/schematics/schematic2.nbt
/instances/pack3/schematics/schematic3.nbt

however, the database folder is simply:
database/alltheschematics.nbt

my current solution is to set up individual folder pairs for the database and each instance - but this causes issues, as the instances folder is dynamic and changes as i add/remove packs, but i still want to sync between each instance as it's added

my attempted solution was to add a single folder pair like this:

/database > /instances

with filters:

include */schematics
exclude *
exclude */

however, this just results in it attempting to create new folders like this:

database/pack1/schematics
database/pack2/schematics
database/pack3/schematics

which defeats the point and creates duplicates - you can see that i need a one-to-many relationship here, database should be copying directly to and from each individual schematics folder with no regard for the file structure - i'm unsure how to do that

from reading other posts, it seems like this might not be possible - i'm not very experienced in FFS though, so i thought i'd explain my entire situation in case i'm missing something

if it's not possible to cleanly achieve this with a single folder pair (i'd just like that for readability reasons), would there be a method to automatically add/remove folder pairs as folders are updated? that would achieve the same thing

thanks in advance, sorry if i'm retreading old ground here :3
Posts: 2
Joined: 28 Apr 2026

David_P

This is the sort of thing I would do with command line and robocopy. However I note your folder names have forward slashes which implies a Linux operating system.

If you are on Windows, I can suggest some commands which would achieve this.