Add PAPERLESS_TRASH_DIR

When set, original files are moved here instead of being permanently
removed when a document is deleted.
This commit is contained in:
Felix Eckhofer
2021-08-22 19:31:50 +02:00
parent cd43bc1f66
commit 64304c5121
8 changed files with 76 additions and 0 deletions

View File

@@ -80,6 +80,15 @@ PAPERLESS_DATA_DIR=<path>
Defaults to "../data/", relative to the "src" directory.
PAPERLESS_TRASH_DIR=<path>
Instead of removing deleted documents, they are moved to this directory.
This must be writeable by the user running paperless. When running inside
docker, ensure that this path is within a permanent volume (such as
"../media/trash") so it won't get lost on upgrades.
Defaults to empty (i.e. really delete documents).
PAPERLESS_MEDIA_ROOT=<path>
This is where your documents and thumbnails are stored.