Content backup | Community
Skip to main content
New Participant
July 26, 2023
Solved

Content backup

  • July 26, 2023
  • 3 replies
  • 1517 views

Hello All,

 

I need some suggestion on how to take content back up every night in Dev and Tst regions! 

 

TIY,

Sai

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

Nilesh_Mali
Nilesh_MaliAccepted solution
New Participant
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.
bilal_ahmad
New Participant
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
New Participant
July 26, 2023

Thanks Bilal,

 

Will try this approach!

 

Regards,

Sai

rawvarun
New Participant
July 26, 2023
sai2tejaAuthor
New Participant
July 26, 2023

Thanks RawVarun,

 

Will check it out.

 

Regards,

Sai