Connection string for a remote that contains a colon?

What is the problem you are having with rclone?

I'm attempting to use rclone + systemd to generate a union overlayfs-like mount of the local filesystem. This would be based on the $DISPLAY variable, which can have a colon in it. In particular, I'm trying to see if I can fix a longstanding annoyance of google chrome and xrdp.

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

rclone v1.66.0
- os/version: ubuntu 22.04 (64 bit)
- os/kernel: 6.5.0-1019-oem (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.22.1
- go/linking: dynamic
- go/tags: none

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

Union (of purely local fs)

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

rclone mount :union,create_policy=epff,upstreams="'/home/myuser/.config/google-chrome-unique:0' /home/myuser/.config/google-chrome:ro" ./google-chrome:0

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

type = union
upstreams = '/home/myuser/.config/google-chrome-unique:0' /home/myuser/.config/google-chrome:ro
create_policy = epff

A log from the command that you were trying to run with the -vv flag

2024/04/10 01:08:09 DEBUG : rclone: Version "v1.66.0" starting with parameters ["rclone" "mount" "-vv" ":union,create_policy=epff,upstreams='/home/myuser/.config/google-chrome-unique:0' /home/myuser/.config/google-chrome:ro" "./google-chrome:0"]
2024/04/10 01:08:09 DEBUG : Creating backend with remote ":union,create_policy=epff,upstreams='/home/myuser/.config/google-chrome-unique:0' /home/myuser/.config/google-chrome:ro"
2024/04/10 01:08:09 DEBUG : Using config file from "/home/myuser/.config/rclone/rclone.conf"
2024/04/10 01:08:09 Failed to create file system for ":union,create_policy=epff,upstreams='/home/myuser/.config/google-chrome-unique:0' /home/myuser/.config/google-chrome:ro": expecting `:` or `,` or another quote after a quote

It's interesting to note, that not using a connection string, is fine. e.g with the config above.

rclone mount google-chrome-0: ./google-chrome:0

Is there a way to dump a connection string from an existing configured mount? It may just be that I don't know the perfect syntax for the relevant escapes.

If not, can this count as a feature request ;^)? This needs to be connection-string based because this is to be generated on-the-fly using some systemd template-unit trickery, and I'd rather not add more transformations (colon to something else).

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