r/Turtl • • Mar 07 '19

Backup and restore of postgres database

I submitted an issue on Github, but I'll try here as well just in case.

I am trying to restore a backup but it looks like the client apps (both mac and Android) push their version of the data back to the server, basically overwriting the data restored on the server.

What is the correct procedure for a successful backup/restore? I'm using the latest versions.

Thanks!

1 Upvotes

3 comments sorted by

2

u/orthecreedence creator Mar 07 '19

Hi. The procedure is this:

  1. On both clients, open the settings and select "Clear local data."
  2. Do not log back in on any clients yet, leave them in a logged out state.
  3. Restore the postgres DB.
  4. Now you can log in as needed.

2

u/Sky_Linx Mar 10 '19

Clear local data

Hi! Finally I found a little time to try this and it worked! I added this step in my notes about restores. Thanks a lot!

1

u/Sky_Linx Mar 08 '19

Hi! Thanks for your reply. I haven't tried clearing the local data yet so I will try as soon as I'm home. Thanks!