Re: suggestion the process to sync the data from PROD DB to Staging environment - Mailing list pgsql-admin

From postgann2020 s
Subject Re: suggestion the process to sync the data from PROD DB to Staging environment
Date
Msg-id CANynezOK7dVS-Q8UjZQMRBSwuK_bbb63OJ6zMg9PTMD+FFUTtw@mail.gmail.com
Whole thread Raw
In response to Re: suggestion the process to sync the data from PROD DB to Staging environment  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: suggestion the process to sync the data from PROD DB to Staging environment  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: suggestion the process to sync the data from PROD DB to Staging environment  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-admin
Thanks, David,

Please find the environment details.

Environment:
PROD:
OS: RHEL 7.1
Postgres: 9.5.15

Staging:
OS: RHEL 7.1
Postgres: 9.5.15

Thanks&Regards,
PostgAnn.

On Wed, May 27, 2020 at 9:51 PM David G. Johnston <david.g.johnston@gmail.com> wrote:
On Wed, May 27, 2020 at 8:56 AM postgann2020 s <postgann2020@gmail.com> wrote:
Could someone please suggest the process to sync the data from PROD DB to the Staging environment with minimal manual intervention or automatically.

Read up on the general purpose "bash" scripting language, the PostgreSQL "pg_dump" and "pg_restore" commands, "ssh", and "cron".

"cron" and "bash" provide for the "automatically" requirement.

It is possible to assemble something functional with those tools.  Whether it will actually work in your specific situation is impossible to say since you provide zero information about your environment.

David J.

pgsql-admin by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: suggestion the process to sync the data from PROD DB to Staging environment
Next
From: postgann2020 s
Date:
Subject: Suggestion to Monitoring Tool