Multi Config In One PC

What is the problem you are having with rclone?

I want have 2 different config
~normal config for personal
~another config for for multi team drive remote. i want put this config together in folder in D drive.
I read some about enviromental variable n so on but i dont really understand.
How i can permanently run 2nd config without finding specific config location with command line

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

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

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

Paste command here

The rclone config contents with secrets removed.

Paste config here

A log from the command with the -vv flag

Paste  log here

can have a script file, .cmd text file

set RCLONE_CONFIG=C:\data\rclone\scripts\custom.conf
rclone listremotes -vv

and here is the output

rclone listremotes -vv 
DEBUG : Setting --config "C:\\data\\rclone\\scripts\\custom.conf" from environment variable RCLONE_CONFIG="C:\\data\\rclone\\scripts\\custom.conf"
DEBUG : rclone: Version "v1.57.0" starting with parameters ["c:\\data\\rclone\\scripts\\rclone.exe" "listremotes" "-vv"]
DEBUG : Using config file from "C:\\data\\rclone\\scripts\\custom.conf"
DEBUG : rclone: Version "v1.57.0" finishing with parameters ["c:\\data\\rclone\\scripts\\rclone.exe" "listremotes" "-vv"]

set RCLONE_CONFIG=C:\data\rclone\scripts\custom.conf

so,this is example command i need to use right everytime i need to specific certain config position right?
if yes,what example people using windows need to do,so i do need to type everytime.
so when im open cmd rclone it automatically find its location

sorry im has no knowledge about script code or whatsoever

then you need to use a command that specifies the location of the config file, for example.
rclone listremotes -vv --config=c:\path\to\rclone\config\custom.conf
and output

rclone listremotes -vv --config=C:\data\rclone\scripts\custom.conf 
DEBUG : rclone: Version "v1.57.0" starting with parameters ["c:\\data\\rclone\\scripts\\rclone.exe" "listremotes" "-vv" "--config=C:\\data\\rclone\\scripts\\custom.conf"]
DEBUG : Using config file from "C:\\data\\rclone\\scripts\\custom.conf"

so what i need to do actually,so no need type every same command. batch file?

correct,but if you have no script experience this is a workaround.

  1. create two folders, each with a copy of rclone.exe and two different config files
    might look like this
├── 01
│   ├── rclone.conf
│   └── rclone.exe
└── 02
    ├── rclone.conf
    └── rclone.exe
  1. run commands like this.
d:\rclone\01\rclone listremotes

d:\rclone\02\rclone listremotes

ok 1 question,i dont need to do that right if my config same folder as rclone?

if you want to store the config file in non-standard location,
then need to use --config as documented here

another option is to:
-- append the PATH environment variable to add d:\rclone\01;d:\rclone\02
--- create a structure like this

d:\rclone>rclone tree .
├── 01
│   ├── rclone.conf
│   └── rclone01.exe
├── 02
│   ├── rclone.conf
    └── rclone02.exe

--- use it like this

c:\>rclone01 listremotes

c:\>rclone02 listremotes

what a downside if i dont use that?if im just use it from folder without setting anything,only put config in folder. just curious

--- without setting path,
need to specify the full path, each and every time
change the current working directory to which every folder contains the config file you want.

--- setting path,
does not matter what the current working directory is.

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