r/gramps • • Feb 17 '19

Solved database backend

I started digitalizing our family tree data and some family members were excited by that idea. Now it would be great if all of us could work on a common state rather than just me working on a local database. Is it possible to use a database management system such as postgres or mysql as a backend for gramps and if so, is there any tutorial on how to set this up? Syncing the local files via a service like Dropbox is no option! Thanks in advance!

P.S.: I have a CS background and don't mind rather technical answers ;)

2 Upvotes

4 comments sorted by

3

u/sam-m888 Gramps 6.0.8 (Linux/Win) Feb 17 '19 edited Feb 17 '19

The Sqlite database backend is the only builtin one recommended for testing use as mentioned here it supports single or multi-users on a single operating system

Provided instructions for those wanting to test with SQLite https://sourceforge.net/p/gramps/mailman/message/36516462/

The general idea of the new SQLite backend is that if it has enough testing then it will become the default backend for the future Gramps 5.1.x release.

Any issues please raise an issue on the Gramps bug tracker.

postgres or mysql

Postgres backend is available as an addon but is not as well tested so only for those of you prepared to test and report back issues. Can handle local or remote, single or multi-user.

mysql backend was created as an addon but never finished or released.

MongoDB - was released as an addon then withdrawn by the developer

More reading: https://www.gramps-project.org/wiki/index.php/DB-API_Database_Backend

3

u/luoc Feb 19 '19

Okay, to summarize that: gramps supports various relational databases as backend but abuses them as key-value stores rather than letting a dbms schedule transactions. That results in a multi-user-but-only-one-at-a-time architecture which has almost no advantage over syncing the database directory via e.g. dropbox.

For now that means gramps cannot be mapped to our case of having a central repository and multiple gramps instances working on it at the same time. Fortunately the developers seem to be aware of that use case and may add this feature some time. Also the gramps-online project looks quite promising although it's in a very early stage.

Anyway, thanks for your quick answer and that overview ;)

2

u/slayerlob Feb 17 '19

Sorry I will not be too helpful here but wanted to let you know what I know. I have been told you can host the database on cloud. However there is a slight issue with multiple access. Actually you cannot work on the database at the same time. There is a new repo started on github called "gramps-onlone" which seem svery promising and possibly exactly what you are looking for. I am looking for the same too.

Currently you can have store the DB on the cloud and my plan was to get an excel sheet filled by all the help from family. Somehow magically import this spreadsheet.

Again only info and still searching for some help with this. Format of the spreadsheet?saving the DB on the cloud...and so on.

2

u/sam-m888 Gramps 6.0.8 (Linux/Win) Feb 17 '19

Somehow magically import this spreadsheet.

Have a read of Gramps:Manage Family Trees: CSV Import and Export for examples and supported fields fo import.