{"action":"created","issue":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/1972","labels_url":"https://api.github.com/repos/syncthing/syncthing/issues/1972/labels{/name}","comments_url":"https://api.github.com/repos/syncthing/syncthing/issues/1972/comments","events_url":"https://api.github.com/repos/syncthing/syncthing/issues/1972/events","html_url":"https://github.com/syncthing/syncthing/issues/1972","id":89332457,"number":1972,"title":"Automatic overwrite changes","user":{"login":"Black-LotusCY","id":12686187,"avatar_url":"https://avatars.githubusercontent.com/u/12686187?v=3","gravatar_id":"","url":"https://api.github.com/users/Black-LotusCY","html_url":"https://github.com/Black-LotusCY","followers_url":"https://api.github.com/users/Black-LotusCY/followers","following_url":"https://api.github.com/users/Black-LotusCY/following{/other_user}","gists_url":"https://api.github.com/users/Black-LotusCY/gists{/gist_id}","starred_url":"https://api.github.com/users/Black-LotusCY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Black-LotusCY/subscriptions","organizations_url":"https://api.github.com/users/Black-LotusCY/orgs","repos_url":"https://api.github.com/users/Black-LotusCY/repos","events_url":"https://api.github.com/users/Black-LotusCY/events{/privacy}","received_events_url":"https://api.github.com/users/Black-LotusCY/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-18T16:08:24Z","updated_at":"2015-06-20T12:17:26Z","closed_at":null,"body":"Scenario is 1 \"Server\", 2 \"clients\".\r\nIf files on clients are deleted/changes/addet, these changes have to be overwritten by \"server\" and by hand.\r\nThere should be an option, so server does not have to \"override changes\" every time.\r\nMade 2 solutions in my screenshot, left top is original.\r\n![bug2](https://cloud.githubusercontent.com/assets/12686187/8235813/778a3b6e-15e4-11e5-879a-e781ed893a82.png)\r\n\r\nThe dirty solution would be to trigger this by chronjob over API, but there should be an direct option in my opinion.\r\nDidn't find anything about this in your GIT-archive, sorry if duplicated."},"comment":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/comments/113756587","html_url":"https://github.com/syncthing/syncthing/issues/1972#issuecomment-113756587","issue_url":"https://api.github.com/repos/syncthing/syncthing/issues/1972","id":113756587,"user":{"login":"Zillode","id":14169,"avatar_url":"https://avatars.githubusercontent.com/u/14169?v=3","gravatar_id":"","url":"https://api.github.com/users/Zillode","html_url":"https://github.com/Zillode","followers_url":"https://api.github.com/users/Zillode/followers","following_url":"https://api.github.com/users/Zillode/following{/other_user}","gists_url":"https://api.github.com/users/Zillode/gists{/gist_id}","starred_url":"https://api.github.com/users/Zillode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zillode/subscriptions","organizations_url":"https://api.github.com/users/Zillode/orgs","repos_url":"https://api.github.com/users/Zillode/repos","events_url":"https://api.github.com/users/Zillode/events{/privacy}","received_events_url":"https://api.github.com/users/Zillode/received_events","type":"User","site_admin":false},"created_at":"2015-06-20T12:17:26Z","updated_at":"2015-06-20T12:17:26Z","body":">  I may look into the code, if this is easy to implement but since i just started to experience both syncthing and github, i may not be the best to do this :/\r\n\r\nI think this is a good use case to get started:)\r\n\r\nHave a look at [rofolder.go](https://github.com/syncthing/syncthing/blob/b8b5c5ff348c3328d1295a2e1d719f9a97c50ad6/internal/model/rofolder.go#L110). This is a master folder receiving index data from a remote device. Currently this is being ignored, hence the read-only behaviour. If you would bump the local version number of the files that were changed, I think the changes will be propagated back to the remote device and thus implement the behaviour you envision. (See [rwfolder.go](https://github.com/syncthing/syncthing/blob/b8b5c5ff348c3328d1295a2e1d719f9a97c50ad6/internal/model/rwfolder.go#L309) and maybe [here](https://github.com/syncthing/syncthing/blob/b8b5c5ff348c3328d1295a2e1d719f9a97c50ad6/internal/model/model.go#L1124))"}}