dremio-professional-services / dremio-cloner

27 stars 20 forks source link

Unable to deploy to more than one level of folders #44

Open pbeeharry2701 opened 9 months ago

pbeeharry2701 commented 9 months ago

In our dremio space we have the workspace + the root folder + additional folders.. Example: BI_PROJECTS.XXX1.XXX2.XXX3 We can't deploy to the level of XXX3 folder but only at XXX1 level. This is an issue as there multiple developments happening at XXX1 level folders and this is causing conflicts as there still non-existing dependencies. Is there currently a solution for that? thanks

mxmarg commented 8 months ago

Can you provide some additional details as to what exactly is not working on subfolder level?

Dremio Cloner supports specification of subfolders using both inclusive and exclusive logic matching. The following is an extract of a config.json, which shows examples for both regex-style folder filters, e.g. in your case "BI_PROJECTS/*/*/XXX3", or a list of paths:

{"space.folder.filter":"*"}, {"space.folder.filter.paths": ["Staging", "Business/Folder2"]}, {"space.folder.exclude.filter":""}, {"space.folder.exclude.filter.paths": ["ignorefolder1/folder2", "dontProcessfolder2"]} https://github.com/deane-dremio/dremio-cloner/blob/master/config/config_write.json#L57-L60