Auto-Accept on Linux

Hi,

I have a set up of personal cloud (on RasberryPi) and what I want to achieve is a basic backup.

Users share folders with the server with “send only” option.

user1 has a dedicated folder on /mnt/drive1/syncthing-data/user1/MyFiles set up as a default folder for Syncthing. All permissions are set and there is no issue, if I manually accept the shared folder from another device (Android and Linux) in GUI. However, auto-accept will always fail due to “Permission denied to create a folder” error. In my understanding, the reason is that the path is passed to the server as /FolderName, which Linux understands as “/” root. Is there any work around it ?

Thanks.

What is your default folder path set to in Actions → Settings → Edit Folder Defaults?

Looks like nothing is there. I thought, if I set the path in config.xml, that should be it ?

If the GUI shows an empty path, then I’d say it is almost surely empty :sweat_smile:. For clarity, the default path is located in https://docs.syncthing.net/users/config.html#defaults-element. You should probably just set it to the path you want.

1 Like

Is your second name Genius ? If not, change your Birth cert :slight_smile: Thanks a mill !! That was it… Tried to get this solved for the last two days …. I am new to the Syncthing, so thanks for the tip !

No problem, glad I could help :slight_smile:.

Just a quick note, because you mentioned “backup” in the first post, and I assume you understand that synchronisation and backup are two different things. I’d suggest at least enabling some kind of file versioning in Syncthing if you actually want to use it for backup purposes. I personally like staggered versioning.

2 Likes

Thanks again… yes, I do understand those are two different things. I only briefly looked at versioning, but was really relaying on the way the files sync with my server (send, receive, send - receive). Will have a look again….

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