Skip to content

Commit

Permalink
add -u nginx:nginx in docker exec commands for import
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasCARPi committed Jan 11, 2025
1 parent b957ee1 commit ed3c8ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/import-export.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ If you wish to import a rather large `.eln` archive (such as a full team export)

.. code-block:: bash
docker exec -it elabftw bin/console import:eln -h
docker exec -it -u nginx:nginx elabftw bin/console import:eln -h
As you can see, there are two mandatory arguments, the path to the file, and the Team ID where the import will be performed. The first thing to do is to copy the file in the right place in the container. It must be in `/elabftw/cache/elab` folder. Copy it with a command similar to this:

Expand All @@ -69,11 +69,11 @@ Figure out the Team ID by looking at the Team from the Sysconfig panel, where th
.. code-block:: bash
# import in team 12 and be verbose
docker exec -it elabftw bin/console import:eln -vv your.eln 12
docker exec -it -u nginx:nginx elabftw bin/console import:eln -vv your.eln 12
# import in team 25, force everything to be owned by user 5 and be extra verbose
docker exec -it elabftw bin/console import:eln -vvv your.eln 12 --userid 5
docker exec -it -u nginx:nginx elabftw bin/console import:eln -vvv your.eln 25 --userid 5
# import in team 42, force everything to be of type "Resources" with category "6"
docker exec -it elabftw bin/console import:eln --type items --category 6 your.eln 42
docker exec -it -u nginx:nginx elabftw bin/console import:eln --type items --category 6 your.eln 42
.. _csvimport:
Expand Down

0 comments on commit ed3c8ca

Please sign in to comment.