# CLI Command Docker (Portainer) Synology

**URL:** <https://community.vikunja.io/t/cli-command-docker-portainer-synology/2697>\
**Category:** Support\
**Created:** [11 August 2024 18:28 UTC](https://community.vikunja.io/t/cli-command-docker-portainer-synology/2697 "2024-08-11T18:28:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aiparo](https://community.vikunja.io/letter_avatar_proxy/v4/letter/a/3be4f8/32.png) [@Aiparo](https://community.vikunja.io/u/Aiparo)\
**Post date:** [11 August 2024 18:28 UTC](https://community.vikunja.io/t/cli-command-docker-portainer-synology/2697/1 "2024-08-11T18:28:34Z")

</div>

Hey Vikunja Community,

anybody knows hot to run CLI commands for Vikunja on a Synology NAS, vikunja was setup with portainer (docker compose).

We tried many many times via SSH to run vikunja commands as root user but i think we need some tips.

We already red [Command line interface | Vikunja](https://vikunja.io/docs/cli/#web).

```auto
root@Vuptrox:~# docker exec vikunja-vikunja-1 /volume1/docker/vikunja/db/ testmail test@test.de
OCI runtime exec failed: exec failed: container_linux.go:367: starting container process caused: exec: "/volume1/docker/vikunja/db/": stat /volume1/docker/vikunja/db/: no such file or directory: unknown

```

We didnt understand which path we have to select here.

Thank u so much!

---

<div class="post-metadata">

**Author:** ![kolaente](https://community.vikunja.io/user_avatar/community.vikunja.io/kolaente/32/5_2.png) [@kolaente](https://community.vikunja.io/u/kolaente)\
**Post date:** [12 August 2024 08:12 UTC](https://community.vikunja.io/t/cli-command-docker-portainer-synology/2697/2 "2024-08-12T08:12:09Z")

</div>

It should work if you use the same path [that’s mentioned in the docs](https://vikunja.io/docs/cli/#using-the-cli-in-docker):

```auto
docker exec vikunja-vikunja-1 /app/vikunja/vikunja testmail test@test.de

```

The path to the Vikunja binary is inside the container, you should not change it.

---

<div class="post-metadata">

**Author:** ![hitmyspot](https://community.vikunja.io/user_avatar/community.vikunja.io/hitmyspot/32/1254_2.png) [@hitmyspot](https://community.vikunja.io/u/hitmyspot)\
**Post date:** [15 August 2024 00:07 UTC](https://community.vikunja.io/t/cli-command-docker-portainer-synology/2697/3 "2024-08-15T00:07:40Z")

</div>

Is this to execute a backup? Or other tasks. Here is my way to execute a back up, but running different commands should work fine too.

I use the portainer cli to directly access, as I set up using portainer, following the marius hosting guide.

Open vikunja DB in portainer  
Open console with root in /bin/bash

cd /var/lib/postgresql/data  
pg\_dump -U yourvikunjauser -h vikunja-databasename vikunja \> vikunja-backup.sql

file will export into Vikunja db folder, which may have a different name mounted in synology depending on your docker compose. It will request your vikunja database password. You can then copy it out of there at will.
