mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-23 10:58:26 +00:00
Add an export-files script
This commit is contained in:
33
website/site/content/docs/tools/export-files.md
Normal file
33
website/site/content/docs/tools/export-files.md
Normal file
@ -0,0 +1,33 @@
|
||||
+++
|
||||
title = "Export Files"
|
||||
description = "Downloads all files from docspell."
|
||||
weight = 65
|
||||
+++
|
||||
|
||||
# export-files.sh
|
||||
|
||||
This script can be used to download all files from docspell that have
|
||||
been uploaded before.
|
||||
|
||||
# Requirements
|
||||
|
||||
It is a bash script that additionally needs
|
||||
[curl](https://curl.haxx.se/) and
|
||||
[jq](https://stedolan.github.io/jq/).
|
||||
|
||||
# Usage
|
||||
|
||||
```
|
||||
./export-files.sh <docspell-base-url> <target-directory>
|
||||
```
|
||||
|
||||
For example, if docspell is at `http://localhost:7880`:
|
||||
|
||||
```
|
||||
./export-files.sh http://localhost:7880 /tmp/ds-downloads
|
||||
```
|
||||
|
||||
The script asks for your account name and password. It then logs in
|
||||
and goes through all items downloading the metadata as json and the
|
||||
attachments. It will fetch the original files (not the converted
|
||||
ones).
|
Reference in New Issue
Block a user