File: Wishlist__58___automatic_reinject.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 (14 lines) | stat: -rw-r--r-- 791 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
I think it would be useful to supplement the `reinject` command with an automatic
mode which calculates the checksum of the source file and injects the file if it
is known to the repository (without the need to provide a destination filename).
In addition, this could be done recursively if the user provides a directory to
inject. All this can probably be done already with some plumbing, but a simple
`reinject --auto` (or `scour`, or `scavenge`, if you like) would be a nice addition.
Of course this would only work for the checksum backends.

Example use cases would be:

* Recovering data from lost+found easily
* Making use of old (pre-git-annex) archival volumes with useful files
  scattered among non-useful files
* Sneaker-netting files between disconnected git-annex repositories