Backup of JSONDB - Docker

Hello
my openhab is running in docker.

How can I create a backup of it ? Because of docker I don’t have the openhab-cli.

Regards

You’ve mounted a volume to /openhab/userdata right? Back up that.

There is a backup script you can run using docker exec -it that does the same as openhab-cli and puts it into userdata/backup (I think). I don’t remember where the script is but it’s called backup.sh so should be easy enough to find. But I find it easier to just zip up the conf and userdata folders myself on the host, which is all the backup script do anyway.