comment
authorJoey Hess <joeyh@joeyh.name>
Mon, 11 Oct 2021 16:22:38 +0000 (12:22 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 11 Oct 2021 16:22:38 +0000 (12:22 -0400)
doc/forum/Managing_a_large_number_of_files_archived_on_many_pieces_of_read-only_medium___40__E.G._DVDs__41__/comment_15_9ddd6278ea00c5594083347b5b9b8405._comment [new file with mode: 0644]

diff --git a/doc/forum/Managing_a_large_number_of_files_archived_on_many_pieces_of_read-only_medium___40__E.G._DVDs__41__/comment_15_9ddd6278ea00c5594083347b5b9b8405._comment b/doc/forum/Managing_a_large_number_of_files_archived_on_many_pieces_of_read-only_medium___40__E.G._DVDs__41__/comment_15_9ddd6278ea00c5594083347b5b9b8405._comment
new file mode 100644 (file)
index 0000000..1d46c51
--- /dev/null
@@ -0,0 +1,24 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 15"""
+ date="2021-10-11T16:07:38Z"
+ content="""
+git-annex now has the ability to import a tree of files from a
+directory special remote, which results in a remote tracking branch, the
+same as you'd have after fetching a git remote.
+
+       git-annex initremote dvd type=directory directory=/path/to/DVD encryption=none importtree=yes
+       git-annex import master --from dvd --no-content
+
+The --no-content option avoids copying files to the local disk, although
+their content still will have to be read to hash them. If you want to
+copy the files from the disk at the same time, omit that option.
+
+After that, you can use the dvd/master branch it created in whatever way
+you desire. Also if you want the discs files to end up in a subdirectory,
+that can be specified when you import, eg "master:dvd" will put the files
+into a dvd/ subdirectory.
+
+Using this with multiple discs would probably work best if there was a way
+to mount each DVD to its own unique location.
+"""]]