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
# if you already have python bin directory in your path
57
+
bookstack-file-exporter -c <path_to_config_file>
55
58
```
59
+
60
+
#### Options
56
61
Command line options:
57
62
| option | required | description |
58
63
| ------ | -------- | ----------- |
59
64
|`-c`, `--config-file`|True|Relative or Absolute path to a valid configuration file. This configuration file is checked against a schema for validation.|
_Note: This application is tested and developed on Python version `3.12.X`. It will probably work for >= `3.8` but is recommended to install (or set up a venv) a `3.12.X` version._
|`config`|`/export/config/config.yml`| A valid configuration file |`-v /local/yourpath/config.yml:/export/config/config.yml:ro`|
@@ -136,7 +161,6 @@ assets:
136
161
export_images: false
137
162
export_meta: false
138
163
verify_ssl: true
139
-
keep_last: 5
140
164
```
141
165
142
166
#### Full Example
@@ -191,6 +215,18 @@ More descriptions can be found for each section below:
191
215
| `keep_last` | `int` | `false` | Optional (default: `None`), 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 |
- `LOG_LEVEL`: default: `info``. Provide a valid log level: info, debug, warning, error.
221
+
222
+
[Bookstack Credentials](#authentication)
223
+
- `BOOKSTACK_TOKEN_ID`
224
+
- `BOOKSTACK_TOKEN_SECRET`
225
+
226
+
[Minio Credentials](#authentication-1)
227
+
- `MINIO_ACCESS_KEY`
228
+
- `MINIO_SECRET_KEY`
229
+
194
230
### Backup Behavior
195
231
Backups are exported in `.tgz` format and generated based off timestamp. Export names will be in the format: `%Y-%m-%d_%H-%M-%S`(Year-Month-Day_Hour-Minute-Second). *Files are first pulled locally to create the tarball and then can be sent to object storage if needed*. Example file name: `bookstack_export_2023-09-22_07-19-54.tgz`.
0 commit comments