Need to automate content package creation and scheduling it weekly | Community
Skip to main content
New Participant
September 21, 2016
Solved

Need to automate content package creation and scheduling it weekly

  • September 21, 2016
  • 13 replies
  • 7346 views

Hi,

Is there a way we can automate content package creation on any environment and also schedule this creation?

Any pointers would be helpful.

 

We also open to the idea of creating repository backup but that should be automated and scheduled.

 

Regards,

Shallu Rohilla

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

Look at using Package Manager API and write a custom service. Fire off the service each week.  Look at this Javadoc. https://docs.adobe.com/docs/en/cq/5-5/javadoc/com/day/jcr/vault/packaging/PackageManager.html. Hope this helps.

13 replies

AnkurAhlawat-1
New Participant
September 22, 2016

If i had to automate content package creation then i personally prefer using Curl commands. These are fast and easy to use. smiley

See this How to use curl commands in aem

joerghoh
Employee
September 21, 2016

There is no ootb solution for this, but can write code to do that. You should start with the Jackrabbit Vault API [1], which allows you programmatically modify packages and operate on them. The entry point of your code is the packaging service [2], where you can get a JcrPackageManager.

Jörg

 

[1] https://jackrabbit.apache.org/filevault/apidocs/index.html?org/apache/jackrabbit/vault/packaging/package-summary.html

[2] https://jackrabbit.apache.org/filevault/apidocs/org/apache/jackrabbit/vault/packaging/Packaging.html

smacdonald2008
smacdonald2008Accepted solution
New Participant
September 21, 2016

Look at using Package Manager API and write a custom service. Fire off the service each week.  Look at this Javadoc. https://docs.adobe.com/docs/en/cq/5-5/javadoc/com/day/jcr/vault/packaging/PackageManager.html. Hope this helps.