I'm using the following command to connect and mount my target:
...
rclone mount "Veeam Sharepoint": O: --vfs-cache-mode off
...
My targets is mounted just fine in Windows. As soon as I'm pasting a file to the drive it seems that cache is automatically activated in write-mode, even though it should've been disabled. Why is it automatically activated, and how do I prevent it ?
2020/07/16 15:06:38 ERROR : Storage/Kopier data til Onedrive/1GB.bin: WriteFileHandle: Truncate: Can't change size without --vfs-cache-mode >= writes
What is your rclone version (output from rclone version)
rclone v1.52.2
os/arch: windows/amd64
go version: go1.14.4
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Windows 10 Pro, 64bit
Which cloud storage system are you using? (eg Google Drive)
Sharepoint
The command you were trying to run (eg rclone copy /tmp remote:tmp)
rclone mount "Veeam Sharepoint": O: --vfs-cache-mode off
Makes sense. So to help me, I guess that it automatically switches the cache from off to writes, and then begins moving the file into the cache before uploading. It works perfectly fine. It's just that I don't want to use the cache.
So basically I have to use cache in write mode in order to upload any files. I've tested with both a bin file and a zip file, in both situations it works, but only because the case is in wiring mode. As far as I understand, it should be doable without using the cache.
Okay. It can be that it is only telling me it. But somehow I am certain that it's changing to write cache by itself.. Something is happening, if it ain't that, I don't know what it is. As soon as a paste the file, it tells me that. The file is then quickly moved to the drive, while this happens I see that it consumes more and more disk space at C where my default cache is, also it doesn't start to upload until the file is successfully copied, then I see it is initiating the actual upload... This whole process is just weird to me, as it shouldn't be using any local cache ?
I thought that I would be able to upload directly to the cloud by mounting my Sharepoint as a drive in Windows, but as I understand from your writing, this can't be done.. My goal is to have a location represented either as drive or network drive which I can upload data to without any involvement of a local cache.
I can say with 100% certainty it does not change itself.
No, it depends on 'how' you are writing the files if you need writes or not. The error message in the log you shared says you need it because of how the files are being written.
If you can write with write modes off, you upload directly to the mount and it waits for it upload to come back:
This is the path:
C:\Users\veeam\AppData\Local\Temp\rclone-spool714211375\Storage\Kopier data til Onedrive
my test file 10GB.zip is in it, which is also the file i pasted to the drive.
Okay. Glad to hear that it's just me that is missing something then.
I am writing the file just by copying my 10GB.zip test file from my download folder to the drive.
Here's my logfile: privatebin dot net/?850d9680041a73bd#9FqJX3AQTxkpnozdfs8jbE5iPK6hLWbH3Lqz7McAHCEB
I guess it has something to do with this?
2020/07/16 20:04:24 DEBUG : One drive root '': Target remote doesn't support streaming uploads, creating temporary local FS to spool file
I guess there's no way to have it upload directly then. Wonder if it would be possible using the webdav option to connect to the Sharepoint site, instead of Onedrive ?