I am currently running paperless-ngx on a separate machine as a docker-compose container. Backup and restore works like this:
$ cd /path/to/paperless
$ docker compose exec webserver <command> <arguments>
where command is either “document_exporter” or “document_importer” and argument is either the path where the backup is going to be stored or the zipfile containing the backup.
How can I do this within the truenas app? I have understood that truenas apps are launched via docker-compose, as in my stand-alone server. However, I would like to know where I can find the docker-compose yaml files within the truenas directory tree so that I can try to run the commands from there.
I am running truenas scale 24.10.1.
Thanks for any hint!
I had problems with apps with postges under TrueNAS, so I installed the dockge app an run immich, nextcloud and paperless under dockge, where I can easily edit my yml- and env-files.
The only think I miss is the update-notification for the apps.
Ok, the solution is easy.
Go to the apps page, and there to the tile named “Workload”. There you can access the paperless docker shell. Start the shell and start the backup/restore using the commands document_exporter / document importer directly.
Is there a way to backup the entire docker containers? I have tried this method, but it keeps the backup inside the container, I need to get the backup outside of the container itself, so either the Cloud Sync and get it on the TrueNAS Scale OR I can send to a Windows Share to be backed up off-site via 3rd party.
You can find it in the folder “export” under the PATH_DATA_LOCATION off your paperless docker installation.
I have it under /mnt/diskpool-1/Apps_Data/paperless-ngx/export/
Ok. Since this was setup via TrueNas and in the current version there is no exporter Path … i helped myself and redirected it temp. into another dataset (media) create a export folder assigned permissions. not nice but did work. will look into dockge once i tested a full restore
Hi, I am in the same position, with papaerless-ngx as a truenas app. Unfortunately I did not set up datasets, but the app uses the ixVolumes for Data, Media… @MRi Can you explain what you did in more detail? I am relatively new to truenas and don’t want to mess up my paperless app since I already have it configured. I think it would have been better to create host paths for the media and data in the first place but since I have to figure out how to migrate from ixVolume to a host path, I want to save my data first
Hi and thank you for the guide. (I am Austrian btw, German isn’t a problem ) When following, I have some questions about this part: truenas[~]$ sudo mkdir /mnt/ssd-pool/paperless/media/export truenas[~]$ sudo chown apps:apps /mnt/ssd-pool/paperless/media/export truenas[~]$ sudo docker exec ix-paperless-ngx-paperless-1 document_exporter ../media/export
You state that we need a bind mount for paperless instead of the .ix volume, where do you actually change that bind? We only created the export folder in a dataset, but don’t we need to bind this to the destination inside the docker container?