Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How to get the status of the backup (success/failed)? #16

Closed
mahadi opened this issue Aug 31, 2019 · 2 comments
Closed

Question: How to get the status of the backup (success/failed)? #16

mahadi opened this issue Aug 31, 2019 · 2 comments

Comments

@mahadi
Copy link

mahadi commented Aug 31, 2019

I want to monitor the status of my backups automatically on notify myself if something broke.
As the APi is not documented officially, i am trying to extract the simple information for each backup like "Status: Success/Failed" from the API using duplicati-client.

list backups only tells me when it was running the last time, but not if it was running successfully.

Can i get this information using the api directly or do i need to do additional queries? (Or write my own method?)

@Pectojin
Copy link
Owner

The Duplicati API doesn't provide that information directly, but it's for a good reason.

last run is only considering successful runs. If the backup doesn't complete it's not considered run.

So you can see that it succeeded if the last run time has been updated, but you'll want to look at list notifications to get informed both about errors actually stopping the backup and warnings that didn't break your backup.

You can also get the entire backup run log with duc logs backup --id 42, but it's a bit harder to parse.

@mahadi
Copy link
Author

mahadi commented Aug 31, 2019

Ok, thanks for that information. Was not clear to me.

@mahadi mahadi closed this as completed Aug 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants