You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As user I want to download all documents So that I can create a local offline copy of the documents for emergency access
Context
In case of a downtime of Paperless, all documents become unavailable as well.
With a local offline copy, one can at least access the documents.
For this, we need to download all documents and optionally unzip them.
In an ideal use case, this step is automated using cron or systemd timer and executed regularly.
Given a running Paperless instance with REST API access
When the CLI is invoked with subcommand `bulk-download LOCAL-FILENAME`
Then all documents are downloaded in `archive` format into `LOCAL-FILENAME.zip`
Given a running Paperless instance with REST API access
When the CLI is invoked with subcommand `bulk-download --unzip LOCAL-FILENAME`
Then all documents are downloaded and extracted into `LOCAL-FILENAME` dir
Given a running Paperless instance with REST API access
And file or dir `LOCAL-FILENAME` exists locally
When the CLI is invoked with subcommand `bulk-download LOCAL-FILENAME`
Then the download is aborted with an error message
Given a running Paperless instance with REST API access
And file or dir `LOCAL-FILENAME` exists locally
When the CLI is invoked with subcommand `bulk-download --overwrite LOCAL-FILENAME`
Then any previously existing file (or dir) called `LOCAL-FILENAME[.zip]` is removed
And all documents are downloaded into `LOCAL-FILENAME[.zip]` dir or zip file without error
Implementation Ideas
CLI should be something like $ paperless-cli bulk-download [--archive|--original] [--overwrite] [--unzip] LOCAL-FILENAME
Start with bulk-downloading everything at every invocation
Later on, we might download the diff only. For example, we can list all documents and keep that list saved locally. In the next invocation, fetch the list again and compare with local saved list so that only the diff needs to be redownloaded. Might be worth its own feature request.
The text was updated successfully, but these errors were encountered:
Summary
As user
I want to download all documents
So that I can create a local offline copy of the documents for emergency access
Context
In case of a downtime of Paperless, all documents become unavailable as well.
With a local offline copy, one can at least access the documents.
For this, we need to download all documents and optionally unzip them.
In an ideal use case, this step is automated using cron or systemd timer and executed regularly.
Out of Scope
Further links
Acceptance criteria
Implementation Ideas
$ paperless-cli bulk-download [--archive|--original] [--overwrite] [--unzip] LOCAL-FILENAME
The text was updated successfully, but these errors were encountered: