all rsync task at the same time command or

Nemesis88

Cadet
Joined
Aug 7, 2022
Messages
4
Hi to all, can someone helpme pls, is a way to run all the rsync tasks at the same time, i mean i have 30 diferent rsync task but some times need to run manually and i need run one by one, is possible run all at the same time?
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
Hi to all, can someone helpme pls, is a way to run all the rsync tasks at the same time, i mean i have 30 diferent rsync task but some times need to run manually and i need run one by one, is possible run all at the same time?

Depends on what you're trying to accomplish. Strictly speaking, no, it isn't possible, just from the perspective that the process of launching will be iterative rather than parallel. This may not be what you meant, however, and is probably irrelevant.

If you utilize the API, or code a shell script to do the equivalent jobs, you should be able to accomplish the effect of starting a bunch of jobs in very close temporal proximity. I don't know if there's any limit to parallel rsync jobs coded into the middleware, but if there is, that might preclude using the API for this. You can absolutely write a shell script of the form

#! /bin/sh -

rsync [task 1 args] &
rsync [task 2 args] &
[repeat for 28 more tasks]

which has the limitation that errors will not be detected and reported by the middleware.
 
Top