Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Paperless-ngx
  3. Paperless-NG - storage of documents / connection to Nextcloud

Paperless-NG - storage of documents / connection to Nextcloud

Scheduled Pinned Locked Moved Paperless-ngx
21 Posts 7 Posters 8.5k Views 8 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • necrevistonnezrN Online
      necrevistonnezrN Online
      necrevistonnezr
      wrote on last edited by
      #1

      I understand correctly that Paperless-NG has its own data storage where documents are stored - so if I use e.g. Nextcloud, those two document storages are not connected.

      Can these two storages be connected? I saw quite old manuals in German that looked rather complicated...

      1 Reply Last reply
      1
      • nebulonN Offline
        nebulonN Offline
        nebulon
        Staff
        wrote on last edited by
        #2

        Correct, they use independent file storages. I guess without further supported protocols, the volume feature might help here, but also only if both apps would support multiple data storage locations, which I think is not true for either of them.

        H 1 Reply Last reply
        2
        • nebulonN nebulon

          Correct, they use independent file storages. I guess without further supported protocols, the volume feature might help here, but also only if both apps would support multiple data storage locations, which I think is not true for either of them.

          H Offline
          H Offline
          hendrikvl
          wrote on last edited by
          #3

          I also thought about that, since I would like to be able to access my scanned documents from Nextcloud as well.
          I considered to use a separate volume as data exchange between paperless-ng and Nextcloud. On the Nextcloud side one could use the external storage-app to get /media/volumeXYZ "mounted" in the Nextcloud. The question is how to get the archive-folder of paperless-ng to that volume.

          I currently see two options for that:
          a) Configure paperless-ng to use the volume as media-root (PAPERLESS_MEDIA_ROOT in /app/data/paperless.conf). That way all folders thumbnails, originals and archive would be on the volume. But with the external storage-app one could make only of them (most likely the archive one) accessible from Nextcloud. Biggest disadvantage I see: Documents would have OCR on them, but are only accessible by ID from Nextcloud (no document types or tags).
          b) Leave the media-root in /app/data as it is by default, but copy all files to the volume once they have been processed by paperless. That would most likely require a custom cronjob, but maybe there is also some post-processing option available in paperless? Disadvantage: even more tweaking necessary and duplicate storage requirements. Advantage I see with that option: One could implement something to include captions, tags or document types in the filenames, making files easily accessible from Nextcloud as well.

          H 1 Reply Last reply
          1
          • robiR Offline
            robiR Offline
            robi
            wrote on last edited by
            #4

            This is something that is solvable with OpenEBS.com - container attached storage.

            This can also be layered with shared mounts to a Minio backed object store mounted via rclone.

            Conscious tech

            necrevistonnezrN 1 Reply Last reply
            0
            • robiR robi

              This is something that is solvable with OpenEBS.com - container attached storage.

              This can also be layered with shared mounts to a Minio backed object store mounted via rclone.

              necrevistonnezrN Online
              necrevistonnezrN Online
              necrevistonnezr
              wrote on last edited by
              #5

              @robi said in Paperless-NG - storage of documents / connection to Nextcloud:

              This is something that is solvable with OpenEBS.com - container attached storage.

              This can also be layered with shared mounts to a Minio backed object store mounted via rclone.

              How does that help connecting Paperless-NG with the existing file syncing platforms on Cloudron?

              robiR 1 Reply Last reply
              1
              • scookeS Offline
                scookeS Offline
                scooke
                wrote on last edited by
                #6

                Wouldn't something like Syncthing, or rsync, be possible? It's my impression that one can ssh into the containers, right? So use one of theses sync options to ssh in, with proper credentials, and sync the two different app's pertinent directories.

                A life lived in fear is a life half-lived

                1 Reply Last reply
                1
                • necrevistonnezrN necrevistonnezr

                  @robi said in Paperless-NG - storage of documents / connection to Nextcloud:

                  This is something that is solvable with OpenEBS.com - container attached storage.

                  This can also be layered with shared mounts to a Minio backed object store mounted via rclone.

                  How does that help connecting Paperless-NG with the existing file syncing platforms on Cloudron?

                  robiR Offline
                  robiR Offline
                  robi
                  wrote on last edited by
                  #7

                  @necrevistonnezr said in Paperless-NG - storage of documents / connection to Nextcloud:

                  How does that help connecting Paperless-NG with the existing file syncing platforms on Cloudron?

                  A container attached storage volume can be mounted to both apps allowing both access.

                  Conscious tech

                  nebulonN necrevistonnezrN 2 Replies Last reply
                  0
                  • robiR robi

                    @necrevistonnezr said in Paperless-NG - storage of documents / connection to Nextcloud:

                    How does that help connecting Paperless-NG with the existing file syncing platforms on Cloudron?

                    A container attached storage volume can be mounted to both apps allowing both access.

                    nebulonN Offline
                    nebulonN Offline
                    nebulon
                    Staff
                    wrote on last edited by
                    #8

                    @robi yes so if both apps just support changing the data storage directory or work with multiple such directories, then this would be solved. I can see paperless-ng package providing support for that through the config file, however for Nextcloud that situation is quite fuzzy.

                    1 Reply Last reply
                    0
                    • robiR robi

                      @necrevistonnezr said in Paperless-NG - storage of documents / connection to Nextcloud:

                      How does that help connecting Paperless-NG with the existing file syncing platforms on Cloudron?

                      A container attached storage volume can be mounted to both apps allowing both access.

                      necrevistonnezrN Online
                      necrevistonnezrN Online
                      necrevistonnezr
                      wrote on last edited by
                      #9

                      @robi
                      Why would I wanna use commercial external storage for both Nextcloud and Paperless if we have on-premise storage solutions in Cloudron? Or am I getting it wrong?

                      robiR 1 Reply Last reply
                      0
                      • H hendrikvl

                        I also thought about that, since I would like to be able to access my scanned documents from Nextcloud as well.
                        I considered to use a separate volume as data exchange between paperless-ng and Nextcloud. On the Nextcloud side one could use the external storage-app to get /media/volumeXYZ "mounted" in the Nextcloud. The question is how to get the archive-folder of paperless-ng to that volume.

                        I currently see two options for that:
                        a) Configure paperless-ng to use the volume as media-root (PAPERLESS_MEDIA_ROOT in /app/data/paperless.conf). That way all folders thumbnails, originals and archive would be on the volume. But with the external storage-app one could make only of them (most likely the archive one) accessible from Nextcloud. Biggest disadvantage I see: Documents would have OCR on them, but are only accessible by ID from Nextcloud (no document types or tags).
                        b) Leave the media-root in /app/data as it is by default, but copy all files to the volume once they have been processed by paperless. That would most likely require a custom cronjob, but maybe there is also some post-processing option available in paperless? Disadvantage: even more tweaking necessary and duplicate storage requirements. Advantage I see with that option: One could implement something to include captions, tags or document types in the filenames, making files easily accessible from Nextcloud as well.

                        H Offline
                        H Offline
                        hendrikvl
                        wrote on last edited by
                        #10

                        Thinking more about it, the option b) I considered above seems too much effort to implement. Creating a directory structure, including document types and everything, from information stored in the DB could lead to a usable result, but would require some tinkering on both sides. If one would invest that effort, why not create a Nextcloud App providing a custom external storage, which connects to the paperless-ng API (https://paperless-ng.readthedocs.io/en/latest/api.html). Such a solution would not depend on manual configuration of Cloudron volumes and could be used straight from Nextcloud. I wonder if there is anything like that out there already, but could not find anything related on a quick search.

                        1 Reply Last reply
                        0
                        • necrevistonnezrN necrevistonnezr

                          @robi
                          Why would I wanna use commercial external storage for both Nextcloud and Paperless if we have on-premise storage solutions in Cloudron? Or am I getting it wrong?

                          robiR Offline
                          robiR Offline
                          robi
                          wrote on last edited by
                          #11

                          @necrevistonnezr you're getting it wrong. It's OSS. 🙂

                          Conscious tech

                          necrevistonnezrN 1 Reply Last reply
                          0
                          • robiR robi

                            @necrevistonnezr you're getting it wrong. It's OSS. 🙂

                            necrevistonnezrN Online
                            necrevistonnezrN Online
                            necrevistonnezr
                            wrote on last edited by
                            #12

                            @robi I got confused since they have a „pricing“ page…

                            robiR 1 Reply Last reply
                            0
                            • necrevistonnezrN necrevistonnezr

                              @robi I got confused since they have a „pricing“ page…

                              robiR Offline
                              robiR Offline
                              robi
                              wrote on last edited by
                              #13

                              @necrevistonnezr They also have a Github page 🙂

                              Conscious tech

                              necrevistonnezrN 1 Reply Last reply
                              0
                              • robiR robi

                                @necrevistonnezr They also have a Github page 🙂

                                necrevistonnezrN Online
                                necrevistonnezrN Online
                                necrevistonnezr
                                wrote on last edited by necrevistonnezr
                                #14

                                @robi Many commercial products have git code repositories - Cloudron as the best example 🙂
                                Still, is it external storage? Can we use it on Cloudron outmoded the box?

                                robiR 1 Reply Last reply
                                0
                                • necrevistonnezrN necrevistonnezr

                                  @robi Many commercial products have git code repositories - Cloudron as the best example 🙂
                                  Still, is it external storage? Can we use it on Cloudron outmoded the box?

                                  robiR Offline
                                  robiR Offline
                                  robi
                                  wrote on last edited by
                                  #15

                                  @necrevistonnezr said in Paperless-NG - storage of documents / connection to Nextcloud:

                                  Still, is it external storage? Can we use it on Cloudron outmoded the box?

                                  It is not external storage. It allows you to connect external storage to containers.

                                  If I am understanding the second question correctly, then no, you would have to modify the cloudron box to use the software to add storage to containers.

                                  To start it could be done via CLI until the Cloudron team adds it to the UI.

                                  Conscious tech

                                  1 Reply Last reply
                                  1
                                  • jdaviescoatesJ Offline
                                    jdaviescoatesJ Offline
                                    jdaviescoates
                                    wrote on last edited by
                                    #16

                                    I was just looking at starting to use Paperless and was wondering this too.

                                    Well, mostly I was wondering, how can I most easily automate getting documents into Paperless, and I wondered if Paperless could simply consume a Nextcloud folder.

                                    Manually uploading them via the File Manager seems suboptimal and not really want Paperless was designed for.

                                    What I want to be able to do is scan something (with my phone, or failing that with an actual scanner) and for it then automatically end up Paperless' /app/data/consume folder

                                    I want to be able to scan post as soon as I open it, it automatically get uploaded to Paperless, and then to be able to shred the hard copy. I'm guessing this must be possible, as I think I read that's basically exactly why it was created.

                                    So, how can this process be automated with Paperless on Cloudron?

                                    I use Cloudron with Gandi & Hetzner

                                    nebulonN 1 Reply Last reply
                                    0
                                    • jdaviescoatesJ jdaviescoates

                                      I was just looking at starting to use Paperless and was wondering this too.

                                      Well, mostly I was wondering, how can I most easily automate getting documents into Paperless, and I wondered if Paperless could simply consume a Nextcloud folder.

                                      Manually uploading them via the File Manager seems suboptimal and not really want Paperless was designed for.

                                      What I want to be able to do is scan something (with my phone, or failing that with an actual scanner) and for it then automatically end up Paperless' /app/data/consume folder

                                      I want to be able to scan post as soon as I open it, it automatically get uploaded to Paperless, and then to be able to shred the hard copy. I'm guessing this must be possible, as I think I read that's basically exactly why it was created.

                                      So, how can this process be automated with Paperless on Cloudron?

                                      nebulonN Offline
                                      nebulonN Offline
                                      nebulon
                                      Staff
                                      wrote on last edited by
                                      #17

                                      @jdaviescoates I think this should be possible using something like https://www.tacit.dk/foldersync on your phone and configure then an SFTP sync connection from your phone to the consume folder within the app on Cloudron.

                                      necrevistonnezrN 1 Reply Last reply
                                      1
                                      • nebulonN nebulon

                                        @jdaviescoates I think this should be possible using something like https://www.tacit.dk/foldersync on your phone and configure then an SFTP sync connection from your phone to the consume folder within the app on Cloudron.

                                        necrevistonnezrN Online
                                        necrevistonnezrN Online
                                        necrevistonnezr
                                        wrote on last edited by
                                        #18

                                        @nebulon A tool on my phone to sync two folders that are on the same server? 🤧

                                        nebulonN 1 Reply Last reply
                                        1
                                        • necrevistonnezrN necrevistonnezr

                                          @nebulon A tool on my phone to sync two folders that are on the same server? 🤧

                                          nebulonN Offline
                                          nebulonN Offline
                                          nebulon
                                          Staff
                                          wrote on last edited by
                                          #19

                                          @necrevistonnezr I was more referring to the "scanning with my phone" here. Not with this app, but probably via a similar mount, depending on your actual scanner same could work there.

                                          1 Reply Last reply
                                          1
                                          • humptydumptyH Offline
                                            humptydumptyH Offline
                                            humptydumpty
                                            wrote on last edited by
                                            #20

                                            According to this Paperless-NG doc page, there's an app for iOS called QuickScan which lets you take a picture of your document and have it saved to "your favorite location". I just tried the app and I like it so far. I'm trying to connect it to my NextCloud via WebDav but my credentials aren't working. Do I need a specific plugin for Nextcloud or something?

                                            Below is a screenshot of the app's integration options.

                                            2022-06-19 16-18-45-0.png

                                            1 Reply Last reply
                                            1
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes


                                              • Login

                                              • Don't have an account? Register

                                              • Login or register to search.
                                              • First post
                                                Last post
                                              0
                                              • Categories
                                              • Recent
                                              • Tags
                                              • Popular
                                              • Bookmarks
                                              • Search