Filter move question

Before i screw everything up, just like to confirm these commands are the correct way to do it…:

Before:

remote:/rclone1
remote:/rclone2
remote:/rclone3
remote:/rclone4

(all these folders contain many subfolders and files.)

Commands:

rclone mkdir remote:/rclone2and3
rclone move --include "/rclone2/**" remote:/ remote:/rclone2and3/
rclone move --include "/rclone3/**" remote:/ remote:/rclone2and3/

Result:

remote:/rclone1
remote:/rclone2and3/rclone2
remote:/rclone2and3/rclone3
remote:/rclone4

Thank you! :slight_smile:

I would do this with rclone mount so mount the remote up then move stuff as if it was a local disk.

rclone move is not a very satisfactory interface for doing server side moves!

Anyway these are the commands you should use I think (test with --dry-run first!)

rclone mkdir remote:rclone2and3
rclone moveto remote:rclone2 remote:rclone2and3/rclone2
rclone moveto remote:rclone3 remote:rclone2and3/rclone3

Thanks for your reply, that’s good to know!
i’ll use the mounted folder instead.

PS. Perhaps it would be insightful to add that info to https://rclone.org/commands/rclone_move/ ?
I was going to use rclone move (instead of a mounted folder) because i assumed it would probably be more efficient in handling a large amount of files/server side moves :blush:

They both use the same infrastructure under the hood so efficiency wise they are about the same.