Replace dsc import calls with Docspell API
This commit is contained in:
@@ -5,7 +5,7 @@ A small command-line helper for managing Docspell import folders, archiving file
|
||||
## Features
|
||||
|
||||
- Scan one or more configured import directories.
|
||||
- Check every file with `dsc file-exists` to see whether it is already known to Docspell.
|
||||
- Check every file with Docspell's API to see whether it is already known to Docspell.
|
||||
- Move files that already exist in Docspell and are in the `confirmed` state into a local archive.
|
||||
- Preserve useful archive structure by Docspell folder and item date.
|
||||
- Optionally upload files that do not yet exist in Docspell.
|
||||
@@ -14,7 +14,6 @@ A small command-line helper for managing Docspell import folders, archiving file
|
||||
|
||||
## Requirements
|
||||
|
||||
- [Docspell Command Line Client (`dsc`)](https://docspell.org/docs/tools/cli/) for the import/archive command.
|
||||
- A running Docspell instance.
|
||||
- A password command, for example [`pass`](https://www.passwordstore.org/), that prints the Docspell password to stdout.
|
||||
- FUSE support for the `mount` command, including `fusermount` or `fusermount3` for unmounting.
|
||||
@@ -64,7 +63,7 @@ Run the `import` subcommand:
|
||||
docspell-cli import
|
||||
```
|
||||
|
||||
The command logs in with `dsc`, scans every configured import directory, and checks each file against Docspell.
|
||||
The command logs in to Docspell via the REST API, scans every configured import directory, and checks each file against Docspell by SHA-256 checksum.
|
||||
|
||||
If a file already exists in Docspell, the tool fetches the item details and prints the Docspell item URL. The local file is moved only when the Docspell item is `confirmed` and has an item date. Files that are still unconfirmed or missing a date are left untouched.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user