From 2a20bd57ac8faf076e04235e33a9336298c42483 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 18 Nov 2015 13:32:09 -0400 Subject: [PATCH] response --- ..._9a943bcfe7679e469acc6fa1f78324b7._comment | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 doc/forum/Desktop_as_transfer_repository/comment_2_9a943bcfe7679e469acc6fa1f78324b7._comment diff --git a/doc/forum/Desktop_as_transfer_repository/comment_2_9a943bcfe7679e469acc6fa1f78324b7._comment b/doc/forum/Desktop_as_transfer_repository/comment_2_9a943bcfe7679e469acc6fa1f78324b7._comment new file mode 100644 index 0000000000..93e0778e3e --- /dev/null +++ b/doc/forum/Desktop_as_transfer_repository/comment_2_9a943bcfe7679e469acc6fa1f78324b7._comment @@ -0,0 +1,35 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 2""" + date="2015-11-18T17:15:34Z" + content=""" +I suspect that if you run `git annex drop --auto` on desktop, it won't drop +any files. This is because it's configured as a transfer repository, and +transfer repositories wait for files to reach all client repositories +before wanting to drop them. + +Since you have no client repositories, your transfer repository will prefer +to hang onto files. In fact, transfer repositories assume there will +eventually be at least 2 client repositories (otherwise what good would a +transfer repository between clients be?) and so hang onto files that are +not in 2 clients, even when less than 2 clients exist yet. That is generally +useful behavior when setting things up in eg the webapp. + +So, the standard preferred content expression for a transfer repository +won't work in this configuration. Let's instead express the things you want +as a custom setting. + +> If I add a new url on desktop the content should be moved to raspberrypi and backup. +> +> So I don't want to have the content of the files on the desktop. All +> content should be in backup. +> +> If content is not in raspberrypi I want to get it from backup via desktop. + + git annex wanted desktop "not (inallgroup=backup and inallgroup=client)" + +That assumes you put the raspberrypi in the client group, which is what I think it +basically is. Then desktop will want to get and hold any files that +have not yet reached all backup and client repositories, at which point +desktop will drop files. +"""]]