问题
We are currently using scheduled backups to have daily database backups. We are observing many problems in taking backups from past few days. The backup process executes for several hours but didn't get completed. We also had a look at the logs, but there is nothing mentioned for scheduled backup. We have following questions -
- By any means, can we make it more consistent and stop such things?
- Is there a way to get some kind of notification/email after the certain time if scheduled backup isn't successfully completed until that time.
- Can we also have a retry mechanism on the failure of scheduled backup?
回答1:
For your points:
1) If you don't describe he failures, there is little people can do to give guidance.
2) The forest backup information is logged. You can use standard log monitoring/alerting tools to manage alerts. Keep in mind that the log messages are per forest, so you may need to look closely at the lg messages for when a 'complete' or 'failed' backup are done.
3) From the result of number (2), you may decide to kick-off a new backup via the management API. See here: http://docs.marklogic.com/REST/POST/manage/v2/databases/[id-or-name]#BackupDB
来源:https://stackoverflow.com/questions/41282354/marklogic-scheduled-backups-failing