feat: fine-grained ping message

Different PING URLs for various scenarios, enabling success/failure tracking and latency monitoring.
This commit is contained in:
Yi Chen committed 2024-07-16 16:33:48 -04:00
1 parent 4a0b80fcd0
commit 33021b5910
6 files changed
+80 -13

No files matched your search

+13 -1
View File
@@ -42,7 +42,7 @@ This tool supports backing up the following files or directories.
And the following ways of notifying backup results are supported.
- Ping (only send on success)
- Ping (send on completion, start, success, or failure)
- Mail (SMTP based, send on success and on failure)
<br>
@@ -330,8 +330,20 @@ Default: `UTC`
#### PING_URL
Use [healthcheck.io](https://healthchecks.io/) url or similar cron monitoring to perform `GET` requests after a backup **no matter if it succeeds or fails**.
#### PING_URL_WHEN_STARTS
Use [healthcheck.io](https://healthchecks.io/) url or similar cron monitoring to perform `GET` requests at the **beginning** of a backup.
#### PING_URL_WHEN_SUCCESS
Use [healthcheck.io](https://healthchecks.io/) url or similar cron monitoring to perform `GET` requests after a **successful** backup.
#### PING_URL_WHEN_ERROR
Use [healthcheck.io](https://healthchecks.io/) url or similar cron monitoring to perform `GET` requests after a backup **fails**.
#### MAIL_SMTP_ENABLE
Starting from v1.19.0, we will be using [`s-nail`](https://www.sdaoden.eu/code-nail.html) instead of [`heirloom-mailx`](https://www.systutorials.com/docs/linux/man/1-heirloom-mailx/) to send emails.