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
../exportfrom the webserver working directory. - Fresh target instance with consumption disabled.
Procedure
- Wait for consumption and other document jobs to finish and pause intake. Run
docker compose exec -T webserver document_exporter ../exportand archive the complete export directory, without flags that omit files or metadata. - Save Compose, environment, secret references and separately managed input folders as needed; the application export is not the deployment configuration.
- 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.
