I'm trying to spawn multiple rsync instances with gnu parallel to download via an intermediate server. This is the command I use -
cat ~/filelist | parallel --will-cite -j 5 --verbose --progress --line-buffer --keep-order rsync -avrhP -e "ssh -J intermediateUserID@intermediateIP" sourceUserID@sourceIP:{} ~/scratch/quicktest/
But I get the following error -
rsync error: syntax or usage error (code 1) at main.c(1354) [sender=3.1.3] local:0/728/100%/0.0s rsync -avrhP -e ssh -J intermediateUserID@intermediateIP sourceUserID@sourceIP:/source/directory/path /destination/path/ local:1/728/100%/0.0s Unexpected remote arg: sourceUserID@sourceIP:/source/directory/path
Seems like gnu parallel for some reason removes the quotes after -e. How can I make it include the quotes and basically make the proxy jump work with GNU parallel and rsync?