From 245e2201e0b23ed390c8efc56d86e1054eb473b4 Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawnbPKLjBONawBd74MKJZo05juCqdsP1jAU" Date: Sun, 1 Mar 2015 12:30:53 +0000 Subject: [PATCH] --- ...tomatically_use_only_available_remotes.mdwn | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 doc/forum/Assistant:_run_with___34__sync_--fast__34___to_automatically_use_only_available_remotes.mdwn diff --git a/doc/forum/Assistant:_run_with___34__sync_--fast__34___to_automatically_use_only_available_remotes.mdwn b/doc/forum/Assistant:_run_with___34__sync_--fast__34___to_automatically_use_only_available_remotes.mdwn new file mode 100644 index 0000000000..3a6e4a7108 --- /dev/null +++ b/doc/forum/Assistant:_run_with___34__sync_--fast__34___to_automatically_use_only_available_remotes.mdwn @@ -0,0 +1,18 @@ +I have a set of machines, call them A, B, C, I am trying to keep synced. However, all three of them do not always see all the other two (e.g., I might need a vpn tunnel up to see C from A, etc, or C is down, etc). +Everything works as expected (i.e., content gets from one machine to the others) if in the webapp I disable the non-reachable nodes (or, equivalently, I set annex-sync to false in .git/config). But I wonder if there is a way to have git annex not use the non-reachable remotes. Using git-annex sync --fast does not seem to do it (since all remotes I guess have the same annex-cost value). + + +I understand a possible solution involves using + +``` +remote..annex-cost-command +``` + +so that I set the cost of the non-available remote to a large value. But then, I'd need to tell the assistant to always use, by default + + +``` +git-annex sync --fast --content +``` + +and I do not know how to make it use "--fast".