Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

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

Level 10

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.