hi.
first i have to say... im a huge fan and running some git-annex repos for all sort of things. i trust git-annex my whole photo archiv and my tax documents
i try to get my head around some scenarios i couldnt get working. i want a nextcloud/dropbox style sink between two boxes. i have set up my repo manually on my laptop some time ago. just like git init && git annex init
. i cloned that on my server and ran git annex init
; added the server repo as remote on my laptop. so git annex sync --content
works on both ends. what i want is to run git annex assistant on both boxes... server and laptop. i add a new file on laptop and git annex assistant syncs it to my server. that works fine. but i thought that the git annex assistant notices it and does a git annex sync too, to pull changes in. i only get it working in one way. what am i doing wrong?
in the screencast for the assistant it looks like it should work that way... with the only difference that it got setup within the webapp itself and a bare transfer repository on a server. is this transfer group server needed for make it working this way?
i also found this in the tips. does i have to set up like that?
Aaah OK. You don't necessarily need to add the repositories from assistant. If you create them from the command-line you need to manually add the full path to any repos you want the assistant to watch to a file located at
~/.config/git-annex/autostart
.So on your server you want that
~/.config/git-annex/autostart
file to contain the full path to the repo that is located on the server and for the~/.config/git-annex/autostart
file on your laptop you want it to contain the full path to your laptop repo. You also need to start the assistant on both your laptop and your server by runninggit-annex-assistant --autostart
on your laptop and on your server. You'll also want to verify that this autostart command is happening automatically at boot (whichgit-annex
might have done for you).git annex version
are you on latest git-annex? As well can you post any information you are willing to share from.git/config
on each of the repos in question. Also I would recommend creating two new repos from the web interface of git annex assistant (locally) and see if they behave as expected.git annex sync --content
? Or did you mean you are just getting the filenames in sync without the content?to make my problems clear, i have reacorded my screen with a example
https://youtu.be/3Ows2gF8gEM
Thank you for recording the screencast. Yes, you did all of the steps correctly, that should have worked. Could you please post the output of:
git annex version
.git/config
from each of the repos created in the screencast.git/annex/daemon.log
from each of the repos created in the screencastSo we can get some more insight into what the issue might be on your machine. Thank you for your patience and detail.
then here to git configs
and from the second repo
and the worst thing is... the daemon.logs are empty.
ANNEX_1
andANNEX_2
listed in~/.config/git-annex/autostart
? What happens if you now rungit-annex assistant --autostart
does it list bothANNEX_1
andANNEX_2
? Does everything work OK then?