How can I check if environment variables are being used?

I'm trying to start using rclone variables since they can set some nice defaults for all remotes.

However, how can I know if they are really being used?

cat << 'EOF' > /etc/profile.d/rclone.sh
RCLONE_FAST_LIST=true
RCLONE_DRIVE_USE_TRASH=true
RCLONE_DRIVE_DISABLE_HTTP=false
EOF

After creating this example env file, and sourcing from it, and checking the variable with echo, when I run rclone with -vvv I don't see it saying starting with parameters I set

Do you think rclone should emit a debug when it picks up an env var?

Yes. I think it's important to have this information

OK give this a go

https://beta.rclone.org/branch/v1.52.2-137-ga76c9a16-fix-debug-env-beta/ (uploaded in 15-30 mins)

1 Like

I don't think this is working.

I'm calling rclone and I don't see anywhere the ENV variables I set. And I checked them with echo

Not only is not being displayed anywhere, it's not working.

I set RCLONE_TRANSFERS=10 and did a rclone copy, it only used the default 4 transfers

I think it is logging at debug before the logger has been configured so the logs aren't being seen :frowning:

How did you set it? This works for me

export RCLONE_TRANSFERS=10

export RCLONE_TRANSFERS=10

Now this worked for me. I set it before like this:

cat << 'EOF' > /etc/profile.d/rclone.sh
RCLONE_FAST_LIST=true
RCLONE_DRIVE_USE_TRASH=true
RCLONE_DRIVE_DISABLE_HTTP=false
RCLONE_TRANSFERS=10
RCLONE_CHECKSUM=TRUE
RCLONE_STATS=5s
RCLONE_DRIVE_CHUNK_SIZE=256M
EOF

Then source /etc/profile.d/rclone.sh. But is still not being logged

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