Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • I tried to update, simplify and clarify my question. Maybe a version control system could be suitable, but in that case it would need a unique place to store data, isn't it? Commented Feb 23, 2017 at 11:26
  • @BowPark not really. Git, for example, stores a copy of the repository's state at both ends. And, if you upload to github, remotely as well. If either directory is deleted, the contents can be retrieved from the the other. Commented Feb 23, 2017 at 11:31
  • @terdon and the disadvantage is only that it is not real time? Commented Feb 23, 2017 at 11:34
  • @BowPark afaik, yes. Although you can make it pretty close if you use something like inotify to monitor the directory for changes and push any changes as soon as they are made. You might have issues with conflict resolution, but that will depend on your usage. It would probably be worth asking a new question about how to do this using git, actually. I don't have a lot of experience with it, so I may well be missing something obvious. Commented Feb 23, 2017 at 11:35
  • @terdon Starting from two exactly equal directories, maybe conflicts are not a big issue, because only one workstation is used at a time. I agree with opening a new question if needed. Thank you! Commented Feb 23, 2017 at 11:40