I want to be able to add folders to by synced using the command line (Linux) rather than the web GUI. I would prefer to do it in a bash shell in a terminal if possible.
Specifically, what I want to do by command line is accomplish the same action that the “+ Add Folder” button at the bottom of the left side of the web GUI performs.
(Can I also edit a folder by command line? If not, the option in this case is to edit the config file directly.)
That’s what I tried and I haven’t been able to get it to work. But from your answer, I see that it should work, so I’ll keep trying. I will report back.
I edit config.xml on a regular basis, so yes, adding folders this way is definitely possible, as long as you know how to modify the XML file programmatically.
so you guys are approaching this via direct config file creation/editing? I just tested the REST API method - seems a little more “proper” to me and it works very well, so I am going with this route instead.
That interests me a lot, and I’m hoping to find time to explore the Ansible approach to managing Syncthing clients soon. I look forward to reading anything you can share on that topic.