I have been running rclone sync /mnt/mydrive/subfolder b2-crypt: for some time. I would like to start syncing instead using rclone sync /mnt/mydrive b2-crypt: without reuploading everything that's currently in subfolder. Is it possible to do a "move" of the files and folders currently in the B2 bucket? What would the right command(s) for this situation be?
What is your rclone version (output from rclone version)
Not the latest version, but the latest from Raspbian at this time.
$ rclone version
rclone v1.45
- os/arch: linux/arm
- go version: go1.11.6
Which cloud storage system are you using? (eg Google Drive)
Backblaze B2
The command you were trying to run (eg rclone copy /tmp remote:tmp)
B2, using rclone, does not support moving a file.
rclone emulates that with a copy source to dest and then delete the source.
B2 supports server side copy, so need to download/upload the files.
the problem is that rclone cannot move files from root folder to a subfolder of root folder.
will get an error such as Failed to move: can't sync or move files on overlapping remotes
there might be a way to use filters, but not sure that will work.
one way that will work is to use a rclone mount and use a file manager to move the files.
Because I had an existing directory hierarchy, and only 2 files in the root, the inability to move out of the root wasn't problematic.
Updating rclone was super important, the earlier version didn't have server-side copy for B2 and was trying to repeat the uploads
Because I have file version history turned on in B2, this did ~double my storage costs until the old versions will expire
In the end, all I had to do was rclone mkdir ...; rclone move ..., which took a total of about 10 minutes to complete on about 20k files comprising 700GB of data.