How to create new config (storage) with command line?

What is the problem you are having with rclone?

I am trying to make new FTP config with CLI. But the response is not as expected.
Bellow command save only section and type, nothing else.
What i am doing wrong?

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

rclone v1.58.0-DEV

  • os/version: pure2 6.5
  • os/kernel: 4.4.35 (armv7l)
  • os/type: linux
  • os/arch: arm
  • go/version: go1.15.2
  • go/linking: static
  • go/tags: none

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

FTP

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

rclone config create my_ftp ftp --no-obscure --ftp-pass="my_password_string" --ftp-user="my_username_string" --ftp-host="bla.example.com"

The rclone config contents with secrets removed.

[my_ftp]
type = ftp

A log from the command with the -vv flag

root@sf8008:~# rclone config create my_ftp ftp --no-obscure --ftp-pass="my_password_string" --ftp-user="my_username_string" --ftp-host="bla.example.com" -vv
2022/01/18 16:35:32 DEBUG : rclone: Version "v1.58.0-DEV" starting with parameters ["rclone" "config" "create" "my_ftp" "ftp" "--no-obscure" "--ftp-pass=my_password_string" "--ftp-user=my_username_string" "--ftp-host=bla.example.com" "-vv"]
2022/01/18 16:35:32 DEBUG : Using config file from "/home/root/.config/rclone/rclone.conf"
2022/01/18 16:35:32 DEBUG : my_ftp: config in: state="", result=""
2022/01/18 16:35:32 DEBUG : my_ftp: config out: out=<nil>, err=<nil>
--------------------
[my_ftp]
type = ftp
--------------------
2022/01/18 16:35:32 DEBUG : rclone: Version "v1.58.0-DEV" finishing with parameters ["rclone" "config" "create" "my_ftp" "ftp" "--no-obscure" "--ftp-pass=my_password_string" "--ftp-user=my_username_string" "--ftp-host=bla.example.com" "-vv"]

hello and welcome to the forum,

need to use the config parameter name, not the command line parameter name.
pass, not --ftp-pass

rclone config create my_ftp ftp --no-obscure pass="my_password_string" user="my_username_string" host="bla.example.com" -vv 
2022/01/18 11:08:30 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rclone" "config" "create" "my_ftp" "ftp" "--no-obscure" "pass=my_password_string" "user=my_username_string" "host=bla.example.com" "-vv"]
2022/01/18 11:08:30 DEBUG : Saving config "pass" in section "my_ftp" of the config file
2022/01/18 11:08:30 DEBUG : Keeping previous permissions for config file: -rw-rw-rw-
2022/01/18 11:08:30 DEBUG : Saving config "user" in section "my_ftp" of the config file
2022/01/18 11:08:30 DEBUG : Keeping previous permissions for config file: -rw-rw-rw-
2022/01/18 11:08:30 DEBUG : Saving config "host" in section "my_ftp" of the config file
2022/01/18 11:08:30 DEBUG : Keeping previous permissions for config file: -rw-rw-rw-
2022/01/18 11:08:30 DEBUG : my_ftp: config in: state="", result=""
2022/01/18 11:08:30 DEBUG : my_ftp: config out: out=<nil>, err=<nil>
2022/01/18 11:08:30 DEBUG : Keeping previous permissions for config file: -rw-rw-rw-
--------------------
[my_ftp]
type = ftp
pass = *** ENCRYPTED ***
user = my_username_string
host = bla.example.com

1 Like

uhhh, thank you. :slight_smile:
it works!

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