Rclone environment variables testing

I'm trying to get to grips with rclone, and want to make a cheatsheet for my google keep that has some commands i can quickly use to replicate an environment or set up a new configuration.

I've got the message that I shouldn't be using samba/cifs/smb as the go module is too old, but this is just a proof of concept, then I'll reconfigure for nfs or something else.

rclone environment variables

export RCLONE_CONFIG_NAME='test'
export RCLONE_SMB_HOST="mymachine.local.frank.com"
export RCLONE_SMB_USER="simon"
export RCLONE_SMB_PASSWORD="bob"
export RCLONE_SMB_PASS=$(echo $SMB_PASSWORD | rclone obscure -)
rclone config create $RCLONE_CONFIG_NAME smb

command line bespoke variables:

export CONFIG_NAME='test'
export HOST="mymachine.local.frank.com"
export USER="simon"
export PASS="bob"
export SAMBA_PASS=$(echo $PASS | rclone obscure -)
rclone config create $CONFIG_NAME smb  host $HOST  user $USER pass $SAMBA_PASS

now the top one doesn't work at all. and the bottom one works, but doesn't look the same as my manually configured one. In that for the manually configured one the username and password (I think) seem combined in to the pass field, where this creates two separate lines user and pass.

I strongly believe that I just don't understand what I'm doing, but I would appreciate some enlightenment if possible please.

Sorry if I'm wasting time/effort but I read the faq, and looked through search and couldn't see anything that helped me.

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