I've been testing a setup for media storage on a spare Ubuntu 18.04 box (actually a virtualbox guest)
I've downloaded and setup the latest version of rclone, with what I believe is the standard gdrive->gcache->gcrypt and then mounted that too a local directory, where I can dump files, which rclone encrypts and uploads in due course.
However the issue I'm seeing is that the files I dump into the local mounted directory, and only copied into it at google-drive upload speed. What I was thinking I would get is copy into the local drive at "local" speed, the rclone sorts out the encryption and upload in the background - hence cache.
Is my understanding wrong or should it work how I expected??
Is that before it allows access (on a read), or would that be seamless in the background, one location I use has a flakey 4G internet connection, so background cache of files once accessed would be good.
Thanks, I'll give that a whirl, if I add that to my mount command and leave the rest the same, how would you expect reads to be handled??
Well I tried it, however it first file copies like normal, however at the end of the copy it appears to stall, I'm not sure if it's waiting for the cache to catchup or it's just stalled
rsync --progress -r /mnt/4tb/TV/'Big Little Lies' /mnt/gdrive/TV
sending incremental file list
Big Little Lies/Season 01/Big Little Lies - S01E06 - Burning Love.mkv
5,472,747,201 100% 69.67MB/s 0:01:14 (xfr#1, to-chk=8/12)
Big Little Lies/Season 01/Big Little Lies - S01E07 - You Get What You Need.mkv
32,768 0% 95.24kB/s 19:31:12
If you want to use the offline feature in the cache backend, do not use the vfs-cache-mode writes. You should just stick with the offline uploading that you have configured with cache-tmp-upload-path and that would be fine.
I assume the goal was to write locally, return back to the OS and let rclone handle uploading later, which is the workflow and how the cache backend offline uploading works.
Okay, I've been playing, but not really got any further. I've been trying some smaller files, and I can confirm that when I copy files into the rclone mount, the first file copies fine, but then the second file waits for the first to upload, and this follows on the line. It's as if the cache has an upload queue of one file. I don't think it's buffer\cache size related, because even if I use lots of small files the behaviour is the same.
My current command line is
rclone mount gcrypt: /mnt/gdrive --allow-other --cache-db-purge --cache-workers=10 --cache-tmp-upload-path=/mnt/4tb/rclone/tmpupload -vv