I’m trying to move encrypted directories using an ‘–include’ flag on GDrive, which fails with “Failed to move: can’t move files on overlapping remotes”
You are doing server side moves with a filter (the --include).
Rclone commands try to be idempotent - so if they got half way through running you can just run them again.
With overlapping source and destination that becomes impossible - when you run rclone for the second time it will read some extra files that are now in the destination.
Now as it happens your filter means that the source and destination will never overlap, but alas rclone isn’t clever enough to work that out on its own.
What you appear to be trying to do is move all folders starting with “Project” into “project_archive”.
Probably the easiest way to fix this is to run rclone mount and do the moves there. This effectively renames the files individually.
Or you could do it something like this (untested)
rclone lsf --include "/Project*" encrypted: > to-move
for path in `cat to-move`; do
rclone moveto encrypted:$path encrypted:project_archive/$path
done
OK, I understand. I worked around this with lsd (in this case the files are directories), awk, and a bash for loop.
I’ll have to look into using mounts, I’m new to rclone, and on OmniOS (Solaris variant), so haven’t gotten that far. Also, a hearty thank you for supporting Solaris.
I’ve been struggling a bit with the documentation. In some respects it seems to over-complicate things, in others it seems to under-explain, like here.
If I find some time to put together some revisions, would you accept pull requests for docs?