Hi,
I have in a folder 9 files (1courses.txt,2courses.txt,…) and so on up to 9courses.txt.
I tried to use the brace expansion to copy all these 9 files using brace expansions {1..9}courses.txt as following but it doesn’t work:
root@vm3.boston.local:~# rclone copy -P courses:/"Linux Academy/{1..9}courses.txt" marc:/"Cours/Cours Vidéos/Academy/"
2019-11-19 11:15:07 ERROR : : error reading source directory: directory not found
2019-11-19 11:15:07 ERROR : Attempt 1/3 failed with 2 errors and: directory not found
2019-11-19 11:15:09 ERROR : : error reading source directory: directory not found
2019-11-19 11:15:09 ERROR : Attempt 2/3 failed with 2 errors and: directory not found
2019-11-19 11:15:11 ERROR : : error reading source directory: directory not found
2019-11-19 11:15:11 ERROR : Attempt 3/3 failed with 2 errors and: directory not found
Transferred: 0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors: 2 (retrying may help)
Checks: 0 / 0, -
Transferred: 0 / 0, -
Elapsed time: 0s
2019/11/19 11:15:11 Failed to copy with 2 errors: last error was: directory not found
root@vm3.boston.local:~# rclone copy -P courses:/"Linux Academy/"{1..9}courses.txt"" marc:/"Cours/Cours Vidéos/Academy/"
Usage:
rclone copy source:path dest:path [flags]
Flags:
--create-empty-src-dirs Create empty source dirs on destination after copy
-h, --help help for copy
Use "rclone [command] --help" for more information about a command.
Use "rclone help flags" for to see the global flags.
Use "rclone help backends" for a list of supported services.
Command copy needs 2 arguments maximum: you provided 10 non flag arguments: ["courses:/Linux Academy/1courses.txt" "courses:/Linux Academy/2courses.txt" "courses:/Linux Academy/3courses.txt" "courses:/Linux Academy/4courses.txt" "courses:/Linux Academy/5courses.txt" "courses:/Linux Academy/6courses.txt" "courses:/Linux Academy/7courses.txt" "courses:/Linux Academy/8courses.txt" "courses:/Linux Academy/9courses.txt" "marc:/Cours/Cours Vidéos/Academy/"]
Where did I make a mistake?
Thank you
Rclone version
rclone v1.50.1
Which OS you are using and how many bits (eg Windows 7, 64 bit)
CentOS Linux release 7.7.1908 (Core)
Which cloud storage system are you using? (eg Google Drive)
Onedrive For Business