Help with rclone config create - again


#1

I am using rclone 14.6 @ windows 10

I am trying to build a config file within a bat file.

I use:
rclone config create MYremote mega user MYuser pass MYpassword --config MYConfig.txt

point is… MYpassword appears litterally in MYConfig… not the same behaviour as if I do rclone config interactivelly…

What gives?

Thanks


#2

You need to run the password through rclone obscure first, then give it to rclone config create


#3

Fast as a thunderstrike, thanks again.


#4

I am a bit perplex.

Using in a bat file rlcone obscure + rclone config create , produces a config file that does not allow to log in… While doing same in rclone config interactively all goes right.
Perhaps my bat is wrong, but I cannot “debug” it. obscured password looks good but does not log in…

Is there a way to “de-obscure” to check that bat works right?

Thanks.


#5

Can you share your batch file and what steps you are running?


#6

set order=rclone.exe obscure MYpass
FOR /F %%F IN (’%order%’) DO SET MYpassobscured=%%F
rclone config create MYremote mega user MYuser pass %MYpassobscured% --config rclone.conf


#7

I can confirm the bat is right and that obscure works right.
It was an error with my password.
Apologies!!


closed #8

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