You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-2Lines changed: 29 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -262,6 +262,8 @@ notifications:
262
262
storage_path: ""
263
263
custom_title: ""
264
264
custom_attachment_path: ""
265
+
on_success: false
266
+
on_failure: true
265
267
```
266
268
267
269
#### Options and Descriptions
@@ -290,6 +292,7 @@ More descriptions can be found for each section below:
290
292
| `keep_last` | `int` | `false` | Optional (default: `0`), if exporter can delete older archives. valid values are:<br>- set to `-1` if you want to delete all archives after each run (useful if you only want to upload to object storage)<br>- set to `1+` if you want to retain a certain number of archives<br>- `0` will result in no action done. |
291
293
| `run_interval` | `int` | `false` | Optional (default: `0`). If specified, exporter will run as an application and pause for `{run_interval}` seconds before subsequent runs. Example: `86400` seconds = `24` hours or run once a day. Setting this property to `0` will invoke a single run and exit. Used for basic scheduling of backups. |
|`keep_last`|`int`|`false`| Optional (default: `0`), if exporter can delete older archives in minio.<br>- set to `1+` if you want to retain a certain number of archives<br>- `0` will result in no action done |
493
496
494
497
## Notifications
495
-
It is possible to send notifications when an export run fails. Currently, the only supported notification service is [apprise](https://github.com/caronc/apprise). Apprise is a general purpose notification service and has a variety of integrations and includes generic HTTP POST.
498
+
It is possible to send notifications when an export run succeeds orfails. Currently, the only supported notification service is [apprise](https://github.com/caronc/apprise). Apprise is a general purpose notification service and has a variety of integrations and includes generic HTTP POST.
499
+
500
+
Notifications are optional and the `notification` section can be omitted/removed/commented out entirely to keep a smaller configuration if not required.
501
+
502
+
The title for notifications is configurable but not if not specified, a default will be used. Example:
503
+
```
504
+
##### Failure Message #####
505
+
{TITLE}: Bookstack File Exporter Failed
506
+
{BODY}:
507
+
Bookstack File Exporter encountered an unrecoverable error.
508
+
509
+
Occurred At: 2025-09-06 01:02:47
510
+
511
+
Error: 401 Client Error: Unauthorized for url: https://test.bookstack/api/shelve
512
+
513
+
514
+
##### Success Message #####
515
+
{TITLE}: Bookstack File Exporter Success
516
+
{BODY}:
517
+
Bookstack File Exporter completed successfully.
518
+
519
+
Completed At: 2025-09-06 01:05:27
520
+
```
496
521
497
522
### apprise
498
-
The apprise configuration is a part of the configuration yaml file and can be modified under `notifications.apprise`.
523
+
The apprise configuration is a part of the configuration yaml file under the notifications section and can be modified under `notifications.apprise`.
499
524
500
525
| Item | Type | Description |
501
526
| ---- | ---- | ----------- |
@@ -505,6 +530,8 @@ The apprise configuration is a part of the configuration yaml file and can be mo
505
530
|`apprise.storage_path`|`str`| For persistent storage, specify a path for apprise to use |
506
531
|`apprise.custom_title`|`str`| Replace the default message title for apprise notifications |
507
532
|`apprise.custom_attachment_path`|`str`| To include a custom attachment to the apprise notification, specify the path to a file |
533
+
|`apprise.on_success`|`bool`| Default: `false`, set to `true` if notifications should be sent on successful export runs |
534
+
|`apprise.on_failure`|`bool`| Default: `true`, send notifications if run fails |
508
535
509
536
`apprise.service_urls` can contain sensitive information and can be specified as an environment variable instead as a string list, example: `export APPRISE_URLS='["json://localhost:8080/notify"]'`.
0 commit comments