Skip to main content
October 25, 2022
Question

curl command to check if an online backup is completed successfully.

  • October 25, 2022
  • 1 reply
  • 690 views

I know the backup progress txt file is one way to confirm it, but I am wondering if there is another way more reliable, not just see if there is an ongoing backup, but really see if the backup job is completed and completed successfully.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SantoshSai
Community Advisor
Community Advisor
October 25, 2022

Hi @mh158 ,

Please check below command

curl -s -u "admin:admin" http://localhost:4502/system/console/jmx/com.adobe.granite:type=Repository | grep -ie 'BackupInProgress\|BackupProgress\|BackupWasSuccessful' | sed -e "s/<[-a-zA-Z=\'?.\{\}&;:\/, ]*>/ /g" | sed -e 's/^ *//g' | sed 's/ */ /g'

Additionally, you may track it through backup console here: 

https://<*hostname*>:<*port-number*>/libs/granite/backup/content/admin.html

where a progress bar will indicate the progress of the backup.

For more details please refer [0].

[0]: https://experienceleague.adobe.com/docs/experience-manager-64/administering/operations/backup-and-restore.html?lang=en#aem-online-backup

Hope that helps!

Regards,

Santosh

Santosh Sai
mh158Author
October 26, 2022

Thank you, Santosh.

 

I made a curl command to check related values and tested on AEM 6.5 with Service Pack 6.5.8.

 

curl -s -u "admin:admin" http://localhost:4502/system/console/jmx/com.adobe.granite:type=Repository | grep -ie 'BackupInProgress\|BackupProgress\|BackupWasSuccessful' | sed -e "s/<[-a-zA-Z=\'?.\{\}&;:\/, ]*>/ /g" | sed -e 's/^ *//g' | sed 's/ */ /g'

 

Here is the output.

 

BackupInProgress false
BackupProgress 0
BackupWasSuccessful true

 

I think this serves my purpose.