Skip to content

[Feature Request] rclone copy Multiple files #1426

Closed

Description

@Massaguana

Hello,

i wood like to make an Feature Request to use the command "copy" to copy multiple files lile this:

rclone copy Filename.S01E*.mkv Remote:

Is it possible to do something like that?

Regards
Massaguana

Activity

  1. niranjanshr13 commented on May 20, 2017

    @niranjanshr13

    @Massaguana I have always wonder how to do that, but in Linux you can do :

    for loop in $(ls Filename.S01E*.mkv)
    do
    rclone copy $loop Remote:
    done

  2. Massaguana commented on May 20, 2017

    @Massaguana
    Author

    Sorry, but i don´t understand what i must do...

  3. niranjanshr13 commented on May 20, 2017

    @niranjanshr13

    @Massaguana well the script will loop through all the matching and upload to the remote; which OS are you running.

  4. Massaguana commented on May 20, 2017

    @Massaguana
    Author

    i use CentOS 7 64-Bit...

    i don´t like to write scripts, i think only use * are mutch easyer

  5. left1000 commented on May 20, 2017

    @left1000
  6. ncw commented on May 24, 2017

    @ncw
    Member

    If you do

    rclone copy . --include "Filename.S01E*.mkv" Remote:
    

    that should have the same effect.

    Not quite as convenient, I agree but it should work.

  7. Massaguana commented on May 24, 2017

    @Massaguana
    Author

    i test it. but in Moment i copy alle files to an new directory and rclone this directory... thats also work for me

  8. sheerun commented on Nov 29, 2018

    @sheerun

    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

  9. ncw commented on Nov 29, 2018

    @ncw
    Member

    @sheerun

    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

    Eg

    rclone rcd --rc-no-auth &
    rclone rc operations/copyfle srcFs=/tmp/src srcRemote=doco dstFs=/tmp/dst dstRemote=doco
    

    Also if someone wanted to have a go at multiple files for rclone copy it probably wouldn't be too hard?

  10. zuzzurro commented on Dec 5, 2018

    @zuzzurro

    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..

  11. ncw commented on Dec 6, 2018

    @ncw
    Member

    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.

  12. added this to the Help Wanted milestone on Jan 24, 2020
  13. 3 remaining items

  14. ivandeex commented on Nov 16, 2020

    @ivandeex
    Member

    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.

  15. ivandeex commented on Nov 16, 2020

    @ivandeex
    Member

    Duplicate of #4308

  16. ivandeex commented on Nov 16, 2020

    @ivandeex
    Member

    Duplicate of #4777

  17. ivandeex commented on Nov 16, 2020

    @ivandeex
    Member

    @ncw
    I suggest closing this in favor of #4777

  18. ivandeex commented on Feb 10, 2021

    @ivandeex
    Member

    Closed this stale ticket in favor of #4777

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions