Rclone link multiple files

What is the problem you are having with rclone?

linking 20+ files at once

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

rclone link drive4:/backup/v1/data_dump.z01
rclone link drive4:/backup/v1/data_dump.z02
rclone link drive4:/backup/v1/data_dump.z03
rclone link drive4:/backup/v1/data_dump.z04
rclone link drive4:/backup/v1/data_dump.z05
rclone link drive4:/backup/v1/data_dump.z06
rclone link drive4:/backup/v1/data_dump.z07
rclone link drive4:/backup/v1/data_dump.z08
rclone link drive4:/backup/v1/data_dump.z09
rclone link drive4:/backup/v1/data_dump.z10
rclone link drive4:/backup/v1/data_dump.zip

Are you on the latest version of rclone? You can validate by checking the version listed here:

Yes

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

Google Drive

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

rclone link drive4:/backup/v1/data_dump.zip

The rclone config contents with secrets removed.

N/A

A log from the command with the -vv flag

N/A

How can I link multiple files at one with one command without using above example?
Is there any proper standard way to do this?

hi,

create a text file, list.txt with the items to be linked

drive4:/backup/v1/data_dump.z01
drive4:/backup/v1/data_dump.z02
drive4:/backup/v1/data_dump.z03
drive4:/backup/v1/data_dump.z04
drive4:/backup/v1/data_dump.z05
drive4:/backup/v1/data_dump.z06
drive4:/backup/v1/data_dump.z07
drive4:/backup/v1/data_dump.z08
drive4:/backup/v1/data_dump.z09
drive4:/backup/v1/data_dump.z10
drive4:/backup/v1/data_dump.zip

and run a command, something like
cat list.txt | xargs -I item rclone link "item" --dry-run

1 Like

Thanks, I will try that