Skip to content

Unable to move file: can't move files on overlapping remotes #1319

Closed

Description

@memeplex

When trying to move a file drive:/home/b to a directory drive:/home/docs I get:

(ins)carlos@carlos store$ rclone -c move drive:/home/b drive:/home/docs
2017/04/08 22:23:49 INFO  : Google drive root 'home/docs': Modify window is 1ms
2017/04/08 22:23:49 ERROR : Google drive root 'home/docs': can't move files on overlapping remotes
2017/04/08 22:23:49 ERROR : Attempt 1/3 failed with 0 errors and: can't move files on overlapping remotes
2017/04/08 22:23:49 ERROR : Google drive root 'home/docs': can't move files on overlapping remotes
2017/04/08 22:23:49 ERROR : Attempt 2/3 failed with 0 errors and: can't move files on overlapping remotes
2017/04/08 22:23:49 ERROR : Google drive root 'home/docs': can't move files on overlapping remotes
2017/04/08 22:23:49 ERROR : Attempt 3/3 failed with 0 errors and: can't move files on overlapping remotes
2017/04/08 22:23:49 Failed to move: can't move files on overlapping remotes

Is this a bug or just lack of server side move operations for google drive?

Activity

  1. memeplex commented on Apr 9, 2017

    @memeplex
    Author

    I would like to add that the same example works fine if I replace move with copy. The output log shows that b: Copied (server side copy)

  2. changed the title [-]Add support for server side move operations on google drive[/-] [+]Unable to move file[/+] on Apr 9, 2017
  3. memeplex commented on Apr 9, 2017

    @memeplex
    Author

    I've renamed the issue since I realized that is not possible even locally:

    (ins)carlos@carlos ~$ cd /tmp/
    (ins)carlos@carlos tmp$ mkdir test
    (ins)carlos@carlos tmp$ cd test/
    (ins)carlos@carlos test$ mkdir x
    (ins)carlos@carlos test$ touch a
    (ins)carlos@carlos test$ rclone move a x
    ....
    2017/04/09 00:00:31 Failed to move: can't move files on overlapping remotes
    
  4. added this to the v1.37 milestone on Apr 10, 2017
  5. ncw commented on Apr 10, 2017

    @ncw
    Member

    For a remote which support directory moves, your operation is perfectly safe.

    For a remote which doesn't it has to move each individual file which might fail and need a retry which is where the trouble starts...

    I need to spend some time thinking about the corner cases!

  6. modified the milestones: v1.37, v1.38 on Jul 19, 2017
  7. modified the milestones: v1.38, v1.39 on Sep 30, 2017
  8. changed the title [-]Unable to move file[/-] [+]Unable to move file: can't move files on overlapping remotes[/+] on Jan 11, 2018
  9. modified the milestones: v1.39, v1.40 on Jan 11, 2018
  10. 4 remaining items

  11. modified the milestones: v1.42, v1.43 on Jun 17, 2018
  12. modified the milestones: v1.43, v1.44 on Sep 2, 2018
  13. ncw commented on Oct 1, 2018

    @ncw
    Member

    This was fixed in c123c70 :-)

  14. o0-o commented on Feb 19, 2020

    @o0-o

    I am still experiencing this error in 1.51 in the following case:

    rclone mkdir \
        "${CLOUD_DESTINATION}/Hidden System Files"  &&
    
      rclone                    \
        --include "/.*"         \
        move                    \
        "${CLOUD_DESTINATION}"  \
        "${CLOUD_DESTINATION}/Hidden System Files"
    

    The remote is Google Drive as well. Is the include flag possibly causing the issue?

    This seems similar enough to reopen this issue, but let me know if I should open a new one.

  15. ncw commented on Feb 24, 2020

    @ncw
    Member

    @o0-o the error is because you are attempting to copy "${CLOUD_DESTINATION}" to "${CLOUD_DESTINATION}/Hidden System Files" however "${CLOUD_DESTINATION}" includes "${CLOUD_DESTINATION}/Hidden System Files" already - hence the "overlapping remotes" error.

  16. o0-o commented on Feb 24, 2020

    @o0-o

    Is there any way to move pattern-matched files and directories into a non-matching subdirectory?

    The filter documentation indicates shell pattern matching and not proper regex, so I would assume that escaping a period would be unnecessary.

    Special characters can be escaped with a \ before them.

    *.jpg - matches "*.jpg"
    \\.jpg - matches "\.jpg"
    \[one\].jpg - matches "[one].jpg"

    Edit: double escaped backslashes in quote to display properly in md

  17. ncw commented on Feb 25, 2020

    @ncw
    Member

    Is there any way to move pattern-matched files and directories into a non-matching subdirectory?

    Not currently, the filters are applied after the check for overlapping remotes :-(

    If I was doing this, I'd do it via a mount...

  18. yeya commented on May 25, 2020

    @yeya

    Does mount use server side copy when executing mv?

  19. ncw commented on May 26, 2020

    @ncw
    Member

    Does mount use server side copy when executing mv?

    Yes it does (if available).

  20. yeya commented on May 26, 2020

    @yeya

    Thanks. I see that --transfers can not be used, is there a way to set number of parallels? some fuse option maybe?

  21. ncw commented on May 26, 2020

    @ncw
    Member

    Thanks. I see that --transfers can not be used, is there a way to set number of parallels? some fuse option maybe?

    The mount is pretty much driven by user interaction, so if you want less things happening at once, then you have to do less things at once to the mount.

  22. Jwink3101 commented on Jan 5, 2023

    @Jwink3101
    Contributor

    Is there any way to move pattern-matched files and directories into a non-matching subdirectory?

    Not currently, the filters are applied after the check for overlapping remotes :-(

    If I was doing this, I'd do it via a mount...

    Just for posterity, it appears this has been implemented in #6312 (released in 1.60.0 I think) as long as the destination is filtered one way or another.

    Thanks @Schlossgeist and @ncw for this awesome fix. It makes some operations in syncrclone much easier

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions