How to make a backup

From Gramps
Revision as of 19:39, 1 November 2008 by Stephanecharette (talk | contribs) (Without media files: switch sentences around)
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

This is equivalent to selecting the following menu options:

Family Trees -> Export -> "GRAMPS package (portable XML)" -> "Entire Database".

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

This is equivalent to selecting the following menu options:

Family Trees -> Export -> "GRAMPS XML database" -> "Entire Database".

The Generate XML page has further information on what can be done with the .gramps files.

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