How to specify delay parameter while taking online backup using curl on AEM 6.2

Avatar

Avatar
Validate 1
Level 2
shab_ravi
Level 2

Likes

2 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
shab_ravi
Level 2

Likes

2 likes

Total Posts

9 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
Applaud 5
View profile
shab_ravi
Level 2

03-11-2016

Hi,

Could anyone let me know how to specify the delay parameter in the curl command while taking online backup on AEM v6.2.

The I use for AEM 5.6 is as follows :

/usr/bin/curl -u admin:${PASSWORD} --data "delay=0&force=false&target=${DEST}/AEM_${ID}_${DATE}.zip" http://${SERVER}:${PORT}/libs/granite/backup/content/admin/backups
.html

Could someone let me know the equivalent for AEM 6.2 please.

The one I have for 6.2 is :

/usr/bin/curl -u admin:${PASSWORD} -X POST http://${SERVER}:${PORT}/system/console/jmx/com.adobe.granite%3Atype%3DRepository/op/startBackup/java.lang.String?target=${DE
ST}/AEM_${ID}_${DATE}.zip

View Entire Topic

Avatar

Avatar
Boost 50
Level 10
Sham_HC
Level 10

Likes

161 likes

Total Posts

2,114 posts

Correct reply

1,204 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 100
View profile

Avatar
Boost 50
Level 10
Sham_HC
Level 10

Likes

161 likes

Total Posts

2,114 posts

Correct reply

1,204 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 100
View profile
Sham_HC
Level 10

03-11-2016

in cron job you need to call 2 curl command. One to set delay & next is to take a backup.

curl -u admin:admin -X POST http://localhost:4502/system/console/jmx/com.adobe.granite:type=Repository/a/BackupDelay?value=0