Paperless-ngx backup and restore

Use the native document exporter and importer to carry documents and database metadata into an empty instance.

Last updated

On this page (5)

Paperless-ngx ยท Backup and restore

Before you start

  • Matching Paperless-ngx version.
  • Persistent export mount; examples assume ../export from the webserver working directory.
  • Fresh target instance with consumption disabled.

Procedure

  1. Wait for consumption and other document jobs to finish and pause intake. Run docker compose exec -T webserver document_exporter ../export and archive the complete export directory, without flags that omit files or metadata.
  2. Save Compose, environment, secret references and separately managed input folders as needed; the application export is not the deployment configuration.
  3. Mount the export into the same location in the empty test instance and run docker compose exec -T webserver document_importer ../export. Keep the target isolated until verified.

Verify the result

  • Compare document counts, known tags and correspondents, and search for text from a known scanned document.
  • Open representative originals and archived PDFs.

Official documentation

Have Pilae operate Paperless-ngx

We agree what to monitor, how to recover and who responds when something breaks. Bring your existing deployment or start with a new one.