Git Product home page Git Product logo

Comments (4)

feikesteenbergen avatar feikesteenbergen commented on August 19, 2024 2

There's a few components here.

If you would have only rm -rf data directory, you should be fine. The Services, Endpoints and ConfigMaps of the Deployment would still contain enough configuration to allow you to do the restore.

However, if you fully removed all the Kubernetes Objects (you did helm delete, or kubectl delete namespace), then no references of the old deployment still exist within the kubernetes context.

Currently, the behaviour is that at this point, a new initdb is run.
As you already do have a backup, pgbackrest complains about a mismatch.

We want to include the behavior of allowing to restore a previously deployed database on a pristine Kubernetes namespace here:

#108

However it still needs some work, plus it is inclear whether or not this should be default behavior or not. (I personally am leaning to make it the default).

And If I mannally call pgbackrest restore , seems I need to run command before database startup,can I use your image and change command in yaml to do that?

You can add a debug.execStartPre command that takes a very long time, that will allow you to intervene currently before anything is started:

https://github.com/timescale/timescaledb-kubernetes/blob/master/charts/timescaledb-single/values.yaml#L415-L419

from helm-charts.

lonelyleaf avatar lonelyleaf commented on August 19, 2024 1

Thanks for your explain,I think whether restoring from previous backup is default or not. The function of
call pgbackrest command mannually is quite important.

In some cases people may not need a full restore,but restore some of it's table or a Point-in-Time Recovery,and most command need to shutdown pg database , which is a little difficult in a k8s pod.

from helm-charts.

devopsrelband avatar devopsrelband commented on August 19, 2024

It would be great if you could manually restore a specific backup.

from helm-charts.

feikesteenbergen avatar feikesteenbergen commented on August 19, 2024

@lonelyleaf @devopsrelband There are 2 restore scenarios described here, they do not address the topic of the issue, but may be useful for you:

https://github.com/timescale/timescaledb-kubernetes/blob/master/charts/timescaledb-single/admin-guide.md#testing-restorerecovery-from-inside-the-kubernetes-cluster

from helm-charts.

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.