aboutsummaryrefslogtreecommitdiff
path: root/doc/tips/what_to_do_when_you_lose_a_repository.mdwn
blob: 363eeea4e03eea5ec979658f3644d0febbe3d676 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 semitrust usbdrive