I recently started using RClone to mount a MEGA account as a network drive in Windows 10 using rclone mount mega_nz: M:
My internet speed is about 30 MB/s up and down.
But when I copy a file using Windows' Explorer, the copy goes as fast as about 200 MB/s, and when I check in my MEGA account, the file is not here. I have to wait for a bit to see it appear. The larger the file, the longer I'll have to wait until I see it.
So I guess the file is first copied to a temporary directory on my main drive, before being actually sent to my MEGA account. The problem is that I'll soon have to copy very large files from an external hard drive which will be too big to be stored in my main drive. And I'd also like to be able to know without looking at the console when a transfer is really finished.
I tried to perform the mount with no --vfs-cache-mode option, with --vfs-cache-mode off, with --vfs-cache-mode writes and even with --vfs-cache-mode full (just in case), and I get the exact same behaviour in all these cases.
So my question is: how do I completely disable the cache and force direct copy, which means when I copy a file onto the mounted drive, it is directly copied to my MEGA account (which should show a transfer speed of at most 30 MB/s in Windows' Explorer's copy dialog) ?
I've tried with Windows 10 (20H2, 21H1) and Windows 11, with RClone v1.55.1. I've tried the latest release of WinFSP as well as the latest beta release.
It's not just for the initial transfer, I create or make modifications to very large files daily, so I'd like to make the copy works through Explorer instead of using the command line each time.
EDIT: What I want to do is synchronize a whole drive on my MEGA account, but I have very specific needs for synchronizing which means I have to use a special software for that. Software that only supports synchronization between drives or folders and not through a CLI.
Well, this seems like a bug then, as the data is indeed copied on my local drive first.
Let's say I have a primary drive C:, the data I copy from D:, and the MEGA account mountpoint M:. If I copy a 10 GB file from D: to M:, the C: drive is filled before the actual data is sent to MEGA, even with --vfs-cache-mode off.
When I copy the file, in the logs with the -vv flag there is the following message:
2021/07/02 14:58:41 DEBUG : mega root '': Target remote doesn't support streaming uploads, creating temporary local FS to spool file
2021/07/02 14:58:41 DEBUG : /YYYYYYYYFILE: >Write: n=1048576
2021/07/02 14:58:41 DEBUG : Creating backend with remote "C:/Users/XXXXXXXXXXXX/AppData/Local/Temp/rclone-spool513179859"
I don't see any mention of this in the docs (Mega or rclone mount).
Also in the end the file is still uploaded to MEGA, the only thing is that it is copied to a local drive first while I would like the file to be uploaded directly from its original location.
I see, thanks. But that doesn't answer my question:
Also in the end the file is still uploaded to MEGA, the only thing is that it is copied to a local drive first while I would like the file to be uploaded directly from its original location.
hmm, i would have guessed that rclone is not logging the message Target remote doesn't support streaming uploads
but you wrote that the total amount of free space, as reported by windows explorer, did not shrink by 6GB.