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

Create package using java code.

Avatar

Level 4

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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. 

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

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.