A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Merge branch 'dev' into travis-multiarch-builds
jonaswinkler8104851c088c
diff --cc docs/setup.rstindex 5a38c3241,e88524b08..ed7f84885--- a/docs/setup.rst+++ b/docs/setup.rst@@@ -152,9 -177,9 +152,9 @@@ Install Paperless from Docker Hu.. note::- You can use any settings from the file ``paperless.conf`` in this file.+ You can use any settings from the file ``paperless.conf.example`` in this file.Have a look at :ref:`configuration` to see whats available.--++.. caution::Certain file systems such as NFS network shares don't support file system@@@ -184,33 -210,11 +184,33 @@@.. _Docker: https://www.docker.com/.. _docker-compose: https://docs.docker.com/compose/install/-.. [#compose] You of course don't have to use docker-compose, but it- simplifies deployment immensely. If you know your way around Docker, feel- free to tinker around without using compose!+.. _setup-docker_build:++Build the docker image yourself+===============================++1. Clone the entire repository of paperless:++ .. code:: shell-session++ git clone https://github.com/jonaswinkler/paperless-ng-+++ The master branch always reflects the latest stable version.++2. Copy one of the ``docker-compose.*.yml`` to ``docker-compose.yml``,+ depending on which database backend you want to use. Copy+ ``docker-compose.env.example`` to ``docker-compose.env``.-.. _`setup-bare_metal`:+3. Follow steps 2 to 7 of :ref:`setup-docker_hub`. When asked to run+ ``docker-compose up -d`` to start the containers, do-+++ .. code:: shell-session++ $ docker-compose build-+++ before that to build the image.++.. _setup-bare_metal:Bare Metal Route================@@@ -270,7 -273,7 +270,7 @@@ writing. Windows is not and will neverpaperless stores its data. If you like, you can point both to the same directory.* ``PAPERLESS_SECRET_KEY`` should be a random sequence of characters. It's used for authentication. Failureto do so allows third parties to forge authentication credentials.--++Many more adjustments can be made to paperless, especially the OCR part. The following options are recommendedfor everyone:@@@ -279,7 -282,7 +279,7 @@@6. Setup permissions. Create a system users under which you wish to run paperless. Ensure that these directories existand that the user has write permissions to the following directories--++* ``/opt/paperless/media``* ``/opt/paperless/data``* ``/opt/paperless/consume``@@@ -295,10 -298,10 +295,10 @@@# This collects static files from paperless and django.python3 manage.py collectstatic --clear --no-input--++# This creates the database schema.python3 manage.py migrate--++# This creates the translation files for paperless.python3 manage.py compilemessages@@@ -311,7 -314,7 +311,7 @@@# This collects static files from paperless and django.python3 manage.py runserver--++and pointing your browser to http://localhost:8000/... warning::@@@ -364,18 -367,13 +364,18 @@@.. code::<policy domain="coder" rights="none" pattern="PDF" />--++to.. code::<policy domain="coder" rights="read|write" pattern="PDF" />-++13. Optional: Install the `jbig2enc <https://ocrmypdf.readthedocs.io/en/latest/jbig2.html>`_+ encoder. This will reduce the size of generated PDF documents. You'll most likely need+ to compile this by yourself, because this software has been patented until around 2017 and+ binary packages are not available for most distributions.+Migration to paperless-ng#########################@@@ -442,7 -440,7 +442,7 @@@ Migration to paperless-ng is then perfo.. code:: shell-session$ docker-compose run --rm webserver document_index reindex--++This will migrate your database and create the search index. After that,paperless will take care of maintaining the index by itself.@@@ -503,9 -501,9 +503,9 @@@ management commands as below$ cd /path/to/paperless$ docker-compose run --rm webserver /bin/bash--++This will launch the container and initialize the PostgreSQL database.--++b) Without docker, open a shell in your virtual environment, switch tothe ``src`` directory and create the database schema:@@@ -515,7 -513,7 +515,7 @@@$ pipenv shell$ cd src$ python3 manage.py migrate--++This will not copy any data yet.4. Dump your data from SQLite:@@@ -523,7 -521,7 +523,7 @@@.. code:: shell-session$ python3 manage.py dumpdata --database=sqlite --exclude=contenttypes --exclude=auth.Permission > data.json--++5. Load your data into PostgreSQL:.. code:: shell-session@@@ -574,7 -572,7 +574,7 @@@ as wellConsiderations for less powerful devices########################################--Paperless runs on Raspberry Pi. However, some things are rather slow on the Pi and++Paperless runs on Raspberry Pi. However, some things are rather slow on the Pi andconfiguring some options in paperless can help improve performance immensely:* Stick with SQLite to save some resources.@@@ -596,15 -594,17 +596,15 @@@For details, refer to :ref:`configuration`... note::--++Updating the :ref:`automatic matching algorithm <advanced-automatic_matching>`takes quite a bit of time. However, the update mechanism checks if your-- data has changed before doing the heavy lifting. If you experience the++ data has changed before doing the heavy lifting. If you experience thealgorithm taking too much cpu time, consider changing the schedule in theadmin interface to daily. You can also manually invoke the taskby changing the date and time of the next run to today/now.-- The actual matching of the algorithm is fast and works on Raspberry Pi as++ The actual matching of the algorithm is fast and works on Raspberry Pi aswell as on any other device.--.. _redis: https://redis.io/