Git Product home page Git Product logo

Comments (5)

Flink avatar Flink commented on September 27, 2024

No there isn’t one, an issue is opened about upgrades between major version of PG when using the docker image: docker-library/postgres#37

One way to do it I think is this:

  • stop your dokku applications
  • dump all your databases then destroy them
  • stop the PG container then destroy it
  • delete the ~dokku/.psql-sc directory
  • change the base image for the plugin to PG 9.4
  • start the new PG container
  • recreate databases for your applications
  • restore your databases from your dumps

So beware and backup your data! 😁

from dokku-psql-single-container.

henrik avatar henrik commented on September 27, 2024

I'll sneak this other question in here if you don't mind, since it's related:

PG stores its data inside the container, right? So if the image restarts, there's a chance of losing the data? I'm not clear on whether or not data persists during restarts. http://stackoverflow.com/questions/19585028/i-lose-my-data-when-the-container-exits made me a little worried :) I ask because it would be good to know if you risk data loss if the image is restarted (perhaps as part of upgrading the plugin) or if the host system restarts (perhaps due to maintenance).

from dokku-psql-single-container.

henrik avatar henrik commented on September 27, 2024

Tried running a DB backup, then rebooting my host system. No data loss, so I guess that answers it :) For plugin upgrades I guess it's a good idea to do a backup first anyway, so that's less of a worry.

from dokku-psql-single-container.

Flink avatar Flink commented on September 27, 2024

yes data are stored outside of the container (~dokku/.psql-sc/data by default).

from dokku-psql-single-container.

henrik avatar henrik commented on September 27, 2024

@Flink Oh, that's great. Thank you!

from dokku-psql-single-container.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.