Move from cache to vfs

What is the problem you are having with rclone?

I have a working setup with a crypt on gdrive mounted to my vps.
I use a cache like in this tutorial: https://bytesized-hosting.com/pages/rclone-gdrive.
So i have cloud remote -> cache -> crypt
I want to move from a cache to use the vfs functionality, because it is hogging my drive when streaming and it takes a while for a stream to start (the first time). This can be improved.

This is my config:

[gdrive]
type = drive
client_id = blank
client_secret = blank
scope = drive
token = {"access_token":blank}
root_folder_id = blank

[gcache]
type = cache
remote = gdrive:media
chunk_size = 5M
info_age = 1d
chunk_total_size = 10G

[gcrypt]
type = crypt
remote = gcache:/crypt
filename_encryption = standard
directory_name_encryption = true
password = blank
password2 = blank

I use this command:

/usr/bin/rclone mount gcrypt: /mnt/gdrive --config /home/username/.config/rclone/rclone.conf --log-file /home/username/rclone-cache.log --allow-other --allow-non-empty --cache-db-purge --buffer-size 512M --use-mmap --dir-cache-time 72h --drive-chunk-size 16M --timeout 1h --vfs-cache-mode minimal --vfs-read-chunk-size 32M --vfs-read-chunk-size-limit 1G

What is your rclone version (output from rclone version)

rclone v1.51.0 on Linux/amd64

What did I find?

I found this topic https://forum.rclone.org/t/how-to-remove-or-move-from-cache-remote/10883

and tried changing my config, to skip the cache and point directly to my crypt, to:

[gdrive]
type = drive
client_id = blank
client_secret = blank
scope = drive
token = {"access_token":blank}
root_folder_id = blank

[gcrypt]
type = crypt
remote = gdrive:/crypt
filename_encryption = standard
directory_name_encryption = true
password = blank
password2 = blank

With the following command:

/usr/bin/rclone mount gcrypt: /mnt/gdrive --config /home/username/.config/rclone/rclone.conf --log-file /home/username/rclone-cache.log --allow-other --allow-non-empty --buffer-size 512M --use-mmap --drive-chunk-size 16M --timeout 1h --vfs-cache-mode minimal --vfs-read-chunk-size 32M --vfs-read-chunk-size-limit 1G

This did not work. When adding the -vv it was just waiting for changes, but the mount in /mnt/gdrive was empty??

  1. What did I do wrong? I think something in my config
  2. Can I improve my command for faster starting?

Thanks

hello and welcome to the forum.

where are the files located?
do a rclone ls gcrypt:

Thanks for the response.
I'll give some extra info:

rclone lsd gdrive:
          -1 2020-03-14 17:55:09        -1 media
rclone lsd gdrive:media
          -1 2020-03-14 17:55:10        -1 crypt
rclone lsd gdrive:media/crypt
          -1 2020-03-14 17:55:11        -1 219qg57q289hsfit1u6nhrnp70
          -1 2020-03-18 23:56:03        -1 q2o03ek4oakg4uajm9upfd8o0g
rclone lsd gcrypt:
          -1 2020-03-14 17:55:11        -1 music
          -1 2020-03-18 23:56:03        -1 video

While typing this should my new config for the gcrypt look like this:

[gcrypt]
type = crypt
remote = gdrive:/media/crypt
filename_encryption = standard
directory_name_encryption = true
password = blank
password2 = blank

So with the added /media ?

Any advice on question 2?

The problem is that the (second) mount does not work.
I cannot acces the files in /mnt/gdrive/, the folder is empty.

Why so many flags....? I just followed the tutorial and it worked...

I'm sorry, rclone ls is an incomplete command.Did I give not enough information in my second post?
I have a folder on gdrive called media. In that folder is folder called crypt. In that folder are two encrypted folders called music and video with all my files.
I know where they are. I want to mount my gcrypt without using a cache.

I have a working setup with with my config posted above.

I'm looking how to change my config, to not use the cache. I tried something, but that did not work. That is explain in my first post. my folder /mnt/gdrive/ was empty.
I'm looking for directions how to change my config file.

Your suggested command is working. But is still uses the cache. How do mount my crypt without using the cache that is now configured in my config file.

I'm sorry for the confusion, earlier.

how is that command working and still using the cache?

I solved it myself:

My config is now:

[gdrive]
type = drive
client_id = blank
client_secret = blank
scope = drive
token = {"access_token":blank}
root_folder_id = blank

[gcrypt]
type = crypt
remote = gdrive:/media/crypt
filename_encryption = standard
directory_name_encryption = true
password = blank
password2 = blank

In the previous version I was pointing to gdrive/crypt, but that does not excist. It should have been gdrive/media/crypt.

My mount commnd is:

/usr/bin/rclone mount gcrypt: /mnt/gdrive \
--config /home/username/.config/rclone/rclone.conf \
--allow-other \
--allow-non-empty \
--umask 002 \
--dir-cache-time 72h \
--timeout 1h \
--log-file /home/username/rclone-cache.log \
--log-level INFO

Much cleaner and it works faster!!

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