So you lost a thumb drive containing a git-annex repository. Or a hard drive died or some other misfortune has befallen your data.

Unless you configured backups, git-annex can't get your data back. But it can help you deal with the loss.

Go somewhere that knows about the lost repository, and mark it as dead:

git annex dead usbdrive

This retains the location tracking information for the repository, but avoids trying to access it, or list it as a location where files are present.

If you later found the drive, you could let git-annex know it's found like so:

git annex semitrusted usbdrive

Is there a way to have git-annex completely ignore a repository? I see that the dead command adds the uuid of the repository to trust.log but does not change uuid.log. Is it enough to remove the corresponding line in uuid.log and trust.log?

Comment by http://dlaxalde.myopenid.com/ Thu May 31 14:36:33 2012
dead is the best we can do. The automatic merging used on the git-annex branch tends to re-add lines that are deleted in one repo when merging with another that still has them.
Comment by http://joeyh.name/ Thu May 31 17:01:37 2012
Comments on this page are closed.