# Rclone config default paths

**URL:** <https://forum.rclone.org/t/rclone-config-default-paths/29235>\
**Category:** Feature\
**Created:** [February 12, 2022, 2:04pm UTC](https://forum.rclone.org/t/rclone-config-default-paths/29235 "2022-02-12T14:04:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aolah76](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/c6cbf5/32.png) [@aolah76](https://forum.rclone.org/u/aolah76)\
**Post date:** [February 12, 2022, 2:04pm UTC](https://forum.rclone.org/t/rclone-config-default-paths/29235/1 "2022-02-12T14:04:30Z")

</div>

Could be rclone default config paths extended with

/etc/rclone/rclone.conf ?

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [February 12, 2022, 2:07pm UTC](https://forum.rclone.org/t/rclone-config-default-paths/29235/2 "2022-02-12T14:07:02Z")

</div>

Seems a bit counterintuitive as it's a user space program so generally runs as a user.

I just use:

```auto
felix@gemini:~$ env | grep RCLONE_CONF
RCLONE_CONFIG=/opt/rclone/rclone.conf

```

and point it where I want all the time.

You could set that environment variable globally as well and be done with it. No change / feature needed.

---

<div class="post-metadata">

**Author:** ![aolah76](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/c6cbf5/32.png) [@aolah76](https://forum.rclone.org/u/aolah76)\
**Post date:** [February 12, 2022, 2:21pm UTC](https://forum.rclone.org/t/rclone-config-default-paths/29235/3 "2022-02-12T14:21:20Z")

</div>

I have read about this possibility but storing the config not under the default locations results that the config file has to be specified by --config=""  
This induces more typing by running each rclone command.  
From my point of view creating a symlink between expected and real path of the config file is a simpler solution.

---

<div class="post-metadata">

**Author:** ![Animosity022](https://forum.rclone.org/user_avatar/forum.rclone.org/animosity022/32/451_2.png) [@Animosity022](https://forum.rclone.org/u/Animosity022)\
**Post date:** [February 12, 2022, 4:02pm UTC](https://forum.rclone.org/t/rclone-config-default-paths/29235/4 "2022-02-12T16:02:18Z")

</div>

If you set the environment variable like I shared, you do not have to type it because it's set via the config variable.

```auto
rclone ls GD:test -vvv
2022/02/12 11:02:00 DEBUG : Setting --config "/opt/rclone/rclone.conf" from environment variable RCLONE_CONFIG="/opt/rclone/rclone.conf"
2022/02/12 11:02:00 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rclone" "ls" "GD:test" "-vvv"]
2022/02/12 11:02:00 DEBUG : Creating backend with remote "GD:test"
2022/02/12 11:02:00 DEBUG : Using config file from "/opt/rclone/rclone.conf"
2022/02/12 11:02:00 DEBUG : GD: Loaded invalid token from config file - ignoring
2022/02/12 11:02:00 DEBUG : Saving config "token" in section "GD" of the config file
2022/02/12 11:02:00 DEBUG : GD: Saved new token in config file
2022/02/12 11:02:00 DEBUG : Google drive root 'test': 'root_folder_id = 0AGoj85v3xeadUk9PVA' - save this in the config to speed up startup
       -1 testsheet.xlsx
2022/02/12 11:02:00 DEBUG : 6 go routines active

```

No link or anything needed.

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [April 13, 2022, 4:03pm UTC](https://forum.rclone.org/t/rclone-config-default-paths/29235/5 "2022-04-13T16:03:05Z")

</div>

Closed on April 13, 2022, 4:03pm UTC

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