Paperless Sync¶
Your finished Paperless-ngx documents, as a tidy archive in Nextcloud.
A native Nextcloud app that mirrors finalized Paperless-ngx documents into a structured Nextcloud archive and can submit files from a Nextcloud inbox to Paperless. Paperless remains the source of truth.
- Nextcloud 33–35
- PHP 8.2+
- Paperless-ngx 2.16+ with an API token
- Nextcloud's system cron
Get it from the App Store Try it Quick start Requirements
Who it's for¶
-
A household
The papers of the family are in Paperless, and everyone finds them in Nextcloud, also on the phone: in one archive that you share, or each person with the documents they own in Paperless.
-
A small office
Colleagues send files to Paperless from Files, rules of Flow send them on their own, and the person who runs Paperless gets the settings without being an administrator of Nextcloud.
-
Paperless on a NAS
Paperless may run on another machine: the app reaches it through its REST API, with no container next to it and no access to its media folder, and a switch allows an address of your network.
What it does¶
Archive¶
-
A structured archive in Nextcloud
Documents appear in folders of the configured Nextcloud user, by correspondent first by default, as archive PDF or original file. A path template decides where each one goes, and its preview shows that while you type.
-
Follows changes in Paperless
When the metadata of a document changes in Paperless, its file is renamed or moved in Nextcloud, with its shares, comments and versions. Documents in the Paperless inbox or with an excluded tag stay out, and the archive can mirror only the documents with the tags that you choose.
-
Tags and metadata come along
The tags of Paperless can show as tags of Nextcloud on the copies, so that Files filters and searches by them. A JSON file for each document and an index as CSV keep its tags, notes, custom fields and dates next to the archive, which then describes itself also without Paperless.
-
Each user their own documents
One user can own the archive and share it. Or each user of Nextcloud gets the documents they own in Paperless in their own files, through the one connection of the app, and, if you choose, those that Paperless shares with them.
Inbox and Files¶
-
From a Nextcloud inbox to Paperless
Files in a Nextcloud inbox folder, including its subfolders, are submitted to Paperless with their tags, and the app follows their Paperless tasks. A failed import moves to an error folder, next to the reason.
-
Send to Paperless in Files
The menu of a file or a folder sends it to Paperless, for the members of a group that you choose. It stays where it is, and a notification links the new document. Open in Paperless in the menu of a copy opens its document.
-
Rules of Flow
Rules of Flow send files on their own, with tags of their own, such as every PDF that a member of a group uploads. Only the administrators make them.
-
Files says what a folder does
A note above the list says that the archive is a mirror, when the inbox sends its files and where the reasons of failed imports are, also for people who reach the folder through a share.
Operations¶
-
Changes within seconds
A workflow of Paperless calls the webhook of the app when it adds or changes a document, and its copy changes at once, without a container next to Paperless, its media folder or a password of Nextcloud.
-
Getting started, step by step
Until the first run has succeeded, the settings open with the steps of the quick start in their safe order. Pickers offer the users and the tags, and mark one that doesn't exist. The administrators can delegate the settings to a group.
-
Tells you when the mirror fails
Notifications, setup checks, a health check and a status API tell the administrators when the mirror keeps failing or has stopped, also in Uptime Kuma or Home Assistant, with a token for the monitor that opens nothing else. The Activity stream of the target user tells what each run changed and imported.
-
On a schedule, on demand or from a script
Nextcloud's cron runs it at the interval that you set, and the batch size limits the changes of one run. A run also starts from the settings, and
occcommands serve scripts, cron jobs and monitoring, with JSON output and exit codes.
Safety¶
-
Dry run first
Synchronization stays off until you turn it on. A dry run lists what a run would change without changing anything. The status, the errors and the report of the last run, also of a scheduled one, stay on the settings page.
-
Careful with deletions
The Paperless trash is mirrored into a folder of its own. Permanent deletion is off by default and, when enabled, waits for the configured number of complete scans.
-
No passwords in Nextcloud
The app works through Nextcloud's filesystem API, without WebDAV credentials or an app password. Its account in Paperless is no superuser, and the Paperless token stays in Nextcloud's credentials manager and never reaches the browser.
-
A connection that it checks
Test connection checks every permission that your modules need and names what to grant in Paperless. A Paperless in your local network works without turning off Nextcloud's protection against server-side request forgery for the whole server.
The settings speak English and German. They, the actions in Files and the form of the rule in Flow are checked for accessibility against WCAG 2.1 AA in every change of the app. Every release is signed, the same package in the Nextcloud App Store and on GitHub, with an SBOM and signed build provenance.
How it works¶
At the configured interval, Nextcloud's cron starts a run of the app inside Nextcloud. It reads the finished documents of Paperless and writes each one into the archive in the files of the configured Nextcloud target user, at the path that the path template builds from its metadata; other users see the archive when that user shares it with them. When the metadata changes in Paperless, the file moves; when a document goes to the Paperless trash, its copy goes to _Deleted. Files that someone puts into Inbox go the other way, to Paperless.
Try it¶
See the app at work in a few minutes, without a Nextcloud or a Paperless-ngx of your own. With Docker on Linux, or Docker Desktop on Windows or macOS:
git clone https://github.com/Dennis-Otto/paperless-sync.git
cd paperless-sync
docker compose -f demo/compose.yaml up
It starts Nextcloud and Paperless-ngx on your machine alone, fills Paperless with a made-up household archive, installs the app from the App Store and connects it, with a dry run first and then the first run. Then the command prints the address of the archive and the password that it made, which stays in demo/.env. docker compose -f demo/compose.yaml down --volumes removes it all again.
demo/README.md in the repository says what to try in it.
Quick start¶
- Install Paperless Sync from the Nextcloud App Store under Apps, or with
occ app:install paperless_sync. Nextcloud's system cron must run. - In Nextcloud, open Administration settings → Paperless Sync. Enter the Paperless URL, pick the Nextcloud user who owns the archive from the users that the field offers, and turn on the modules that you want, such as the inbox. For a Paperless at an address of your network, such as
http://paperless:8000, turn on Paperless runs in my local network. Leave synchronization disabled. - Open Create an account for the app in Paperless, enter the API token of a Paperless superuser, from My Profile in its menu, and click Create the account and save. The app creates the user
nextcloud-sync, no superuser, with only the permissions that your modules need and a random password, saves the settings with the token of that user, never with yours, and shows the connection checklist. Then make the account the owner of the documents to mirror, so that their trash reaches the archive right away, as the checklist says. To keep the token of your superuser out of Nextcloud, create the account by hand, as The account of the app under Configuration describes, enter its token in Paperless API token and click Test connection instead. - Start a dry run and read its summary: it lists what a run would change, without changing anything.
- Enable synchronization and save. Nextcloud's cron runs it at the configured interval, and the documents appear in
Documents/Paperless/Archiveof that user.
The guide describes the configuration in detail: the Paperless account, the folders, the path template and the deletion safety.
Learn more¶
-
Guide
Installation, all features, usage and every part of the configuration.
-
Using the archive
For the people who read and send the documents: find them, send files to Paperless, scan with the phone, keep them offline and share them.
-
FAQ and troubleshooting
What happens to edits and deletions, how long the first synchronization takes, and the fixes for the error messages.
-
How it compares
Paperless Sync next to Nextcloud's Paperless integration, the WebDAV container, rclone and a mount, and how to move over.
-
Architecture
How the app runs inside Nextcloud, reads Paperless through its REST API and writes files through Nextcloud's file API.
-
Security design
What the app protects, what it trusts, the threats with their countermeasures, and the risks that remain.
-
Roadmap
What Paperless Sync intends to do in the next twelve months, and what it will not do.
-
Decisions
The decisions that shape the project, each with its reasons.
-
Automation
The bots that check every change, release and verify the app, answer issues and keep the repository current.
-
Development and releases
How to build and test the app, how a release is made, signed and published in the Nextcloud App Store, and the changes of each version.
Help and feedback¶
- A question about the set-up, or whether the app can do something: ask in the Q&A discussions, where the answer stays for the next person who asks.
- A bug: open a bug report with the versions of the app and of Nextcloud. Report a vulnerability privately instead.
- An idea: suggest it in a feature request.
- If it works for you: rate it in the Nextcloud App Store, so that others find it, star the repository, or support its development.




![Nextcloud Files in the folder Example Bank/Letter/2026 of the archive with the copy 2026-10-07 - Credit card terms [P190].pdf. A caption says that in Paperless the document becomes a Contract with the new title Credit card agreement, then that the next run moves the copy into the folder of its new type with its new name. The pointer opens Example Bank, which now holds Contract and Statement and no folder Letter, then Contract and 2026, where the copy is named 2026-10-07 - Credit card agreement [P190].pdf](images/move.gif#only-light)
![Nextcloud Files in the folder Example Bank/Letter/2026 of the archive with the copy 2026-10-07 - Credit card terms [P190].pdf. A caption says that in Paperless the document becomes a Contract with the new title Credit card agreement, then that the next run moves the copy into the folder of its new type with its new name. The pointer opens Example Bank, which now holds Contract and Statement and no folder Letter, then Contract and 2026, where the copy is named 2026-10-07 - Credit card agreement [P190].pdf](images/move-dark.gif#only-dark)































