Hi,
I'm kind of new to git-annex, I've been following it for a while and tried small task, but never used it in a real situation. I'm now trying to sync various computers through a central server and I'm having some problems, so I think I might be doing something wrong.
I have a remote server that I want to use as central server. I use the webapp to configure client 1 to use that server as remote server and using git (so I assume it stores the files and the tree). I then create the client 2 in another computer and doing the exact same steps. Initially everything seams to work, but after a few modifications in the clients weird things start to happen, files only in one client, some files don't get updated, etc.
I guess I'm doing something wrong (maybe I need to clone the repo in client 2 instead of creating a new one?) but I can't figure out how to solve it.
Any tip that could help me?
Thanks!
Your setup is fine as far as it goes. The problem is that a client has no way to know when another client has pushed a change to the centralized repository. It might take quite a while before it decides on its own to go pull changes from there (most often because it has now changed a file, and realizes it needs to sync), and so it won't see files the other client has added right away.
The solution to this is to go to Configuration -> Jabber account, and set both clients up using the same Jabber account. (Or, if these two machines belong to different people, you can pick "pair with a friend" to link one with the other over Jabber.)
Now when one client pushes to the centralized repository, it will immediately send the other a message letting it know something has changed.
The webapp actually pops up an alert when you add that centralized ssh repository, to nudge you to do this:
I'm trying to find ways to make the need to do this more clear...
Hi Joey,
My problem isn't that the repositories don't sync immediately, they are never up at the same time and I understand that the assistant is not constantly checking for changes, so that's not an issue. The problem is that with this setup I'm experiencing data loss (files being completely removed from both repos), it has happened a few times, but I cant seam to reproduce it reliably. I'll keep investigating and get back to you if I have a proper bug.