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 index 0000000000..1d46c5150c --- /dev/null +++ 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 @@ -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. +"""]]