I’ve a cached crypted mount, but I am trying to work out the best way of adding content to it.
Here’s my rclone config:
[gdrive] type = drive client_id = client_secret = token = ***REDACTED*** [media-cached] type = cache remote = gdrive:Backup info_age = 1440h chunk_total_size = 32G plex_token = [media] type = crypt remote = media-cached: filename_encryption = standard password = ***REDACTED*** password2 = ***REDACTED*** [media-upload] type = crypt remote = gdrive:Backup filename_encryption = standard password = ***REDACTED*** password2 = ***REDACTED***
and Here’s my systemd unit:
[Unit] Description=rclone FUSE mount Documentation=http://rclone.org/docs/ After=network-online.target [Service] Type=simple User=gmount Group=gmount ExecStart=/usr/bin/rclone mount media: /mnt/remotes/google \ --allow-non-empty \ --allow-other \ --buffer-size=0M \ --dir-cache-time=1h \ --fast-list \ --cache-tmp-upload-path=/mnt/storage/CloudTemp/rclone/cache-upload \ --cache-db-path=/mnt/storage/CloudTemp/rclone/cache-backend \ --cache-chunk-size=24M \ --cache-chunk-total-size=100G \ --cache-info-age=672h \ --cache-tmp-wait-time=10m \ --cache-writes \ --cache-workers=8 \ --umask=000 \ --rc \ -v ExecStop=/bin/fusermount -uz /mnt/remotes/google/ Restart=always [Install] WantedBy=multi-user.target
I first tried uploading content with the following command:
rclone -v move /mnt/storage/staging/Backup media-upload:
Which seems to work, except the content never actually appears in the cached mount, obviously because it is totally seperate and doesn’t update the cache. I can clear the cache but that then seems to defeat the point in it.
I then tried using the following instead:
rclone -v move /mnt/storage/staging/Backup media:
but that failed to start entirely saying it couldn’t write to the mount.
So now I’m using the following:
rclone -v move /mnt/storage/staging/Backup /mnt/remotes/google/
Which should obviously be going via media: over it’s mount.
Now this works, mostly, every now and then the chtimes part fails as the cache hasn’t updated yet and i have to flush cache for that directory to work again using rclone rc cache/expire Remote=“Directory/”
And while I say it works, it’s like it’s uploading it directly rather than caching the write and uploading in the background as I’d expect.
Am I doing something wrong? Is my config awry or am I just uploading content the wrong way?