Difference between revisions of "How to make a backup"

From Gramps
Jump to: navigation, search
m (Without media files: switch sentences around)
m (older version after earlier version. thanks / also add warning on ged com.)
Line 2: Line 2:
  
 
{{languages|How to make a backup}}
 
{{languages|How to make a backup}}
 
 
==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==
 
==GRAMPS version 3.x==
Line 33: Line 25:
 
The [[Generate XML]] page has further information on what can be done with the .gramps files.
 
The [[Generate XML]] page has further information on what can be done with the .gramps files.
  
===GEDCOM export===
+
==GRAMPS version 2.2.x==
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:
+
 
 +
===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==
 +
{{man warn|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
 
  gramps --open="My Family Tree" --output=export.ged --format=gedcom
  
 
[[Category:How do I...|Backup]]
 
[[Category:How do I...|Backup]]

Revision as of 04:50, 20 February 2009

How to make a backup of your 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