Skip to content

Instantly share code, notes, and snippets.

View aslmx's full-sized avatar
🦥

aslmx

🦥
  • DE
View GitHub Profile
@aslmx
aslmx / bookstack_export.sh
Last active December 7, 2021 12:14
Export your Bookstack Books into PDF
#!/bin/bash
## based on Comments by NUMEN31337 in https://github.com/BookStackApp/BookStack/issues/2405
## needs `jq` being installed
DATE_MONTH=`date +"%Y.%m"` # Naming for monthly backups
TOKEN='123-TOKEN-321:ABC-secret-CBA';
BASE_URL='https://your-bookstack-fqdn.tld';
FORMAT=pdf
# FORMAT can be html or pdf