]> dgit.raspbian.org Git - git-annex.git/commitdiff
idea
authorJoey Hess <joeyh@joeyh.name>
Fri, 4 Dec 2020 04:00:40 +0000 (00:00 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 4 Dec 2020 04:00:40 +0000 (00:00 -0400)
doc/todo/borg_special_remote/comment_7_fc336d8da2a449cb7c74cc2e48a43ba6._comment [new file with mode: 0644]

diff --git a/doc/todo/borg_special_remote/comment_7_fc336d8da2a449cb7c74cc2e48a43ba6._comment b/doc/todo/borg_special_remote/comment_7_fc336d8da2a449cb7c74cc2e48a43ba6._comment
new file mode 100644 (file)
index 0000000..7e24f83
--- /dev/null
@@ -0,0 +1,22 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 7"""
+ date="2020-12-04T01:17:01Z"
+ content="""
+The Remote interface recently got importKey, which gets us
+unexpectedly a *lot* closer to making `git-annex import --from borg` a reality!
+
+The Remote would need a listImportableContents that finds all annex objects
+in all (new) snapshots, and generates a ContentIdentifier that is just the
+snapshot plus object path. Then importKey can simply generate a Key from
+that ContentIdentifier without doing any more work. (And, so getting an
+object from the remote will also work, because it will have the
+ContentIdentifier recorded and so will know what snapshot and path in the
+borg repo.) 
+
+Seems that all that would be needed is a way to skip generating the git tree
+for the imported files, since it would be useless.
+And a way to force --no-content, since importing from a borg backup should not
+get all the backed up annex objects. It may be best to make this a new
+command, that just happens to use the ImportActions interface.
+"""]]