What is the problem you are having with rclone?
To be fair, it's not a problem, it's more of an advice request, as all the research I've done into mounting gdrive remotes is ... conflicting, at times, and I want some guidance.
Gentoo Linux on a dtpc, want to set up 3 mounts for 3 rclone remotes to 3 different gdrive accounts. The gdrive remotes are successfully up and tested.
I have been reading here in the forums as well as across the Internet for days, collating the various suggestions given, both for creating the mounts and daemonizing them (systemd). I'm curious if there is anything specific I need to do as I have a couple of caveats with my mount setup:
-
All remotes will mount to
/mnt/clouds/{cloudprovider}/{remotepath}. I'm doing this to keep that data out of ~ (and thus out of my ~ backups). In this case, path is/mnt/clouds/gdrive/{1,2,3} -
Said paths have been chowned to me and chmodded to 775 (both recursively). Need to know if this is even necessary or not (I think so, but not 100% sure, seeing the --dir-perms and --file-perms options' default values 777/666).
-
I'm considering creating /.cache locations inside each {cloudprovider} path to handle cache data, but not sure if I need to keep cache separate for each remote, or if I can use a combined cache for each cloud provider. (see --cache-dir below)
I've come up with the following amalgamation of commands for mounting these 3 remotes (see below) and want to know if there is anything I'm missing.
Run the command 'rclone version' and share the full output of the command.
➜ rclone version
rclone v1.75.0
- os/version: gentoo 2.18 (64 bit)
- os/kernel: 7.1.2-p1-gentoo-dist-bin (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.26.5
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
Google Drive (for now)
The command you were trying to run (eg rclone copy /tmp remote:tmp)
rclone mount {gdrive-1}: /mnt/clouds/gdrive/1 \
--vfs-cache-mode full \
--dir-cache-time 8760h \
--vfs-cache-max-age 24h \
--vfs-read-chunk-size 16M \
--vfs-read-chunk-size-limit 2G \
--cache-dir /mnt/clouds/gdrive/.cache \
--dir-cache-time 1h
--allow-other \
--async-read=true \
--buffer-size 32M \
--rc \
--daemon
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
➜ rclone config redacted
[gdrive-1]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive =
[gdrive-2]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive =
[gdrive-3]
type = drive
scope = drive
client_id = XXX
client_secret = XXX
token = XXX
team_drive =
A log from the command that you were trying to run with the -vv flag
Paste log here
Inapplicable as I'm asking for advice before creating the mounts.
If there is anything I need to add, please let me know - I've been reading stuff on lunch breaks and after work hours, collating as much info as I can, along with bookmarking various sites, including posts here, the mount doc both here and at rclone UI, and also pages like Tanner Cude's blog, Ivan Morgillo's blog, Commander's Nout's Stacker News blog, OSTechNix blog, and more.