Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Delta movement in package manager

Avatar

Level 6

Hi Team,

How to move delta change from one instance to another instance using package manager.

I am able to move entire from one instance to another instance using package manager but how we can do   delta movement in package manager.

For Example--> if have added one java script in client Lib same as to be moved to another instance.should not override entire code only js as to be moved.

Regards

Manikantha R

1 Accepted Solution

Avatar

Correct answer by
Employee

In order to find all that has been modified in Assets and Pages during a particular time frame you can employ teh folwing queries:

path=/content

type=cq:PageContent

group.p.or=true

group.1_daterange.property=cq:lastModified

group.1_daterange.upperBound=2017-04-21T23:59:59.000-04:00

group.1_daterange.lowerBound=2017-04-21T00:00:00.000-04:00

group.2_daterange.property=jcr:created

group.2_daterange.upperBound=2017-04-21T23:59:59.000-04:00

group.2_daterange.lowerBound=2017-04-21T00:00:00.000-04:00

p.limit=-1

path=/content/dam

type=dam:AssetContent

daterange.property=jcr:lastModified

daterange.upperBound=2017-04-21T23:59:59.000-04:00

daterange.lowerBound=2017-04-21T00:00:00.000-04:00

p.limit=-1

/jcr:root/content//element(*,cq:PageContent)[(@cq:lastModified >= xs:dateTime('2015-11-03T04:00:00.000-05:00') and

@cq:lastModified <= xs:dateTime('2015-11-03T20:00:00.000-05:00')) or (@jcr:created >= xs:dateTime('2015-11-03T04:00:00.000-05:00')

and @jcr:created <= xs:dateTime('2015-11-03T20:00:00.000-05:00')) ]

/jcr:root/content//element(*,dam:AssetContent)[(@jcr:lastModified >= xs:dateTime('2015-11-03T04:00:00.000-05:00') and

@jcr:lastModified <= xs:dateTime('2015-11-03T20:00:00.000-05:00')) or (@jcr:created >= xs:dateTime('2015-11-03T04:00:00.000-05:00')

and @jcr:created <= xs:dateTime('2015-11-03T20:00:00.000-05:00')) ]

You can then create packages using ACS Query Packager tool.

View solution in original post

3 Replies

Avatar

Community Advisor

Hi,

You can achieve this by using query builder to find the content modified recently by giving time frame and create a service which runs the query and creates a package in package manager

Query Builder API

Also, if you have acs-commons installed, adobe has option to run the query and create a content package in the instance

Go to

1) http://localhost:4502/miscadmin#/etc/acs-commons/packagers

2) Create a new page using Query Packager template

3) Open the page and click on Edit which opens a console

4) Enter required details as necessary and in query section, enter the query to find the last modified content like below

path=/content/we-retail/

daterange.property=cq:lastReplicated

daterange.lowerBound=2019-02-29T14:21:46.087-05:00

daterange.upperBound=2019-04-13T14:21:46.087-05:00

p.limit=-1

which creates a content package in package manager and also you can verify the results

Hope this helps !

Avatar

Level 6

Hi Ravi,

Thanks for your quick response.

Let me try and update you if i will face any issue.

Regards

Manikantha R

Avatar

Correct answer by
Employee

In order to find all that has been modified in Assets and Pages during a particular time frame you can employ teh folwing queries:

path=/content

type=cq:PageContent

group.p.or=true

group.1_daterange.property=cq:lastModified

group.1_daterange.upperBound=2017-04-21T23:59:59.000-04:00

group.1_daterange.lowerBound=2017-04-21T00:00:00.000-04:00

group.2_daterange.property=jcr:created

group.2_daterange.upperBound=2017-04-21T23:59:59.000-04:00

group.2_daterange.lowerBound=2017-04-21T00:00:00.000-04:00

p.limit=-1

path=/content/dam

type=dam:AssetContent

daterange.property=jcr:lastModified

daterange.upperBound=2017-04-21T23:59:59.000-04:00

daterange.lowerBound=2017-04-21T00:00:00.000-04:00

p.limit=-1

/jcr:root/content//element(*,cq:PageContent)[(@cq:lastModified >= xs:dateTime('2015-11-03T04:00:00.000-05:00') and

@cq:lastModified <= xs:dateTime('2015-11-03T20:00:00.000-05:00')) or (@jcr:created >= xs:dateTime('2015-11-03T04:00:00.000-05:00')

and @jcr:created <= xs:dateTime('2015-11-03T20:00:00.000-05:00')) ]

/jcr:root/content//element(*,dam:AssetContent)[(@jcr:lastModified >= xs:dateTime('2015-11-03T04:00:00.000-05:00') and

@jcr:lastModified <= xs:dateTime('2015-11-03T20:00:00.000-05:00')) or (@jcr:created >= xs:dateTime('2015-11-03T04:00:00.000-05:00')

and @jcr:created <= xs:dateTime('2015-11-03T20:00:00.000-05:00')) ]

You can then create packages using ACS Query Packager tool.