This script will generate folders for each book, chapter, and page of a Bookstack install and writes them out as PDFs or HTML pages.
If you would export attachments from pages to, this script has to run on the same host as bookstackapp-wiki, because it reads files from the webservers docroot upload directory.