Amsterdam-Music-Lab / MUSCLE

An application to easily set up and run online listening experiments for music research.
https://www.amsterdammusiclab.nl/
MIT License
4 stars 1 forks source link

Back up local database before `migrate` in development #142

Open albertas-jn opened 2 years ago

albertas-jn commented 2 years ago

After migrate, the local database might become incompatible with other branches. We should automatically back up the existing local database so that we could switch between databases when switching branches.

Related to / blocked by

BeritJanssen commented 2 years ago

Perhaps this approach could be useful: Docker Backup. This might also be used to address #121 .

albertas-jn commented 1 year ago

@Evert-R Can this issue be closed?

BeritJanssen commented 2 months ago

I tried the following approaches:

So the solution is probably going to be an uninformed pg_dump on every startup (potentially, this could be just a latest.dmp to avoid bloating the backup volume over time), using a custom shell script to await that Postgres is available.