Skip to content

How to move teslamate to a different host? #4488

Answered by parkr
segdy asked this question in Q&A
Discussion options

You must be logged in to vote

My recommendation is to use the backup & restore method.

https://docs.teslamate.org/docs/maintenance/backup_restore

Shut down the teslamate container, backup from Postgres, create a tar off that backup, scp to the new host, start Postgres on the new host, restore to that new Postgres container, then start the other containers. It's also a good time to upgrade Postgres.

I have successfully moved hosts multiple times using this method. Besides the teslamate container's environment variables, all the state is held in the one Postgres database.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by segdy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants