Genealogy & Family History Stack Exchange is a question and answer site for expert genealogists and people interested in genealogy or family history. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Gramps creates a hidden directory in your home directory called .gramps containing all the user-specific data. There is a directory in that directory called grampsdb (eg /Users/yourname/.gramps/grampsdb) that contains all your data stored in individual directories for each family tree. The directory names are not obvious matches to the family tree. How do I tell which directory goes with which family tree?

share|improve this question
up vote 6 down vote accepted

In each directory are many files ending in *.db that are the database tables. There is also a file called name.txt that contains the name of the family tree as it is known thru the gramps gui (eg "Family Tree 1").

If you have many directories, then from grampsdb directory on Linux or Unix-based systems (eg MacOS):

less */name.txt

and then ":n" thru each file until you find the one you are looking for.

share|improve this answer
If you do head ~/.gramps/grampsdb/*/name.txt, it will display the filename followed by the name -- that way you don't have to :n in less. – bstpierre Oct 22 '12 at 11:42
Should questions about software include the details of the OS being run? This Linux solution could confuse some Windows users. – Fortiter Oct 22 '12 at 12:52

You can let Gramps tell you by using a command-line flag:

% gramps -l
/home/dblank/.gramps/grampsdb/50f2e092 with name "data.gramps"
/home/dblank/.gramps/grampsdb/50f49851 with name "example.gramps"

% gramps -L
Family Tree "data.gramps":
   DB version: 16
   Last accessed: 01/16/2013 08:40:42 AM
   Locked?: no
   Number of people: 41
   Path: /home/dblank/.gramps/grampsdb/50f2e092
Family Tree "example.gramps":
   DB version: 16
   Last accessed: 01/14/2013 06:54:53 PM
   Locked?: no
   Number of people: 2090
   Path: /home/dblank/.gramps/grampsdb/50f49851
share|improve this answer

If you are using Gramps on Windows then search for name.txt through the File Explorer to generate a list of files and then preview the contents of each file found within a Gramps folder (typically named with 8 apparently random alphanumeric characters).

If you don't like where Gramps chooses to put the data (on Windows) you can specify another location through the menu sequence Edit | Preferences | Family Tree.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.