TODO - Peertube
+**Upgrade Notices**
+
+- **Requirements Change** - The "zip" PHP extension is now a requirement for BookStack. If you installed via our Ubuntu scripts, this should already be installed.
+
### New Importable Export Format
A new export option is now available for books, chapters & pages: "Portable ZIP"
#### Debugging Email
+Failed email sends are handled differently depending on what triggers them.
+In some cases, like for user invites, an error will be shown to the user within BookStack since the email
+is required to perform the intended action.
+In other cases, like user activity/watch notification emails, failure of email send will not be shown
+to the BookStack user performing activity, but the error will just be logged to the application error log file.
+
You can follow the instructions provided in the [debugging documentation page](/docs/admin/debugging/)
to help gain more details about issues you may come across. Within the "Settings > Maintenance" area of
BookStack you can find a "Send a Test Email" action which provides a quick & easy way to send emails
* **PHP** >= 8.1
* For installation and maintenance, you'll need to be able to run `php` from the command line.
- * Required Extensions: gd, dom, iconv, mbstring, mysqlnd, openssl, pdo, pdo_mysql, tokenizer, xml.
+ * Required Extensions: gd, dom, iconv, mbstring, mysqlnd, openssl, pdo, pdo_mysql, tokenizer, xml, zip.
* Optional Extensions: ldap *(If wanting to use LDAP Auth)*.
* *For PHP MySQL extensions use `nd` (Native Driver) variants where provided, otherwise these may be the default provided in modern `mysql` PHP extension packages.*
* **MySQL** >= 5.7 or **MariaDB** >= 10.2
# Set the default 'email' attribute. Defaults to 'mail'
LDAP_EMAIL_ATTRIBUTE=mail
-# Set the property to use for a user's display name. Defaults to 'cn'
+# Set the property to use for a user's display name. Defaults to 'cn'.
+# Can have multiple attributes listed, separated with a '|' in which
+# case those values will be joined with a space.
+# Example: LDAP_DISPLAY_NAME_ATTRIBUTE=given_name|family_name
LDAP_DISPLAY_NAME_ATTRIBUTE=cn
# Set the attribute to use for the user's avatar image.
Details of updates can be found on [our blog](https://www.bookstackapp.com/blog/) or via
the [GitHub releases page](https://github.com/BookStackApp/BookStack/releases).
+#### Updating to v24.12 or higher
+
+**Requirements Change** - The "zip" PHP extension is now a requirement for BookStack. If you installed via our Ubuntu scripts, this should already be installed.
#### Updating to v24.10.2 or higher
--- /dev/null
++++
+title = "Exporting & Importing Content"
+date = "2024-12-20"
+type = "user-doc"
++++
+
+BookStack allows its content to be exported in a range of formats, while also providing
+a few options for importing content.
+Note that these option are not intended for backup or restore, for which you [can find relevant documentation here](/docs/admin/backup-restore/).
+
+### Exporting
+
+Within BookStack, if you have the required "Export content" role permission, you can export books,
+chapters or pages in the following formats:
+
+- Contained Web File
+ - A ".html" file with images embedded where possible, which can be opened in a browser.
+ - This usually provides the best representation of your BookStack content.
+- PDF File
+ - A ".pdf" document file representation of your content.
+ - The output of this can sometimes be inaccurate or lack certain features compared to how its represented in BookStack.
+- Plain Text File
+ - A ".txt" file with just the text containing in your content.
+- Markdown File
+ - A ".md" file with a markdown representation of your content.
+ - If the page was written using the Markdown editor, then that original content will be provided otherwise this export will attempt a conversion to Markdown.
+ - The resulting markdown may still use HTML for some content types.
+- Portable ZIP
+ - A ".zip" containing data, attachment and image files.
+ - This can be re-imported to BookStack instances as mentioned below.
+ - The exact format can be found documented [in the BookStack source here](https://github.com/BookStackApp/BookStack/blob/development/dev/docs/portable-zip-file-format.md).
+
+Although not shown as an export format, care is taken in BookStack to ensure that pages display well via browser printing options.
+This allows you to print to paper, or often to PDF, via your browser's print action as another form of export.
+
+For developers, many of these export options can also be accessed over the [BookStack REST API](/docs/admin/hacking-bookstack/#bookstack-api), which
+also provides many other endpoints that may be found useful for export-focused tasks.
+
+### Importing
+
+Within BookStack, if you have the required "Import content" role permission, you can import "Portable ZIP"
+files (as mentioned in the [exporting](#exporting) section above) via the "Import" action seen when viewing the
+top-level "Books" view, or by going to the `/import` URL path of your instance:
+
+<img src="/images/docs/user/import-overview.png" alt='View of the import page, with a field to select a ZIP for upload, and a section below showing "Pending Imports" with one "IT Department" book listed' width="600">
+
+Here you'll be able to upload a new ZIP file for import, or continue a previously uploaded pending import.
+Before the import runs, you'll be provided a preview of what's due to be imported.
+When ran, the content will be imported into BookStack, and the original uploaded ZIP file will be deleted.
+
+For developers, the details of this importable ZIP format [can be found here](https://github.com/BookStackApp/BookStack/blob/development/dev/docs/portable-zip-file-format.md) otherwise you could also consider the [BookStack REST API](/docs/admin/hacking-bookstack/#bookstack-api) as an option for import.
\ No newline at end of file
--- /dev/null
+version https://git-lfs.github.com/spec/v1
+oid sha256:521ab395b54c25722e1b8b0f320d9d91fe66354411fc613cf43f4844ef282873
+size 38369
<li><a href="/docs/user/markdown-editor">Markdown Editor</a></li>
<li><a href="/docs/user/attachments">Attachments</a></li>
<li><a href="/docs/user/diagrams">Drawings & Diagrams</a></li>
+ <li><a href="/docs/user/export-import">Exporting & Importing</a></li>
</ul>
</div>