Merge branch 'master' of ssh://git-annex.branchable.com

This commit is contained in:
Joey Hess 2023-12-18 12:37:57 -04:00
commit 0a9c5724c1
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,5 @@
I import my phone apps' backups to a subdirectory via an ADB special remote and `importtree=yes` but every time I run a sync, it tries to copy files to it that are below numcopies; even those outside the relevant sub-directory.
How can I make it so that it never tries to copy any files to it? `exporttree=no`, it will provably never work.
Note that you can't make it want `nothing` because that also prevents import from working.

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="nobodyinperson"
avatar="http://cdn.libravatar.org/avatar/736a41cd4988ede057bae805d000f4f5"
subject="numcopies is no the target"
date="2023-12-17T19:04:41Z"
content="""
Syncing doesn't work towards satisfying `numcopies`, just preferred content. So if you find files to be copied to the phone, then its preferred content matches those files. Maybe try `git annex wanted PHONE 'present or approxlackingcopies=1'` or just `git annex wanted PHONE present`. `nothing` is indeed not a good idea as that will have git-annex wanting to yank everything off the phone.
"""]]

View file

@ -0,0 +1,8 @@
[[!comment format=mdwn
username="Atemu"
avatar="http://cdn.libravatar.org/avatar/86b8c2d893dfdf2146e1bbb8ac4165fb"
subject="comment 2"
date="2023-12-18T12:08:08Z"
content="""
`present` isn't allowed for special remotes with `importtree=yes`.
"""]]

View file

@ -0,0 +1,10 @@
[[!comment format=mdwn
username="oadams"
avatar="http://cdn.libravatar.org/avatar/ac166a5f89f10c4108e5150015e6751b"
subject="comment 9"
date="2023-12-16T21:37:21Z"
content="""
A belated thanks for the follow-up from https://git-annex.branchable.com/forum/Using_git_annex_as_a_library/
Not that its useful for anyone here, but just FWIW after some more playing around I decided to keep things minimal and not depend on git-annex as a library. Although what I'm making naturally pairs well with git-annex it doesn't really require it, so adding the dependency just complicates things.
"""]]