Trying to use a script to copy content from multiple sources (remoptes) to multiples destinations

What is the problem you are having with rclone?

trying to use a script to copy content from multiple sources (remoptes) to multiples destinations, but am getting an error similar to this one.

Command copy needs 2 arguments maximum: you provided 3 non flag arguments: error how to fix it?

Run the command 'rclone version' and share the full output of the command.

rclone v1.64.0-beta.7223.20c9e0cab

  • os/version: ubuntu 22.04 (64 bit)
  • os/kernel: 6.3.9-060309-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.21.0
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

google, dropbox and box

The command you were trying to run (eg rclone copy /tmp remote:tmp)

#!/usr/bin/bash
rclone copy "source1:" "destination1:somefolder/somefolder" \
rclone copy "source2:" "destination2:somefolder/somefolder" \
	--ignore-existing \
	--drive-stop-on-download-limit \
	-q \
	--log-file="/media/logs/mass_cloning.log" \
	#-vv \
	#--progress

The rclone config contents with secrets removed.

can share it if needed

A log from the command with the -vv flag

couldn't get -vv to work

thank you in advance.

one command is one source and one destination only

For your script to work modify it as follows:

#!/usr/bin/bash

rclone copy "source1:" "destination1:somefolder/somefolder" \
	--ignore-existing \
	--drive-stop-on-download-limit \
	-q \
	--log-file="/media/logs/mass_cloning.log" \
	#-vv \
	#--progress

rclone copy "source2:" "destination2:somefolder/somefolder" \
	--ignore-existing \
	--drive-stop-on-download-limit \
	-q \
	--log-file="/media/logs/mass_cloning.log" \
	#-vv \
	#--progress

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