# Rclone config: source of truth

**URL:** <https://forum.rclone.org/t/rclone-config-source-of-truth/29663>\
**Category:** Dev Discussions\
**Created:** [March 9, 2022, 4:33pm UTC](https://forum.rclone.org/t/rclone-config-source-of-truth/29663 "2022-03-09T16:33:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![KrLx\_roller](https://forum.rclone.org/letter_avatar_proxy/v4/letter/k/f04885/32.png) [@KrLx\_roller](https://forum.rclone.org/u/KrLx_roller)\
**Post date:** [March 9, 2022, 4:33pm UTC](https://forum.rclone.org/t/rclone-config-source-of-truth/29663/1 "2022-03-09T16:33:16Z")

</div>

Hey everyone,

I have a server with multiple VMs. Each one of them has a different service running on it but what all of them have in common is: they backup some data of the service they are running to an encrypted remote.

The challenge I'm facing is that I end up with multiple `rclone.conf` files, one per VM, meaning that when I change one of them, I have to change the rest of them manually, one by one.

How do you guys keep an `rclone.conf` that is the source of truth, meaning the file where all the configs are, and then sync that one to all the different destinations, in this case, my VMs?

Also, extra bonus question. Do you keep only one crypt remote with different different directories in it (1) or you have a different crypt per directory (2)? What's your preferred and why?

(1)

```auto
remote:
config remote:

encrypted_remote:
remote = remote:

usage:
rclone sync local encrypted_remote:VM1
rclone sync local encrypted_remote:VM2

```

(2)

```auto
remote:
config remote:

encrypted_remote_VM1:
remote = remote:VM1
pass = pass1
encrypted_remote_VM2:
remote = remote:VM2
pass = pass2

usage:
rclone sync local encrypted_remote_VM1:
rclone sync local encrypted_remote_VM2:

```

---

<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:** [March 9, 2022, 5:40pm UTC](https://forum.rclone.org/t/rclone-config-source-of-truth/29663/2 "2022-03-09T17:40:02Z")

</div>

hi,  
you can create a directory on the host, and share it with each vm.  
store all the config files there.

> [@KrLx\_roller](#):
>
> extra bonus question

that is up to you.

---

<div class="post-metadata">

**Author:** ![KrLx\_roller](https://forum.rclone.org/letter_avatar_proxy/v4/letter/k/f04885/32.png) [@KrLx\_roller](https://forum.rclone.org/u/KrLx_roller)\
**Post date:** [March 9, 2022, 8:51pm UTC](https://forum.rclone.org/t/rclone-config-source-of-truth/29663/3 "2022-03-09T20:51:22Z")

</div>

Thanks for your reply!

Yup, that was an idea, but then we factor in I also use rclone in my laptop which is not connected to this host... And then another computer... 🙂

In regards to the bonus extra question, I've been using (2) as I thought it's a way to increase security. But if somebody manages to decrypt the content of one remote, I don't think decrypting the content of the other remotes will be difficult anymore. Just a nuisance, I guess. Both passwords and salt contain more than 50 characters, but technology advances fast.

---

<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:** [March 9, 2022, 9:02pm UTC](https://forum.rclone.org/t/rclone-config-source-of-truth/29663/4 "2022-03-09T21:02:38Z")

</div>

> [@KrLx\_roller](#):
>
> And then another computer...

perhaps try `--magic` 😉  
if you really want to do this, setup a vpn network.  
i use tailscale point to point vpn, might fit your use-case

> [@KrLx\_roller](#):
>
> I've been using (2)

that is what i would do.  
in the end of times, only the paranoid will be left and we will inherit the earth.

---

<div class="post-metadata">

**Author:** ![KrLx\_roller](https://forum.rclone.org/letter_avatar_proxy/v4/letter/k/f04885/32.png) [@KrLx\_roller](https://forum.rclone.org/u/KrLx_roller)\
**Post date:** [March 9, 2022, 9:09pm UTC](https://forum.rclone.org/t/rclone-config-source-of-truth/29663/5 "2022-03-09T21:09:50Z")

</div>

> [@asdffdsa](#):
>
> perhaps try `--magic` 😉  
> if you really want to do this, setup a vpn network

I could not find that flag on rclone docs... 😛 Yeah I already got VPN, not sure If I'm being too paranoid...

> [@asdffdsa](#):
>
> in the end of times, only the paranoid will be left and we will inherit the earth.

But maybe being too paranoid brings something good, especially taking into account the situation we are in...

Thanks for your time! Have a great day sir 🙂

---

<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:** [May 9, 2022, 5:10pm UTC](https://forum.rclone.org/t/rclone-config-source-of-truth/29663/6 "2022-05-09T17:10:28Z")

</div>

Closed on May 9, 2022, 5:10pm UTC

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