# Read config from database or FIFO

**URL:** <https://forum.rclone.org/t/read-config-from-database-or-fifo/18328>\
**Category:** Feature\
**Created:** [August 6, 2020, 3:57pm UTC](https://forum.rclone.org/t/read-config-from-database-or-fifo/18328 "2020-08-06T15:57:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sntran](https://forum.rclone.org/letter_avatar_proxy/v4/letter/s/9e8a1a/32.png) [@sntran](https://forum.rclone.org/u/sntran)\
**Post date:** [August 6, 2020, 3:57pm UTC](https://forum.rclone.org/t/read-config-from-database-or-fifo/18328/1 "2020-08-06T15:57:36Z")

</div>

Hi there,

I would like to propose a feature for `rclone` to read config from a database instead of flat file or environment variables.

My use case is that I run `rclone` as `rcd`, and add/remove remotes through `rc`, and operations can be done in parallel, so two or more clients can update the config at the same time.

While I can put the operations in a rclone's job queue (or my own), I think it's be easier if rclone can read and/or write config directly from database and let the database handles the concurrency.

`postgresql` is a popular one, so we can start with that. Or even smaller one like `redis`.

This will allow more flexibility.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [August 7, 2020, 10:47am UTC](https://forum.rclone.org/t/read-config-from-database-or-fifo/18328/2 "2020-08-07T10:47:51Z")

</div>

My preference here would for rclone to invoke an external binary for reading and writing the config.

The config options are something like this

- list sections
- list keys within a section
- add key to section
- remove key from section
- remove section

The first thing to do would be to abstract this in the rclone source into a go interface.

It might also be possible to implement this [in a plugin](https://github.com/rclone/rclone/blob/master/CONTRIBUTING.md#writing-a-plugin).

---

<div class="post-metadata">

**Author:** ![sntran](https://forum.rclone.org/letter_avatar_proxy/v4/letter/s/9e8a1a/32.png) [@sntran](https://forum.rclone.org/u/sntran)\
**Post date:** [August 7, 2020, 3:47pm UTC](https://forum.rclone.org/t/read-config-from-database-or-fifo/18328/3 "2020-08-07T15:47:01Z")

</div>

That's a good idea. Somebody can alway provide a binary to talk to DB if needed to.

---

<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 7, 2020, 11:47am UTC](https://forum.rclone.org/t/read-config-from-database-or-fifo/18328/4 "2020-10-07T11:47:04Z")

</div>

Closed on October 7, 2020, 11:47am UTC

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