When using Rclone mounting to serves files, what are some "best" practice?

What is the problem you are having with rclone?

Would like to learn more the the rlcone mounting feature.
Any additional options work well with the mount ?

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

rclone v1.57.0

  • os/version: ubuntu 20.04 (64 bit)
  • os/kernel: 5.11.0-1029-gcp (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.17.2
  • go/linking: static
  • go/tags: none

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


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

rclone mount gd:websiteFile webLocal --daemon

The rclone config contents with secrets removed.

A log from the command with the -vv flag

Paste  log here

well, what is your use-case, what do you plan to do with the rclone mount?

The website is built with WP, It is just a small blog right now, where it has some documents like pdf, jpg.
As planned to add more documents.
Use-case: Using Rclone with GD to act as a "local" drive for the site.
It seems ok sometimes since the pdf file can be imported into WP media library, then showcases in the page.
Some pdf files failed to load while the (WP) page is done loading. (My understanding:1. the files failed to imported into WP media library. or 2. rclone failed to mount the files), But I can't say for sure.
Or there is better config when using the mount with rclone.

It's not a good idea use Gdrive to mount a Website. Since --transfers default to 4 , you will have slow speeds.

Well that's my understanding for rclone mount.

Unless you have the html/WP files as stored locally, and the "big pdf " files linked are Gdrive Mounted, you will have to fine-tune according to each use case.

need to use a rclone debug log, see what rclone is doing.

for testing, would not use --daemon.

might try this
rclone mount gd:websiteFile webLocal --log-level=DEBUG --log-file=/path/to/log.txt --vfs-cache-mode=full

many rcloners run websites with rclone.

the --transfers should not be an issue, when using --vfs-cache-mode=full.
once rclone downloads a file for the first time, rclone will cache it locally in the vfs file cache.
the amount of time that the file will stay in the vfs file cache can be tweaked.

rclone can emulate a webserver and a webdav server
rclone serve http
rclone serve webdav

1 Like

Including https://beta.rclone.org :slight_smile:

Its a read only rclone mount with caddy in front of it. It uses lots of VFS cache.

I keep meaning to switch it over to rclone serve http as that should be more efficient.

1 Like

Yes. the WP is installed on VPS. At the same time, Rclone is used to mount file WP media files only, not the entire site.

Yes. was asking for if some fine-tune options for mounting the big pdf files.

hi, i shared a command.

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