✨ backup: allow plugins to flag excludes among their data

Plugins may now implement the hook octoprint.plugin.backup.additional_excludes
to flag entries inside their data folder (or the whole data folder
in case of .) as to be excluded from backups. The list of currently
excluded folders is supplied to the hook handler as well in order
to make such a decision conditionally.

Implements #3720
This commit is contained in:
Gina Häußge committed 2020-09-10 18:04:38 +02:00
1 parent 0dd43d7bcc
commit 65eb45c56a
3 files changed
+114 -2

No files matched your search

+7
View File
@@ -1125,6 +1125,13 @@ octoprint.filemanager.preprocessor
:return: The `file_object` as passed in or None, or a replaced version to use instead for further processing.
:rtype: AbstractFileWrapper or None
.. _sec-plugins-hook-plugin-backup-excludes:
octoprint.plugin.backup.additional_excludes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
See :ref:`here <sec-bundledplugins-backup-hooks-excludes>`.
.. _sec-plugins-hook-plugin-loginui-theming:
octoprint.plugin.loginui.theming