You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's also my use case, I need to perform very specific 70000 copies defined in file where glob won't work. Running rclone copyto for every file is very slow
That's also my use case, I need to perform very specific 70000 copies defined in file where glob won't work. Running rclone copyto for every file is very slow
You could run an rclone server with rclone rcd then use the rc command to use the operations/copyto command
(I've just noticed the docs are wrong, you don't get a jobid unless you pass _async=true
I would suggest to conflate this request and the other one to have copy and sync behave the unix way in respect to directories (#1228) and create a more unixy cp command.
I understand that the current behavior may be easier for people not coming from unix, but the rest of would keep the finger intelligence collected in so many years and ingrained in so many tools also in the rclone world..
I would suggest to conflate this request and the other one to have copy and sync behave the unix way in respect to directories (#1228) and create a more unixy cp command.
I understand that the current behavior may be easier for people not coming from unix, but the rest of would keep the finger intelligence collected in so many years and ingrained in so many tools also in the rclone world..
No reason why both copy and cp couldn't have multiple files.
Currently rclone treats metacharacters (*?) in source file name as part of the name, while in source filter arguments (--include --exclude) they are treated as globs. Changing this behavior would break existing scripts.
UPD: It's even more tricky. If rclone is run interactively on a Windows(powershell) or Unix(bash/*sh) command line but source argument is licated on a remote, user must properly escape metachars to prevent shell globbing (and let rclone do the remote listing and globbing/filtering and apply many other filtering options). If source is local then shell globbing would be probably ok, but rclone would have to reparse command line (some verbs require more arguments than just source and destination).
The only solution I can see is a new flag like --source-is-filter. The flag is probably meaningful for copy move sync delete commands, meaningless for copyto and many others. It needs more investigation, looks like a large task. Volunteers welcome.
I tend to agree with @ncw, keep copy/move behavior as is and introduce unix-like cp/mv verbs.
Activity
niranjanshr13 commentedon May 20, 2017
@Massaguana I have always wonder how to do that, but in Linux you can do :
Massaguana commentedon May 20, 2017
Sorry, but i don´t understand what i must do...
niranjanshr13 commentedon May 20, 2017
@Massaguana well the script will loop through all the matching and upload to the remote; which OS are you running.
Massaguana commentedon May 20, 2017
i use CentOS 7 64-Bit...
i don´t like to write scripts, i think only use * are mutch easyer
left1000 commentedon May 20, 2017
you can make an rclone filter file that will do that for you:
https://rclone.org/filtering/
ncw commentedon May 24, 2017
If you do
that should have the same effect.
Not quite as convenient, I agree but it should work.
Massaguana commentedon May 24, 2017
i test it. but in Moment i copy alle files to an new directory and rclone this directory... thats also work for me
sheerun commentedon Nov 29, 2018
That's also my use case, I need to perform very specific 70000 copies defined in file where glob won't work. Running rclone copyto for every file is very slow
ncw commentedon Nov 29, 2018
@sheerun
You could run an rclone server with
rclone rcdthen use the rc command to use the operations/copyto command(I've just noticed the docs are wrong, you don't get a jobid unless you pass _async=true
Eg
Also if someone wanted to have a go at multiple files for rclone copy it probably wouldn't be too hard?
zuzzurro commentedon Dec 5, 2018
I would suggest to conflate this request and the other one to have copy and sync behave the unix way in respect to directories (#1228) and create a more unixy cp command.
I understand that the current behavior may be easier for people not coming from unix, but the rest of would keep the finger intelligence collected in so many years and ingrained in so many tools also in the rclone world..
ncw commentedon Dec 6, 2018
No reason why both
copyandcpcouldn't have multiple files.3 remaining items
ivandeex commentedon Nov 16, 2020
Currently rclone treats metacharacters (
*?) in source file name as part of the name, while in source filter arguments (--include --exclude) they are treated as globs. Changing this behavior would break existing scripts.UPD: It's even more tricky. If rclone is run interactively on a Windows(powershell) or Unix(bash/*sh) command line but source argument is licated on a remote, user must properly escape metachars to prevent shell globbing (and let rclone do the remote listing and globbing/filtering and apply many other filtering options). If source is local then shell globbing would be probably ok, but rclone would have to reparse command line (some verbs require more arguments than just source and destination).
The only solution I can see is a new flag like
--source-is-filter. The flag is probably meaningful forcopy move sync deletecommands, meaningless forcopytoand many others. It needs more investigation, looks like a large task. Volunteers welcome.I tend to agree with @ncw, keep copy/move behavior as is and introduce unix-like cp/mv verbs.
ivandeex commentedon Nov 16, 2020
Duplicate of #4308
ivandeex commentedon Nov 16, 2020
Duplicate of #4777
ivandeex commentedon Nov 16, 2020
@ncw
I suggest closing this in favor of #4777
ivandeex commentedon Feb 10, 2021
Closed this stale ticket in favor of #4777