I'm moving everything from one PC (cygwin on Win10) to a new machine (Ubuntu WSL2 on Win11). I'd like to move my rclone config from one machine to another. I've found and moved the rclone.conf file from my old machine to the correct location (~/.config/rclone) on my new machine. However, moving the .conf file does not allow me to use my existing remotes on the new machine.
Everything below is from the new machine with the rclone.conf copied over to it.
Run the command 'rclone version' and share the full output of the command.
rclone v1.50.2
os/arch: linux/amd64
go version: go1.13.8
Which cloud storage system are you using? (eg Google Drive)
Google Drive
The command you were trying to run (eg rclone copy /tmp remote:tmp)
if you want to run rclone config from inside wsl2 to create a gdrive remote with oauth2 and web browser
there is a way to do that but a bit complicated.
user01@wsl01:~/rclone$ /mnt/c/data/rclone/rclone.exe version
rclone v1.58.1
- os/version: Microsoft Windows 11 Pro 21H2 (64 bit)
- os/kernel: 10.0.22000.1042 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.17.9
- go/linking: dynamic
- go/tags: cmount
user01@wsl01:~/rclone$ rclone version
rclone v1.59.2
- os/version: ubuntu 20.04 (64 bit)
- os/kernel: 5.10.102.1-microsoft-standard-WSL2 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.18.6
- go/linking: static
- go/tags: none
user01@wsl01:~/rclone$ pwd
/home/user01/rclone
user01@wsl01:~/rclone$ /mnt/c/data/rclone/rclone.exe config --config=/home/user01/rclone/zork.conf
NOTICE: Config file "\\\\wsl.localhost\\Ubuntu-20.04\\home\\user01\\rclone\\zork.conf" not found - using defaults
No remotes found, make a new one?
n) New remote
s) Set configuration password
q) Quit config
n/s/q> n
name> zork
Storage> drive
### at this point, wsl will open a web browser on the windows host. in my case on windows, i run firefox ###
Use auto config?
* Say Y if not sure
* Say N if you are working on a remote or headless machine
y) Yes (default)
n) No
y/n>
NOTICE: If your browser doesn't open automatically go to the following link: http://127.0.0.1:53682/auth?state=sJcUpcQwLYMCf3pMwnryRA
NOTICE: Log in and authorize rclone for access
NOTICE: Waiting for code...
NOTICE: Got code
Configure this as a Shared Drive (Team Drive)?
y) Yes
n) No (default)
y/n>
--------------------
[zork]
type = drive
token = {"access_token": redacted}
team_drive =
--------------------
y) Yes this is OK (default)
e) Edit this remote
d) Delete this remote
y/e/d> y
Current remotes:
Name Type
==== ====
zork drive
user01@wsl01:~/rclone$ rclone lsd zork: --config=./zork.conf -vv
DEBUG : rclone: Version "v1.59.2" starting with parameters ["rclone" "lsd" "zork:" "--config=./zork.conf" "-vv"]
DEBUG : Creating backend with remote "zork:"
DEBUG : Using config file from "/home/user01/rclone/zork.conf"
-1 2022-01-12 13:38:48 -1 zork