I am running a bash script that performs rclone on a directory with multiple files. However, the bash command does not finish and I get a repeating warning instead. Below you will find my bash file
#!/bin/bash
echo "starting f2f perf tests"
source="/datadrive/0B-2500Files"
target="/mnt/perftest"
cd "${source}"
#ls /datadrive/Empty-Dir-Structure-250K | xargs -n1 -P4 -I% rsync -Pa % /datadrive/Empty-Dir-Structure-250K
rclone sync {source} {target} --transfers 256 --checkers 256 -v --log-file=/tmp/sync.log
time /home/marcelomo/f2f-small-files-one-vm.sh
echo "rclone is done"
The error that is outputted is:
/bin/bash: warning: shell level (1000) too high, resetting to 1
/bin/bash: warning: shell level (1000) too high, resetting to 1
/bin/bash: warning: shell level (1000) too high, resetting to 1
/bin/bash: warning: shell level (1000) too high, resetting to 1
/bin/bash: warning: shell level (1000) too high, resetting to 1
/bin/bash: warning: shell level (1000) too high, resetting to 1
/bin/bash: warning: shell level (1000) too high, resetting to 1
...
And this warning just repeats itself. Is my bash script calling itself? I confirm that the source and destination directories exist. In addition, I am able to move files with rsync but I get this repeated warning with rclone only.
What I eventually want to do is record the time it takes to rclone different file sizes, varying the number of parallel transfers with the --transfers argument by running a bash script.
Any advice would be much appreciated, thanks!