Skip to content

How to monitor weblate backup status #10627

Answered by nijel
oldboys92 asked this question in Q&A
Discussion options

You must be logged in to vote

Backup failure triggers a configuration error (what you've seen in the UI) and the count of these is exposed in /api/metrics/. So that would be the easiest approach to see if something is wrong.

There don't seem to be logging of these to the log right now:

def backup(self):
try:
log = backup(self.repository, self.passphrase)
self.backuplog_set.create(event="backup", log=log)
except BackupError as error:
self.backuplog_set.create(event="error", log=str(error))

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by oldboys92
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants