B
B
BIRDru2018-04-01 18:34:11
linux
BIRDru, 2018-04-01 18:34:11

How can RHEL automate copying data from a remote Postgres database to a local MariaDB database?

Created a user, granted select rights to the necessary tables, opened access to connect to the database. Checked the remote connection with navicat, it works. It is necessary to receive data from one database to another every few minutes for further processing and use. Please tell me how this can be automated. No experience in scripting. But I'm ready to receive them, though I have no idea what to take.
Maybe the query itself can directly connect to the source database and receive data without third-party tools (such as insert into ... as select ...), but then how to automate this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Moris Haos, 2018-04-02
@morihaos

Привет,
В вашем случае, автоматизация - это создание скрипта. Внесите в этот скрипт все команды, которые вы выполняете руками, в нужной вам последовательности. Чего уж проще то...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question