F
F
FlameArt2021-06-01 15:55:49
System administration
FlameArt, 2021-06-01 15:55:49

What software is there for sequential execution of commands on a remote and on your own computer?

There is a set of typical tasks and you need a program to store commands in something like "tasks" and execute them on remote servers via ssh . Let's take a look at the example of

a task with mysqldump: Create a task that is not tied to a specific server: 2.1 Connect using an SSH key 2.2 execute the prescribed commands there, for example mysqldump | zip 2.3 download the resulting file from the server to your computer 2.4 run the command on your computer to import 2.5 close the connection and exit 3. It is desirable that you can run it from the command line, specifying the server and "task" in the parameter, the program is needed on Windows, remote servos to connect to debian






What are the options?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Saboteur, 2021-06-01
@FlameArt

Any scripting language.

R
Roman, 2021-06-10
@mracoid

You will try the fucking software, spend a lot of time, but in the end you will understand that the most adequate option that does exactly what you ask of it is sh / bash + cron

A
Alexander Slyzhuk, 2021-06-10
@SLYzhuk

1. Perform the task on the server via CRON.
2. Copy the data to your computer - here samba, ftp or whatever you like.
3. Run the script/cmd/bat using SHEDULE on your computer.
The main task is to breed correctly in time.

V
VN, 2021-06-11
@kavabangaungava

All this can be done using ssh itself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question