CLI Command Docker (Portainer) Synology

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.

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!

It should work if you use the same path that’s mentioned in the docs:

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.

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.