I'm kinda new to this. I followed a few reddit guides and have successfully set up rclone. It is connected to a google drive account. Rclome runs as a service with nssm, this is on windows 10 by the way. My issue is whenever copy a file to the mounted drive, space is taken up on my main drive as well. I read that this is the vfs cache, but I don't know how to clear it. I saw someone say its in config but i cant find any files except config there. Any idea how i would go about clearing it? my vfs is set to --vfs-cache-mode writes.
https://rclone.org/commands/rclone_mount/#vfs-file-caching
"If run with -vv rclone will print the location of the file cache. The files are stored in the user cache file area which is OS dependent but can be controlled with --cache-dir or setting the appropriate environment variable."
--vfs-cache-max-age duration Max age of objects in the cache. (default 1h0m0s)
With writes, it writes the file to the local disk first and uploads it. It's going to use local disk space based on your configuration.
If you check the log, it will show you were the cache dir as l am not sure offhand on Windows other than it looks like your user1.config\rclone directory.
Hmmm, my hard drive has been full all night though, it doesn't seem like it cleaned up after an hour. --dir-cache-time 2h was originally 72h then i switched to 2h, if that makes a difference
The service rclone has been started.
2020/10/07 14:14:36 INFO : vfs cache: cleaned: objects 3 (was 3) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2020/10/07 14:15:06 INFO : DARLING in the FRANXX/Season 1/[HorribleSubs] Darling in the FranXX - 01 [1080p].mkv: vfs cache: queuing for upload in 5s
2020/10/07 14:15:06 INFO : DARLING in the FRANXX/Season 1/[HorribleSubs] Darling in the FranXX - 01 [1080p].mkv: vfs cache: queuing for upload in 5s
Actually i think i know what might be happening. Im queueing up too many files at a time and once i see them on the mount i thought they were uploaded. This doesnt seem to be the case as I'm pre sure they look like they are there but infact they are queed for upload from the vfs cache. Come to think of it my hard drive did suddenly go back up to 50gb free yesterday afternoon
So on the mount files are uploaded one at a time.
If you want to move a lot of files, it's better to use rclone copy and copy directly to the remote rather than the mount.
Alright thanks. I moved the folder to another drive so my main can be free. Now ill just delete the existing vfs cache manually and restart the uploads