Multiple RCLONE instances in one script / simultaneously

Hello community! I'm trying to write a batch file that can kick off multiple rclone scripts to run at the same time. I use RCLONE for clients to offload their files once a day to an offsite backup target. I also like to see what the script is doing so I have -P flag.

I use a Mac Terminal or a Ubuntu VM for this effort. I have found a few articles showing how to kick off different CMD prompts running one at a time.

I have a bat file something like this.

--
echo "Start Backup Job"
WAIT 2
echo "Client #1 Start"
rclone copy FROM TO -v -P

echo "Client #2 Start"
rclone copy FROM TO -v -P

--

I've tried a few different methods. I want to be able to see all of the current scripts that are running and their progress. This helps determine how far along it is in running as some of my clients have a few hundred thousand files.

Is this possible? How would the script look? Thanks in advance.

hi,
this should do it.

echo "Start Backup Job"
timeout /t 2 /nobreak

echo "Client #1 Start"
start "Client 1" rclone copy FROM TO -v -P

echo "Client #2 Start"
start "Client 2" rclone copy FROM TO -v -P

https://ss64.com/nt/start.html
https://ss64.com/nt/timeout.html

Thanks for your response. I'm getting this error when attempting to run.

start: command not found

This is duplicated on each line that start exist. I'm ssh'ed into the machine running Ubuntu.

Thanks,
David

perhaps i got confused.

you want a script for linux, not windows?
i thought you wanted a .bat flle for windows?

Eh, I meant a script file from linux. I use name.sh nomenclature, but I cannot find anywhere online to assist with what I was wanting. I guess there is other way to do it, such as through PHP or some other programmatic way... was just hopeful it can be done in a simple script.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.