Delay when saving files using "rclone mount"

What is the problem you are having with rclone?

I have mounted a remote SFTP filesystem using "rclone mount". Whenever I save a file, it takes around 5 seconds for the file to change remotely. I want to know if it is possible for the change to be applied instantly.

Run the command 'rclone version' and share the full output of the command.

rclone v1.69.3

  • os/version: darwin 15.5 (64 bit)
  • os/kernel: 24.5.0 (arm64)
  • os/type: darwin
  • os/arch: arm64 (ARMv8 compatible)
  • go/version: go1.24.3
  • go/linking: dynamic
  • go/tags: cmount

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

SFTP

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

rclone mount "$NAME:" "$MOUNT_POINT" --vfs-cache-mode writes

I am using the --vfs-cache-mode writes argument to "solve" the following error message: WriteFileHandle: Can't open for write without O_TRUNC on existing file without --vfs-cache-mode >= writes. I do not know if this argument is causing the issue.

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[mysite]
type = sftp
host = XXX
user = XXX
port = 22
pass = XXX
shell_type = unix
md5sum_command = md5sum
sha1sum_command = sha1sum

A log from the command that you were trying to run with the -vv flag

(Does not apply here, I think)

welcome to the forum,

--vfs-write-back duration Time to writeback files after last use when using cache (default 5s)

I have no idea how I missed that. Thank you.

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