Hi @Viktor Zerf , welcome to Microsoft Q&A forum.
As per the description there are 2 queries, first is related to bringing the data from one environment to another and second is related to read replicas in Azure Postgres Flexible Server.
We can use the dump and restore functionality to achieve the same. However there is no direct way of automating the data migration from one server to another.
Upgrade your PostgreSQL database using dump and restore
This link provides multiple ways for restoring the back to new server like
- Method 1: Using pg_dump and psql
- Method 2: Using pg_dump and pg_restore
- Method 3: Using streaming the dump data to the target database
- Method 4: Using parallel dump and restore
Also Read replicas are currently not supported in Flexible server:
But we can create the stand by replicas in Flexible server where the replication happens in synchronous mode. Zone redundant configuration enables automatic failover capability with zero data loss during planned events.
High availability concepts in Azure Database for PostgreSQL - Flexible Server
Please let us know if this helps or we can discuss more on this.