Automatically export/import saved objects in kibana

Hello,
I work with the kibana version 8.3.1 on a docker container and I want to find a solution to export and saved my dashboards automatically on my computer. And import them when I restart Kibana.
For the moment I tried solution found here : link
But it doesn't work and I didn't find other solution on internet. I'm sure that is possible.
Can someone help me ?
Thanks.

I am also working on similar issue, I need to export all Kibana dashboards to local storage.