Comments (4)
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:
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:
from helm-charts.
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.
It would be great if you could manually restore a specific backup.
from helm-charts.
@lonelyleaf @devopsrelband There are 2 restore scenarios described here, they do not address the topic of the issue, but may be useful for you:
from helm-charts.
Related Issues (20)
- `job-update-patroni` fails if http://{{ template "clusterName" . }}-config:8008/config is not ready, but it exits with success.
- Operation not permitted on `/var/lib/postgresql/pgdata` while using with Amazon EFS HOT 2
- Error in `restore_or_initdb.sh` while restoring a backup
- logs a full of failed to start a background worker HOT 9
- Add support for additional annotations in the statefulset object to support cert-manager/reloader integration
- Add pgbouncer_exporter to Statefulset HOT 1
- Implement option to specify an existing persistent volume in the PVC template HOT 2
- timescaledb ha : Password does not match for user "standby" HOT 3
- Cluster node restarted unexpectedly HOT 2
- Error: INSTALLATION FAILED: repo charts not found HOT 1
- pgbackrest info missing stanza path when BOOTSTRAP_FROM_BACKUP=1 HOT 1
- postgresql core dump crashes timescale database
- pgbackrest_restore.sh exits despite backup being enabled
- Unrecognized option '--comand=/etc/timescaledb/scripts/restore_or_initdb.sh' HOT 2
- timescaledb-single: How to restore from specific backup HOT 1
- timescaledb-single without persistent storage HOT 1
- Helm Chart support HOT 2
- [Bug]: Error - 128 kB is outside the valid range for parameter "maintenance_work_mem HOT 1
- Add CA to allow custom Certificates HOT 3
- Chart requires all images to be installed form one repo, which does not allow for custom images
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from helm-charts.