# Rclone config create with json from previous config

**URL:** <https://forum.rclone.org/t/rclone-config-create-with-json-from-previous-config/46897>\
**Category:** Dev Discussions\
**Created:** [July 17, 2024, 10:27am UTC](https://forum.rclone.org/t/rclone-config-create-with-json-from-previous-config/46897 "2024-07-17T10:27:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Konstantinos\_Kakkava](https://forum.rclone.org/user_avatar/forum.rclone.org/konstantinos_kakkava/32/18238_2.png) [@Konstantinos\_Kakkava](https://forum.rclone.org/u/Konstantinos_Kakkava)\
**Post date:** [July 17, 2024, 10:27am UTC](https://forum.rclone.org/t/rclone-config-create-with-json-from-previous-config/46897/1 "2024-07-17T10:27:59Z")

</div>

Because I'm running it on colab to connect my one drive I don't want to go through the whole process every time since I know the key-value pairs that i want by running the `rclone config dump > my_config.conf` so how is there some way to load this again to a new notebook everytime just by loading this file?  
something like `rclone config create my_config.conf`

---

<div class="post-metadata">

**Author:** ![asdffdsa](https://forum.rclone.org/letter_avatar_proxy/v4/letter/a/848f3c/32.png) [@asdffdsa](https://forum.rclone.org/u/asdffdsa)\
**Post date:** [July 17, 2024, 1:45pm UTC](https://forum.rclone.org/t/rclone-config-create-with-json-from-previous-config/46897/2 "2024-07-17T13:45:29Z")

</div>

welcome to the forum,

> [@Konstantinos\_Kakkava](#):
>
> some way to load this again

the config file is a simple .ini text file  
can copy it from one machine to another.

and can specify location using `--config=/path/to/rclone.conf`

---

<div class="post-metadata">

**Author:** ![Konstantinos\_Kakkava](https://forum.rclone.org/user_avatar/forum.rclone.org/konstantinos_kakkava/32/18238_2.png) [@Konstantinos\_Kakkava](https://forum.rclone.org/u/Konstantinos_Kakkava)\
**Post date:** [August 5, 2024, 9:06am UTC](https://forum.rclone.org/t/rclone-config-create-with-json-from-previous-config/46897/3 "2024-08-05T09:06:32Z")

</div>

Can you give me the command exactly to create a new mount gtiven a .conf file?

---

<div class="post-metadata">

**Author:** ![darthShadow](https://forum.rclone.org/user_avatar/forum.rclone.org/darthshadow/32/1322_2.png) [@darthShadow](https://forum.rclone.org/u/darthShadow)\
**Post date:** [August 5, 2024, 10:12am UTC](https://forum.rclone.org/t/rclone-config-create-with-json-from-previous-config/46897/4 "2024-08-05T10:12:51Z")

</div>

It's not exactly an import of the existing config file, but you should be able to pass all required key-value pairs in the command: [rclone config create](https://rclone.org/commands/rclone_config_create/)

---

<div class="post-metadata">

**Author:** ![Konstantinos\_Kakkava](https://forum.rclone.org/user_avatar/forum.rclone.org/konstantinos_kakkava/32/18238_2.png) [@Konstantinos\_Kakkava](https://forum.rclone.org/u/Konstantinos_Kakkava)\
**Post date:** [August 5, 2024, 10:18am UTC](https://forum.rclone.org/t/rclone-config-create-with-json-from-previous-config/46897/5 "2024-08-05T10:18:05Z")

</div>

can you write for me the exact command for this example .conf file?

```json
{
    "onedrive": {
        "drive_id": "my_id",
        "drive_type": "business",
        "token": "{\"access_token\":my_auth_token}",
        "type": "onedrive"
    }
}

```

---

<div class="post-metadata">

**Author:** ![darthShadow](https://forum.rclone.org/user_avatar/forum.rclone.org/darthshadow/32/1322_2.png) [@darthShadow](https://forum.rclone.org/u/darthShadow)\
**Post date:** [August 5, 2024, 10:34am UTC](https://forum.rclone.org/t/rclone-config-create-with-json-from-previous-config/46897/6 "2024-08-05T10:34:31Z")

</div>

```bash
rclone --config=test.conf config create testremote onedrive drive_id=my_id drive_type=business token=\"{"access_token":my_auth_token}\"

```

This will create the required remote in the `test.conf` file.

---

<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:** [October 5, 2024, 6:34am UTC](https://forum.rclone.org/t/rclone-config-create-with-json-from-previous-config/46897/7 "2024-10-05T06:34:37Z")

</div>

Closed on October 5, 2024, 6:34am UTC

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