-
Notifications
You must be signed in to change notification settings - Fork 999
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs Request: configuration for backups and perhaps restoring backups #630
Comments
The configuration parameters are explained in the admin docs. Afaik, logical backup only support S3 API for now. Haven't configured Wal-E backups myself yet, so somebody else might help. So no backup was taken? I see no explicit error in the log snippet. |
I do not see any files being uploaded to the bucket. This appears lower down the logs every x seconds:
Edit: |
I created an repo containing my setup. https://gitlab.com/bramzijp/postgres-operator-example |
The logical backups bring up this error:
This can probably be solved by creating a custom docker image which have the credentials baked in. |
This PR seems to simplify / clarify the process of setting up the S3 logical backup: #628 Side note, as I'm playing around with the operator, I agree that the current documentation is unclear regarding how and what to setup to configure S3 for the logical backups. |
@ggstalder I ended up creating my own docker container for logical backups. It wasn't to hard to make using the dockerfile for logical backups supplied by Zalando. However, this is not possible for WAL-E backups. |
Here's how I did it (note that it delete's backups older then 30 days): Dockerfile
credentials
dump.sh
|
Nice, thanks for sharing. As you mentionned in your first comment @Bram-Zijp, I still don't understand the meaning and usage of the following parameters: I tried to set up additional_secret_mount to target a secret that I created without noticing any change on any pod (or on the cronjob). Probably need some example / more documentation? |
@Bram-Zijp Did you manage to restore cluster from a backup also? |
@thepotatocannon According to this issue, it has to be done manually. I guess one could create an CI/CD pipeline to automate this. For WAL backups, it seems possible to use Point In Time to recovery through the manifest. I will share my solution when I created one. |
This is quite a bit outside of the scope of this question, I think, but I noticed that wal-g recently started supporting SSH (sftp) as a target next to S3 and other cloud offerings. I was wondering:
|
will close this issue, since docs were improved in 1.6.1. |
I'm struggling to get WAL-E and logical backups to work. I went through all configuration options I could find by looking at the source code and environment variables tickets on GitHub and . I'm trying to connect to Digital Ocean spaces but without success.
I'm getting the following error:
Configuration I have so far:
I will try and use a AWS bucket instead of using Digital Ocean spaces to zero things out. However I feel it can be very helpful if there was some documentation about the subject.
I just read about mounting a secret with aws/gcp credentials. One can define this in the CRD configuration file.
What should be the content of the secret? Also the mount path doesn't make allot of sense to me. Is there any documentation on this? My assumption would be that the additional_secret_mount would point to a kubernetes secret containing the following data:
aws_access_key_id: 'key_id_here'
aws_secret_access_key: 'access_token_here'
and the additional_secret_mount would be:
~/.aws
Then based on this assumption, the operator should generate a file named credentials looking like this:
The text was updated successfully, but these errors were encountered: