Can I backup PostgreSQL inside k8s to Azure blob container? - postgresql

I have a database PostgreSQL in k8s(AKS) and I need to backup it to Azure blob container. Is there any possibility to do this?

Related

PostgreSQL BLOB to AWS S3

I have a PostgreSQL database, and I want to move all the BLOB data from it to AWS S3.
The Database itself is not in AWS, and it is not planned to be moved.
My end-goal is to have an on-premise PostgreSQL database with all the blob data removed from it (exchanged with the AWS S3 key).
Can anybody suggest me an approach to move the BLOB data?

Azure Database for PostgreSQL server backup before destroy

I currently have an Azure PostgreSQL server which I would like to permanently delete.
For obvious reasons I would like to make a snapshot/soft delete before turning off and deleting. What is the simplest way to accomplish this? I know there is a backup center option but I feel this is rather sophisticated for what I need.
Thanks
You can take the backup of Azure PostgreSQL server on the Azure Storage Account, then download the backup file locally from the storage account. After that you can delete the storage account and Azure PostgreSQL server.
Below is the article that shows how to take back up on Blob Storage.
Backup Azure Database for PostgreSQL to a Blob Storage

Binary backup of AWS RDS PostgreSQL

I am looking for a way to do a regular binary backup of my AWS RDS PostgreSQL database to use this copy locally and mount it in my docker postgis container. As far as I have understood, I cannot connect to the RDS host and do pg_basebackup.
So what is the best way to do this task?
The best workflow would be: There is an automatic daily binary backup stored in AWS S3. Then locally, some shell script to download the files to a folder that is mounted to the postgis folder.
Any ideas if that is possible?
I have one more additional requirement: I would like to exclude specific tables in the backup.

How do I connect from Azure Data Factory to an AWS-hosted Postgres database?

I have a Postgres database created on Heroku but looks like it's spun up on AWS based on the server name. Unfortunately, I can't tell if it's an Aurora or RDS instance.
I'm trying to create some data pipelines on Azure Data Factory to do some ETL work moving Blob files onto the Postgres Database but am having a tough time setting it up. The default Postgres option isn't working - looks like DataFactory tries to make a JDBC connection.
I'm stuck and am clueless as to how I should set up the connection.

Is there any approach to migrate PostgreSQL database from Azure to AWS RDS PostgreSQL

I able to migrate from on-prem database to AWS using DMS service but couldn't able to migrate database from Azure to AWS.
Is there any better approach?
A pretty low level but effective way would be to: export your Azure data as CSV using pg_dump,
copy it into an AWS S3 bucket (pretty easy with Python awscli package) and load from S3 into RDS Postgres.
Would be great if files could be moved directly from blob storage to s3, but I don't think Azure Postgres supports dumping directly to blob anyway.