Hello there!
I sent a part of my files to a special rsync remote git annex move --all --to rsync_remote
Then I rewrote the history of my repository git annex forget
And some days later I try git annex whereis file
which tells me there is no copy left and `git annex info rsync_remote
which outputs no annexed keys.
Now, I know the data is still in the rsync special remote because looking for the files SHA keys, I am able to find their annex objects directories.
The annex objects directories are different between the local git annex and the special rsync remote, supposedly because of my rewrite.
Is there any simple way to repair that? To tell git-annex that the keys are accessible in the special rsync remote? I might be able to recover the data doing something like copying all the rsync directory locally and reinjecting files but it seems over complicated while the keys are valid. Moreover, the computer with the special rsync remote is a distant one whith limited support (I can't install git-annex on it) so it would be very slow to copy all the data through the network.
git annex fsck --fast --from $remote
will make the local annex relearn all the files the remote has without transferring them.Indeed, this command did the trick! I didn't even think about using
fsck
because thegit annex info
was returning 0 references. Thanks a lot!Can you please provide more information about what you did to get into this state? Running
git annex forget
does not cause git-annex to forget about content that is present in a remote.