


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?
Thanks
Views
Replies
Sign in to like this content
Total Likes
The same request to check the progress http://localhost:4502/libs/granite/backup/content/admin/backups.progress.json
would return inProgress as false when the backup gets complete
Views
Replies
Sign in to like this content
Total Likes
Hi
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-
BackupDelay 10
BackupInProgress false
BackupProgress 0
CurrentBackupTarget
BackupWasSuccessful false
BackupResult Backup canceled
Or else, make a call to the following URLs which get the values from JMX and return it in the JSON-
http://localhost:4502/libs/granite/backup/content/admin/backups.list.json
http://localhost:4502/libs/granite/backup/content/admin/backups.progress.json
I hope this would help you.
Thanks and Regards
Kautuk Sahni
Views
Replies
Sign in to like this content
Total Likes