How to make a backup

From Gramps
Revision as of 23:35, 23 April 2008 by Stephanecharette (talk | contribs) (new page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

How to make a backup of your genealogy database.

GRAMPS version 2.2.x

Without media files

The gramps-xml data format will produce a backup of your data excluding any media objects, such as external images and documents. The following example shows how to create a gramps-xml file from a database called "MyFamilyTree.grdb":

gramps -O MyFamilyTree.grdb -o backup.gramps -f gramps-xml

GRAMPS version 3.x

With media files

Assuming your database is called "My Family Tree", and you want the backup to include external media objects such as images and documents, the recommended method to create a backup is to use the gramps-pkg format:

gramps --open="My Family Tree" --output=backup.gpkg --format=gramps-pkg

Without media files

If you don't need to include the media objects in your backup, then you can make use of the gramps-xml format:

gramps --open="My Family Tree" --output=backup.gramps --format=gramps-xml

GEDCOM export

Please note that GEDCOM is not recommended for backups since it is a lossy format. But there are times you may need to export your data to GEDCOM. This command will attempt to export your database as a GEDCOM file:

gramps --open="My Family Tree" --output=export.ged --format=gedcom