Added a comment
authorkyle <kyle@web>
Tue, 17 Mar 2020 02:35:49 +0000 (02:35 +0000)
committeradmin <admin@branchable.com>
Tue, 17 Mar 2020 02:35:49 +0000 (02:35 +0000)
doc/forum/Disconnected_Archive_and_Backups/comment_4_b3d39d1b85489ce4059a72b9a912624c._comment [new file with mode: 0644]

diff --git a/doc/forum/Disconnected_Archive_and_Backups/comment_4_b3d39d1b85489ce4059a72b9a912624c._comment b/doc/forum/Disconnected_Archive_and_Backups/comment_4_b3d39d1b85489ce4059a72b9a912624c._comment
new file mode 100644 (file)
index 0000000..bec682f
--- /dev/null
@@ -0,0 +1,36 @@
+[[!comment format=mdwn
+ username="kyle"
+ avatar="http://cdn.libravatar.org/avatar/7d6e85cde1422ad60607c87fa87c63f3"
+ subject="comment 4"
+ date="2020-03-17T02:35:49Z"
+ content="""
+Sorry, it should have occurred to me that \"archive\", \"client\", and
+\"backup\" in your initial post were referring to git-annex's standard
+groups.  Indeed then, as you say, the desktop won't get the content
+from the archive because, as a client, it uses this content
+expression:
+
+```
+(include=* and ((exclude=*/archive/* and exclude=archive/*) or (not (copies=archive:1 or copies=smallarchive:1)))) or approxlackingcopies=1
+```
+
+> Perhaps I can make a rule set myself that does what I want
+
+I think that, for the desktop repo, extending the expression above
+with something like
+
+```
+(not (copies=backup:1 or copies=incrementalbackup:1))
+```
+
+would do what you're after.  That should make the desktop grab the
+file from the usb if it hasn't reached the NAS.
+
+Here's the complete configuration that I think should be needed:
+
+```
+git annex wanted . groupwanted
+git annex groupwanted client '(include=* and ((exclude=*/archive/* and exclude=archive/*) or (not (copies=archive:1 or copies=smallarchive:1)) or (not (copies=backup:1 or copies=incrementalbackup:1)))) or approxlackingcopies=1'
+```
+
+"""]]