I can't work out how to use an "on-the-fly" union remote.
Run the command 'rclone version' and share the full output of the command.
rclone v1.57.0
- os/version: Microsoft Windows 10 Pro 2009 (64 bit)
- os/kernel: 10.0.22000.493 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.17.2
- go/linking: dynamic
- go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
N/A, Local Filesystem
The command you were trying to run (eg rclone copy /tmp remote:tmp)
Using the instructions here and here it appears that I can use an on-the-fly union remote with the following command:
rclone ls ":union,upstreams=C:\a C:\b:"
However, I am getting the following response:
2022/03/08 13:15:59 Failed to create file system for ":union,upstreams=C:\\a C:\\b:": union can't point to a single upstream - check the value of the upstreams setting
There must be a mistake in the syntax I'm using but I can't figure out what that mistake is.
The rclone config contents with secrets removed.
N/A - Using an on-the-fly config.
A log from the command with the -vv flag
2022/03/08 13:16:26 DEBUG : rclone: Version "v1.57.0" starting with parameters ["C:\\Users\\Adamd\\.local\\bin\\rclone.exe" "ls" ":union,upstreams=C:\\a C:\\b:" "-vv"]
2022/03/08 13:16:26 DEBUG : Creating backend with remote ":union,upstreams=C:\\a C:\\b:"
2022/03/08 13:16:26 DEBUG : :union: detected overridden config - adding "{YJPtf}" suffix to name
2022/03/08 13:16:26 DEBUG : Using config file from "C:\\Users\\Adamd\\.config\\rclone\\rclone.conf"
2022/03/08 13:16:26 Failed to create file system for ":union,upstreams=C:\\a C:\\b:": union can't point to a single upstream - check the value of the upstreams setting
That's the ticket! Thanks for your help. Now...next question...what to do when there are spaces in the paths. Things I've tried:
rclone ls ":union,upstreams='c:\a 1 c:\b 2':"
2022/03/08 16:21:55 ERROR : : error listing: directory not found
rclone ls ":union,upstreams='""c:\a 1"" ""c:\b 2""':"
Usage:
rclone ls remote:path [flags]
rclone ls ":union,upstreams=""'c:\a 1' 'c:\b 2'"":"
2022/03/08 16:23:34 Failed to create file system for ":union,upstreams='c:\\a 1' 'c:\\b 2':": expecting `:` or `,` or another quote after a quote
hi,
i tried that and it does not work on windows and so far, i cannot figure out how to make this work
rclone ls ":union,upstreams='""c:\a 1"" ""c:\b 2""':" -vv
Usage:
rclone ls remote:path [flags]
Flags:
-h, --help help for ls
Use "rclone [command] --help" for more information about a command.
Use "rclone help flags" for to see the global flags.
Use "rclone help backends" for a list of supported services.
Command ls needs 1 arguments maximum: you provided 4 non flag arguments: [":union,upstreams='\"c:\\a" "1" "c:\\b" "2': -vv"]
I thought you doubled up " in double quoted strings to get a single quote? I suppose that probably depends on whether you are using CMD or Powershell. I'm pretty sure that syntax should work for CMD.