Hi Sonal Patel,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
In addition to the above answer provided by @hossein jalilian,
Azure Database for PostgreSQL servers are backed up periodically to enable Restore features. Using this feature you may restore the server and all its databases to an earlier point-in-time, on a new server. You make the choice between configuring your server for either locally redundant backups or geographically redundant backups at server creation.
I request you to refer the below mentioned link.
Note: Azure Database for PostgreSQL - Single Server is going to deprecated hence we strongly recommend you to upgrade your Azure Database for PostgreSQL Single Server to Azure Database for PostgreSQL - Flexible Server.
I hope, This response will address your query and helped you to overcome on your challenges.
If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.