From 10152df63efaa2cc9561499e8e65cbd89b903fbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20G=C3=A2teau?= Date: Tue, 18 Oct 2016 23:26:03 +0200 Subject: [PATCH] Document WIP setup --- doc/dev/sync.md | 40 ++++++++++++++++++++++++++++++++++------ 1 file changed, 34 insertions(+), 6 deletions(-) diff --git a/doc/dev/sync.md b/doc/dev/sync.md index 23b9ce9e..dc86832c 100644 --- a/doc/dev/sync.md +++ b/doc/dev/sync.md @@ -227,12 +227,40 @@ url can be either a `file:` or an `ssh:` url ## Merging an existing DB into an existing repo s_clone ssh://[@]/ - s_dump - s_pull - s_push + s_sync ## Fetching latest changes - s_dump - s_pull - s_push + s_sync + +# WIP setup + +Create a first Yokadi setup + + mkdir ~/sandbox/y1 + isolate-yokadi ~/sandbox/y1 + y> s_init + +Create remote repo + + mkdir ~/sandbox/remote + cd ~/sandbox/remote + git init --bare + +Connect y1 to remote + + cd ~/sandbox/y1/cache/yokadi/db + git remote add origin ~/sandbox/remote + git push -u origin master + + isolate-yokadi ~/sandbox/y1 + y> s_sync + +Create a second Yokadi setup + + mkdir -p ~/sandbox/y2/cache/yokadi + cd ~/sandbox/y2/cache/yokadi + git clone ~/sandbox/remote db + + isolate-yokadi ~/sandbox/y2 + y> _s_import --all