I'm setting up automated backups for a new installation but running into problems with capturing the backup status. I can track the progress of the backups with,
curl --netrc-file "xx" http://localhost:4502/libs/granite/backup/content/admin/backups.progress.json
and get a list of previous backups with,
curl --netrc-file "xx" http://localhost:4502/libs/granite/backup/content/admin/backups.list.json
is there also a way of identifying that a backup completed successfully?
Please have a look at this old forum post:-
//curl -u admin:admin http://localhost:9502/libs/granite/backup/content/admin/backups.progress.json
//You can get the status of the last backup in the repository JMX MBean - http://localhost:4502/system/console/jmx/com.adobe.granite%3Atype%3DRepository
Following are the backup related attributes in the MBean-
BackupResult Backup canceled
Or else, make a call to the following URLs which get the values from JMX and return it in the JSON-
I hope this would help you.
Thanks and Regards