Expand my Community achievements bar.

Applications for the 2024-2025 Adobe Experience Manager Champion Program are open!
SOLVED

Filter rules expression format in package manager

Avatar

Level 2

I am creating packages to sync our AEM prod environment with dev using package manager. Since package manager fails to build the packages with large size, I was splitting some folders by creating packages for the sub-folders inside the larger folders. But as there is many number of sub folders, it is a burden to create packages for each one. So, I decided to create packages by taking multiple sub-folders inside the larger folder. For that I gave regular expressions in filter rules like following;

include/content/dam/portfolio/properties/f*
include/content/dam/portfolio/properties/g*
include/content/dam/portfolio/properties/h*

 

What I meant with this is to take all the sub-folders starting with f, g, and h inside /content/dam/portfolio/properties/ folder.
But this is not working as expected. What is the correct solution to achieve my requirement?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

The subfolders must be direct children of the filter root, or you should allow all parent folders up to the filter root [0]. Additionally, make a slight adjustment to the include regex by using f.*, g.*, etc.

Screenshot 2023-11-09 at 7.51.26 PM.png

[0]: https://jackrabbit.apache.org/filevault/filter.html#usage-for-export

View solution in original post

3 Replies

Avatar

Community Advisor

Hi, 

 

Keep in mind that the include and exclude rules accept only regular expressions. Therefore, I believe that might be the issue. You can try something similar to the following, which will include only the folders which start with the letter "f" under the path "/content/dam/portfolio/properties"

 

/content/dam/portfolio/properties/f[^/]+.*

 

 

Here you can find more info: https://jackrabbit.apache.org/filevault/filter.html#Include_and_Exclude_Elements 

Hope this helps



Esteban Bustamante

Avatar

Correct answer by
Community Advisor

The subfolders must be direct children of the filter root, or you should allow all parent folders up to the filter root [0]. Additionally, make a slight adjustment to the include regex by using f.*, g.*, etc.

Screenshot 2023-11-09 at 7.51.26 PM.png

[0]: https://jackrabbit.apache.org/filevault/filter.html#usage-for-export

Avatar

Community Advisor

@Anas_R 

 

If content sync is a regular activity, please review https://adobe-consulting-services.github.io/acs-aem-commons/features/contentsync/index.html

Its a new content sync feature in ACS commons to incrementally sync content


Aanchal Sikka