This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |