Skip to content

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

The archive in Nextcloud Files: from the folders of the correspondents through a correspondent, a document type and a year to a document of Paperless, which opens in the viewer of NextcloudThe archive in Nextcloud Files: from the folders of the correspondents through a correspondent, a document type and a year to a document of Paperless, which opens in the viewer of Nextcloud

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.

    Using the archive

  • 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.

    Delegate the settings

  • 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.

    Paperless in your local network

What it does

Archive

  • A structured archive in Nextcloud


    The path template in the settings, with a button for every variable under it and the paths of the five newest documents of Paperless with the template that was typed, before a saveThe path template in the settings, with a button for every variable under it and the paths of the five newest documents of Paperless with the template that was typed, before a save

    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.

    Path template

  • Follows changes in Paperless


    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].pdfNextcloud 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

    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.

    Which documents the archive mirrors

  • Tags and metadata come along


    Nextcloud Files with the folder tree of the archive open down to City Utilities, Invoice, 2026, which holds two electricity bills named by date, title and Paperless ID, with their tags of Paperless, Electricity and Paid, as tags of NextcloudNextcloud Files with the folder tree of the archive open down to City Utilities, Invoice, 2026, which holds two electricity bills named by date, title and Paperless ID, with their tags of Paperless, Electricity and Paid, as tags of Nextcloud

    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.

    Tags in Nextcloud · Metadata

  • Each user their own documents


    The section Connection and ownership: Paperless URL, Paperless API token, Nextcloud target user ID, base folder, the choice Who gets the documents with what each of its options does, the switch Paperless runs in my local network and the button Test connectionThe section Connection and ownership: Paperless URL, Paperless API token, Nextcloud target user ID, base folder, the choice Who gets the documents with what each of its options does, the switch Paperless runs in my local network and the button Test connection

    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.

    Per-user ownership

Inbox and Files

  • From a Nextcloud inbox to Paperless


    Nextcloud Files in the folder Inbox: two scans arrive, and a caption says that the next runs send them to Paperless and that a scan leaves the inbox once Paperless has finished its import. The inbox is empty again, and the pointer opens the folder Failed imports in the folder tree, which holds the second scan next to its .error.txt, as Paperless could not import itNextcloud Files in the folder Inbox: two scans arrive, and a caption says that the next runs send them to Paperless and that a scan leaves the inbox once Paperless has finished its import. The inbox is empty again, and the pointer opens the folder Failed imports in the folder tree, which holds the second scan next to its .error.txt, as Paperless could not import it

    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.

    Nextcloud inbox

  • Send to Paperless in Files


    Nextcloud Files with the file Letter from the bank.pdf in the folder Scans and its menu open, which offers Send to Paperless among the actions of FilesNextcloud Files with the file Letter from the bank.pdf in the folder Scans and its menu open, which offers Send to Paperless among the actions of 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.

    Send from Files

  • Rules of Flow


    A rule of Flow in Administration → Flow: when a file is created, its File MIME type is PDF documents and its File system tag is To Paperless, Send to Paperless sends it with the tags Letters and Bank of the field Tags in PaperlessA rule of Flow in Administration → Flow: when a file is created, its File MIME type is PDF documents and its File system tag is To Paperless, Send to Paperless sends it with the tags Letters and Bank of the field Tags in Paperless

    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.

    Send by a rule of Flow

  • Files says what a folder does


    Nextcloud Files in the folder Archive with a note above the list: Mirror of Paperless, updated 5 minutes ago. Changes here don't reach Paperless, and the next runs may undo them. Edit the document in Paperless. A link opens Paperless, and a button hides the note. Below it, the folders of the correspondentsNextcloud Files in the folder Archive with a note above the list: Mirror of Paperless, updated 5 minutes ago. Changes here don't reach Paperless, and the next runs may undo them. Edit the document in Paperless. A link opens Paperless, and a button hides the note. Below it, the folders of the correspondents

    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.

    What edits, renames and deletions do

Operations

  • Changes within seconds


    The section Changes within seconds right after Create secret: the webhook URL and the new secret, each with a button Copy, the note to copy the secret now because it is shown only this once, the buttons Create a new secret and Turn the webhook off, the switch Mirror the document during the call, which is on, and the folded steps in PaperlessThe section Changes within seconds right after Create secret: the webhook URL and the new secret, each with a button Copy, the note to copy the secret now because it is shown only this once, the buttons Create a new secret and Turn the webhook off, the switch Mirror the document during the call, which is on, and the folded steps in Paperless

    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.

    Changes within seconds

  • Getting started, step by step


    Getting started at the top of the settings of Paperless Sync: Connect to Paperless and Choose who gets the documents are done, with a check mark, Try a dry-run is next and highlighted, Turn on scheduled synchronization and Wait for the first run are still to do, and each step has a button that leads to its place on the pageGetting started at the top of the settings of Paperless Sync: Connect to Paperless and Choose who gets the documents are done, with a check mark, Try a dry-run is next and highlighted, Turn on scheduled synchronization and Wait for the first run are still to do, and each step has a button that leads to its place on the page

    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.

    Getting started · Delegating the settings

  • Tells you when the mirror fails


    The status of Paperless Sync after a run with an error: the state Completed with errors in red, the times of the last run, of the last successful run and of the next scheduled run, and below them a box that names the document whose download failedThe status of Paperless Sync after a run with an error: the state Completed with errors in red, the times of the last run, of the last successful run and of the next scheduled run, and below them a box that names the document whose download failed

    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.

    Being notified · Activity

  • On a schedule, on demand or from a script


    The section Schedule and modules: switches for the scheduled synchronization, the archive export and the inbox import, the interval in minutes and the maximum changes per module and runThe section Schedule and modules: switches for the scheduled synchronization, the archive export and the inbox import, the interval in minutes and the maximum changes per module and run

    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 occ commands serve scripts, cron jobs and monitoring, with JSON output and exit codes.

    Command line

Safety

  • Dry run first


    The report of a dry-run under the heading Dry-run — nothing was changed, with the button Copy report: the counts of the changes that are not 0, the documents that stay unchanged in a sentence, a filter for each kind of change, and a list with a colored badge, the document and the file of every changeThe report of a dry-run under the heading Dry-run — nothing was changed, with the button Copy report: the counts of the changes that are not 0, the documents that stay unchanged in a sentence, a filter for each kind of change, and a list with a colored badge, the document and the file of every change

    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.

    Status, report and log

  • Careful with deletions


    Nextcloud Files in the folder City Utilities/Invoice/2026 of the archive with three electricity bills. A caption says that Electricity bill March goes to the trash in Paperless; after the next run, the folder holds two bills, and the pointer opens _Deleted, 2026-10-25, City Utilities, Invoice and 2026, where the copy of the bill of March is. A caption says that the bill is restored in Paperless, and the folder of the archive holds all three bills againNextcloud Files in the folder City Utilities/Invoice/2026 of the archive with three electricity bills. A caption says that Electricity bill March goes to the trash in Paperless; after the next run, the folder holds two bills, and the pointer opens _Deleted, 2026-10-25, City Utilities, Invoice and 2026, where the copy of the bill of March is. A caption says that the bill is restored in Paperless, and the folder of the archive holds all three bills again

    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.

    Deletion safety

  • No passwords in Nextcloud


    Create an account for the app in Paperless, open: what the setup does, the API token of a Paperless superuser, typed and hidden, the username of the account, nextcloud-sync, and the button Create the account and saveCreate an account for the app in Paperless, open: what the setup does, the API token of a Paperless superuser, typed and hidden, the username of the account, nextcloud-sync, and the button Create the account and save

    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.

    The account of the app

  • A connection that it checks


    The connection checklist after Test connection: Paperless-ngx answers, the account sees the documents, correspondents, document types and storage paths, the trash has a note that the account sees a document of another owner, which the trash of Paperless leaves out, and the tags, the upload from the inbox and the tags of the inbox failed, each with the permissions to grant in PaperlessThe connection checklist after Test connection: Paperless-ngx answers, the account sees the documents, correspondents, document types and storage paths, the trash has a note that the account sees a document of another owner, which the trash of Paperless leaves out, and the tags, the upload from the inbox and the tags of the inbox failed, each with the permissions to grant in Paperless

    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.

    Connection checklist

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

How Paperless Sync moves documents: Paperless Sync reads the finished documents and the trash of Paperless-ngx through its REST API. It writes, renames and moves their files in the folder Archive of Nextcloud, by correspondent, type and year, and mirrors the trash into Archive/_Deleted. The other way, it picks up the files of the folder Inbox and uploads them to Paperless-ngx as new documents; a failed import goes to the folder Failed imports. Paperless-ngx is green, the folders of Nextcloud are blue.How Paperless Sync moves documents: Paperless Sync reads the finished documents and the trash of Paperless-ngx through its REST API. It writes, renames and moves their files in the folder Archive of Nextcloud, by correspondent, type and year, and mirrors the trash into Archive/_Deleted. The other way, it picks up the files of the folder Inbox and uploads them to Paperless-ngx as new documents; a failed import goes to the folder Failed imports. Paperless-ngx is green, the folders of Nextcloud are blue.

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.

A terminal runs docker compose -f demo/compose.yaml up: Paperless-ngx and Nextcloud start, the setup fills Paperless with synthetic documents, connects the app, starts a dry run and the first run, and prints the addresses of the demo. Then Nextcloud Files shows the archive, from the folders of the correspondents through a correspondent and a document type to a yearA terminal runs docker compose -f demo/compose.yaml up: Paperless-ngx and Nextcloud start, the setup fills Paperless with synthetic documents, connects the app, starts a dry run and the first run, and prints the addresses of the demo. Then Nextcloud Files shows the archive, from the folders of the correspondents through a correspondent and a document type to a year

demo/README.md in the repository says what to try in it.

Quick start

  1. Install Paperless Sync from the Nextcloud App Store under Apps, or with occ app:install paperless_sync. Nextcloud's system cron must run.
  2. 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.
  3. 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.
  4. Start a dry run and read its summary: it lists what a run would change, without changing anything.
  5. Enable synchronization and save. Nextcloud's cron runs it at the configured interval, and the documents appear in Documents/Paperless/Archive of that user.

The settings of Paperless Sync: Run dry-run lists the documents that a run would export, then Synchronize now exports them and the status turns to completedThe settings of Paperless Sync: Run dry-run lists the documents that a run would export, then Synchronize now exports them and the status turns to completed

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.

    Read the guide

  • 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.

    Use the archive

  • FAQ and troubleshooting


    What happens to edits and deletions, how long the first synchronization takes, and the fixes for the error messages.

    FAQ · Troubleshooting

  • How it compares


    Paperless Sync next to Nextcloud's Paperless integration, the WebDAV container, rclone and a mount, and how to move over.

    Compare

  • Architecture


    How the app runs inside Nextcloud, reads Paperless through its REST API and writes files through Nextcloud's file API.

    Architecture

  • Security design


    What the app protects, what it trusts, the threats with their countermeasures, and the risks that remain.

    Security design

  • Roadmap


    What Paperless Sync intends to do in the next twelve months, and what it will not do.

    Roadmap

  • Decisions


    The decisions that shape the project, each with its reasons.

    Decisions

  • Automation


    The bots that check every change, release and verify the app, answer issues and keep the repository current.

    Automation

  • 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.

    Development · Releases · Changelog

Help and feedback