Difference between revisions of "How to make a backup"

From Gramps
Jump to: navigation, search
m (older version after earlier version. thanks / also add warning on ged com.)
m (language bar above intro)
Line 1: Line 1:
'''How to make a backup''' of your genealogy database.
 
 
 
{{languages|How to make a backup}}
 
{{languages|How to make a backup}}
 +
'''How to make a backup''' of your GRAMPS genealogy database.
  
 
==GRAMPS version 3.x==
 
==GRAMPS version 3.x==

Revision as of 04:51, 20 February 2009

How to make a backup of your GRAMPS genealogy database.

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.

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

GEDCOM export

Gnome-important.png
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