Content backup | Community
Skip to main content
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 Nilesh_Mali
  1. Create a scheduler and get the package filter path from OSGI configs.
  2. Create or build the package from the scheduler at a particular time with the cron expression
  3. Create a shell script with the curl command to download the created package from the scheduler, run it in the home directory
  4. Use the downloaded package.

3 replies

rawvarun
Community Advisor
Community Advisor
July 26, 2023
sai2tejaAuthor
Level 2
July 26, 2023

Thanks RawVarun,

 

Will check it out.

 

Regards,

Sai

bilal_ahmad
Level 5
July 26, 2023

Hey @sai2teja I'm assuming your dev and test servers are on linux/ec2 private cloud. I did this in my case

 

  1. Create a shell script in your home directory of the aem server that would use the cURL to create backup content package for the filters you want.
  2. Add an expression in crontab of the server that would run every day/night and execute your shell script
  3. Upload the created package on your file system/cloud and drip an email from the aem server about the backup package created.

Thanks

-Bilal

sai2tejaAuthor
Level 2
July 26, 2023

Thanks Bilal,

 

Will try this approach!

 

Regards,

Sai

Nilesh_Mali
Nilesh_MaliAccepted solution
Level 3
July 27, 2023
  1. Create a scheduler and get the package filter path from OSGI configs.
  2. Create or build the package from the scheduler at a particular time with the cron expression
  3. Create a shell script with the curl command to download the created package from the scheduler, run it in the home directory
  4. Use the downloaded package.