Skip to main content
Nandujee
Level 3
Oct 16, 2015 2:28 AM UTC
Solved

Create package using java code.

Hi,

How to take a backup of some folder through java code. because I have below scenario

Whenever user upload the file, I have to take backup of  some folder and package it and store it in the CRX.

Kindly give your suggestion.

Thanks

Nanda

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

You can use this API to programmatically work with packages:

https://docs.adobe.com/docs/en/cq/5-5/javadoc/com/day/jcr/vault/packaging/PackageManager.html

Using this API - you can assemble a package. 

2 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:28 AM UTC

You can use this API to programmatically work with packages:

https://docs.adobe.com/docs/en/cq/5-5/javadoc/com/day/jcr/vault/packaging/PackageManager.html

Using this API - you can assemble a package. 

Translate
Sham_HC
Level 10
Oct 16, 2015 2:28 AM UTC