DEV Community

vast cow
vast cow

Posted on

My Favorite rclone mount Settings

rclone mount is a useful way to access remote storage as if it were a local folder. With the right options, it can feel more responsive and predictable during everyday use. The configuration below is a practical setup for mounting a remote path to a local directory.

Example Configuration

rclone mount remote:/path /mnt/remote \
  --vfs-cache-mode full \
  --vfs-write-back 0s \
  --dir-cache-time 1s \
  --attr-timeout 1s \
  --poll-interval 0 \
  --vfs-read-ahead 1M
Enter fullscreen mode Exit fullscreen mode

Purpose of This Setup

This configuration is designed to make a mounted remote storage path behave more like a normal local filesystem. It is especially useful when you want quick file visibility, immediate write handling, and fewer delays caused by cached directory or file metadata.

The general goal is simplicity: keep the mount usable for regular file operations while reducing the chance of stale information.

What Each Option Does

--vfs-cache-mode full

This enables full VFS caching. It helps many applications work correctly with the mounted remote, especially those that expect normal filesystem behavior.

--vfs-write-back 0s

This makes writes get handled without an added write-back delay. It is useful when you want changes to be processed immediately.

--dir-cache-time 1s

This keeps directory listings fresh by caching them for only a very short time. It helps when files are added, removed, or changed frequently.

--attr-timeout 1s

This short timeout reduces how long file attributes are cached. It helps the mount reflect recent changes more quickly.

--poll-interval 0

This disables polling for remote changes. In this setup, the mount relies more on short cache times instead of background polling.

--vfs-read-ahead 1M

This reads a small amount of extra data in advance. It can improve reading performance without using too much additional memory.

Why This Setup Is Useful

This mount setup is a good choice for users who care about seeing updates quickly and keeping filesystem behavior straightforward. It trades longer cache times for freshness, which can be helpful when the remote content changes often or when you want local access to reflect the remote state more closely.

Conclusion

This rclone mount configuration is a simple and practical setup for everyday use. It focuses on usability, fast visibility of changes, and stable file access. For users who want a remote mount to behave more like a local folder, it is an effective starting point.

Top comments (0)