VFS Cache (writes) not emptied after upload

What is the problem you are having with rclone?

I have vfs (in writes mode) for my remote mount. It uploads just fine and appears in my cloud storage, but the local cache dir still contains a copy of the file. I want it to be removed after upload. Can anyone see what I did wrong in my mount?

What is your rclone version (output from rclone version)


Which OS you are using and how many bits (eg Windows 7, 64 bit)


Which cloud storage system are you using? (eg Google Drive)

Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

/usr/bin/rclone mount c-vault: /mnt/cvault \
--allow-other \
--attr-timeout 1000h \
--buffer-size 64M \
--dir-cache-time 48h \
--log-level INFO \
--log-file /opt/rclone/logs/cvault-service.log \
--poll-interval 30s \
--use-mmap \
--tpslimit 10 \
--tpslimit-burst 10 \
--cache-dir=/bufferpool/rclone-cache-cvault \
--vfs-cache-mode writes \
--transfers 1 \
--bwlimit "08:00,1M:off 23:59,off" \
--timeout 1h \
--umask 002 \
--user-agent vaultapp \
--rc \

A log from the command with the -vv flag

sample.txt: vfs cache: queuing for upload in 5s
sample.txt: Copied (new)
sample.txt: vfs cache: upload succeeded try #1
vfs cache: cleaned: objects 2 (was 2) in use 0, to upload 0, uploading 0, total size 32.000M (was 32.000M)

The default is 1 hour:

--vfs-cache-max-age duration         Max age of objects in the cache. (default 1h0m0s)

Before it's removed.

Thanks @Animosity022. I forgot about that. I thought it was open files only. Appreciate the tip!

Quick clarifying question: This only applies to items no longer queued for upload, correct? Let's say I have the cache time really low (like 1 minute), but it takes 5 minutes to upload. Does this flag only affect upload-complete content?

It is time from last use - while it is being uploaded it is considered in use, so it shoud be 1 minute after it is uploaded it gets removed.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.