File: replacing_a_union_mount_with_git-annex.mdwn

package info (click to toggle)
git-annex 10.20230126-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 69,344 kB
  • sloc: haskell: 74,654; javascript: 9,103; sh: 1,304; makefile: 203; perl: 136; ansic: 44
file content (18 lines) | stat: -rw-r--r-- 627 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
I currently use mergerfs, it gives me a simple union mount of a bunch of drives, for example:
/media/*/datahoard/  

( * meaning several stand alone drives )

I wanted to use git-annex instead, so I went to one of those drives:

cd /media/strange/

and created a git annex repo, then if I go to another drive

cd /media/charm/ 

and attempt to clone the repo, it complains because /datahoard/ already exists (and isn't empty)

I want to import all of my single drives into git-annex and have the resulting directory structure be the same as the original union mount, is this possible and how would I go about doing it?

Thanks