I have a TrueNAS server at home that I work from via SMB, mainly for photoshop and light video editing. Often I need to leave and continue working somewhere else, I just close my laptop's lid and bring it along. The laptop is always connected to my VPN so once it wakes up and I'm not home, the open files still work, but performance gets pretty bad, as it usually does for SMB over VPN. I want to use
rclone mount with full cache instead to mount the SMB share, and work from it even when I'm home, so I can work from cached files locally, and have rclone update the changes as they happen.
I mount the SMB share to a local directory, and use it as the source dir for my
rclone mount command. Apparently this doesn't support pooling for changes, right? Because of that, should I be mounting it as something else, like SFTP?
I want to achieve the best performance possible when working from the mount while I'm at home, while still having good performance while I'm working out of home, connected via VPN. Please let me know if there are updates to my mount command that can improve performance.
❯ rclone version
- os/version: darwin 12.3.1 (64 bit)
- os/kernel: 21.4.0 (arm64)
- os/type: darwin
- os/arch: arm64
- go/version: go1.17.9
- go/linking: dynamic
- go/tags: cmount
Local Directory, mounted SMB drive
rclone mount /Volumes/NAS /Users/me/rcloneNAS --vfs-cache-mode full --vfs-read-ahead 1000M --vfs-read-chunk-size 256M --vfs-cache-max-size 150G --vfs-cache-max-age 336h --cache-chunk-size=256M --cache-dir /Users/me/rcloneCache --cache-info-age 1000h --dir-cache-time 1000h --buffer-size 256M --poll-interval 15s --write-back-cache --transfers 8 --timeout 1h --log-file /Users/me/Rclone.log --log-level INFO
[nas] type = local
❯ rclone mount /Volumes/NAS /Users/me/rcloneNAS --vfs-cache-mode full --buffer-size 256M --vfs-read-ahead 1000M --cache-chunk-size=256M --vfs-read-chunk-size 256M --vfs-cache-max-size 150G --vfs-cache-max-age 336h --cache-dir /Users/me/rcloneCache --dir-cache-time 1000h --cache-info-age 1000h --poll-interval 15s --write-back-cache --transfers 8 --timeout 1h --log-file /Users/me/Rclone.log --log-level INFO -vv ~ This didn't log out anything?
Footnote: It looks like this is what
cachefilesd does on Linux. I'm not sure if I'm being overkill for trying to setup something similar with
rclone mount. The only alternative would be having a docker running Linux in the background and mount it on Mac OS. I'd rather avoid the docker overhead.