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.
numcopies
, just preferred content. So if you find files to be copied to the phone, then its preferred content matches those files. Maybe trygit annex wanted PHONE 'present or approxlackingcopies=1'
or justgit annex wanted PHONE present
.nothing
is indeed not a good idea as that will have git-annex wanting to yank everything off the phone.present
isn't allowed for special remotes withimporttree=yes
.You have probably set remote.phoneremote.annex-tracking-branch to "master". That tells
git-annex sync
to try to export the whole branch to that remote.If you are confining the phone to a subdirectory, you should set that to eg "master:phonedir", then it will only consider files in that directory.
What do you mean by this? If git-annex sync ignored exporttree=no, that would be a bug. I just verified it honors that setting.
The remote's
annex-tracking-branch
includes the sub-directory in my setup.I did not mean that it ignores exporttree and actually exports files, it ignores it insofar that it attempts to copy to the remote but then fails because
exporttree=no
. Tonnes of:It shouldn't even attempt to do that, it will never work.
Some new info: After updating my NAS to NixOS 23.11, it is now also affected while it wasn't before on 23.05.
Good: 10.20230407
Bad: 10.20230926
I reproduced it with the current version and a remote set up with:
Fixed for tomorrow's release.