Replies: 2 comments 2 replies
-
Sounds like you stopped the DB when you are attempting to create the backup and it needs to be running. I'm using DSM's Scheduled Task to run my bash script to take weekly backup. Prior to running the docker-compose backup command, I restart TeslaMate to make sure everything is up running so the backup completes. Oh, just noticed you are missing -d switch: docker-compose exec -T database pg_dump -U teslamate -d teslamate |
Beta Was this translation helpful? Give feedback.
-
Finally, i use this command to backup my data. teslamate-database-1 is the container name |
Beta Was this translation helpful? Give feedback.
-
I use Synology's container management to create the Teslamate project, and it runs normally. Since Synology does not support the docker compose command, I can only use the docker-compose command. I use this command to perform a backup:
However, it prompts an error: "service 'database' is not running container #1". anyone knows how to fix it? thanks
Beta Was this translation helpful? Give feedback.
All reactions