removed
This commit is contained in:
parent
27531ce81a
commit
12169b7fda
1 changed files with 0 additions and 72 deletions
|
@ -1,72 +0,0 @@
|
|||
I seem to have lost the contents of some files after running `git annex uninit`, and I'm not sure where I went wrong.
|
||||
|
||||
Here is what I think I did, in order:
|
||||
|
||||
- Create annex - `git init && git annex init`.
|
||||
|
||||
- Set thin mode - `git config annex.thin true && git annex fix`.
|
||||
|
||||
- Set largefiles size - `git config annex.largefiles anything`.
|
||||
|
||||
- Set addunlocked - `git config annex.addunlocked true`.
|
||||
|
||||
- Added all files - `git annex add` (~135,000 files, ~350GiB).
|
||||
|
||||
- Cloned the repo to a couple of other locations (one bare git repo, and one NTFS hard drive), and added them as remotes of one another.
|
||||
|
||||
- Created adjusted branches (hidemissing and unlocked).
|
||||
|
||||
- Did git-annexy things between the repos, ie. `sync`, `get`, `move`, `drop`, `whereis` (these all worked fine).
|
||||
|
||||
Then I ran `git annex uninit` and it seemed to start OK (there was output that looked like it was moving files out of the annex), so I left it running overnight. This morning it was still running, but every file it seemed to be processing was displaying errors like this:
|
||||
|
||||
```
|
||||
error: path/to/file1.mp3: cannot add to the index - missing --add option?
|
||||
fatal: Unable to process path path/to/file1.mp3
|
||||
(recording state in git...)
|
||||
error: path/to/file2.mp3: cannot add to the index - missing --add option?
|
||||
fatal: Unable to process path path/to/file2.mp3
|
||||
(recording state in git...)
|
||||
```
|
||||
|
||||
I stopped it with Ctrl-C, and ran `git annex uninit` again. The command ran for a few seconds, and then finished with this output:
|
||||
|
||||
```
|
||||
Deleted branch git-annex (was f08b3b7c92).
|
||||
```
|
||||
|
||||
Looking at the contents of one of these files, it looks like the content should still be in the annex?
|
||||
|
||||
```
|
||||
$ cat "path/to/file1.mp3"
|
||||
/annex/objects/SHA256E-s8540947--baaf8e92ad996686bb4e507954ee014c8f43b9e4c5f19d524b6305f2a967d255.mp3
|
||||
```
|
||||
|
||||
But the annex is gone!?
|
||||
|
||||
```
|
||||
$ ls .git/annex/
|
||||
ls: cannot access '.git/annex/': No such file or directory
|
||||
```
|
||||
|
||||
So I'm wondering two things:
|
||||
|
||||
1. Is there any way to get the contents of these files back (without using the cloned repos or backups in other locations)?
|
||||
|
||||
2. Did the contents of these files get removed from the annex without the original files being restored? If so, why?
|
||||
|
||||
--
|
||||
|
||||
git-annex details:
|
||||
|
||||
```
|
||||
$ git-annex version
|
||||
git-annex version: 8.20200810
|
||||
build flags: Assistant Webapp Pairing S3 WebDAV Inotify DBus DesktopNotify TorrentParser MagicMime Feeds Testsuite
|
||||
dependency versions: aws-0.22 bloomfilter-2.0.1.0 cryptonite-0.27 DAV-1.3.4 feed-1.3.0.1 ghc-8.8.4 http-client-0.6.4.1 persistent-sqlite-2.10.6.2 torrent-10000.1.1 uuid-1.3.13 yesod-1.6.1.0
|
||||
key/value backends: SHA256E SHA256 SHA512E SHA512 SHA224E SHA224 SHA384E SHA384 SHA3_256E SHA3_256 SHA3_512E SHA3_512 SHA3_224E SHA3_224 SHA3_384E SHA3_384 SKEIN256E SKEIN256 SKEIN512E SKEIN512 BLAKE2B256E BLAKE2B256 BLAKE2B512E BLAKE2B512 BLAKE2B160E BLAKE2B160 BLAKE2B224E BLAKE2B224 BLAKE2B384E BLAKE2B384 BLAKE2BP512E BLAKE2BP512 BLAKE2S256E BLAKE2S256 BLAKE2S160E BLAKE2S160 BLAKE2S224E BLAKE2S224 BLAKE2SP256E BLAKE2SP256 BLAKE2SP224E BLAKE2SP224 SHA1E SHA1 MD5E MD5 WORM URL X*
|
||||
remote types: git gcrypt p2p S3 bup directory rsync web bittorrent webdav adb tahoe glacier ddar git-lfs hook external
|
||||
operating system: linux x86_64
|
||||
supported repository versions: 8
|
||||
upgrade supported from repository versions: 0 1 2 3 4 5 6 7
|
||||
```
|
Loading…
Reference in a new issue