Recently, we got a requirement to support Postgres database. I am from the NoSql background and this is the first time I am putting my hands on postgres. We were given a server name and sudo access to Postgres user. The requirement was to make the server was high availability and to get familiar with the databases. I am able to login into the server and able to see the databases using psql interactive shell (\l) and users by (\du). I have a few questions.
I was given a task of creating a user for basic monitoring with basic privileges which I created using below
-bash-4.2$ createuser --interactive joe Shall the new role be a superuser? (y/n) n Shall the new role be allowed to create databases? (y/n) n Shall the new role be allowed to create more new roles? (y/n) n Password: -bash-4.2$ psql Password: psql (9.4.15) Type "help" for help.I need to check if backups are scheduled of databases. Can anyone guide me how I can check that?
I need to create a High availability of the server also. My plan for this was I will install Postgres in another server and will take a backup of all databases and restore it into that new server. The link I will follow is http://www.postgresqltutorial.com/postgresql-copy-database/.
Suggest me some ideas