4,216
edits
Changes
File:MakeBackup-GrampsXML-Backup-52.png
{{languages|How to make a backup}}
[[File:Menubar-FamilyTrees-overview-example-50.png|thumb|right|450px|Menubar - {{man menu|"Family Trees > Make Backup..."}}]]
'''How to make a backup''' of your Gramps genealogy Family Tree databasehas become easier and more automated over the years. This article describes the process when using older version of Gramps. <br />Instructions for the {{man version}}.x version of Gramps may be found in the ''"[[Gramps_{{man version}}_Wiki_Manual_-_Manage_Family_Trees#Backing_up_a_Family_Tree|Backing up a Family Tree]]"'' section of the manual.
==Gramps version 3.3 and later==
<div id="current backup method">From the menu simply select {{man menu|Family Trees > Make Backup..."}}</div>
The '''{{man label|Gramps XML Backup''' }} window will appear.
[[ImageFile:MakeBackup-GrampsXMLBackupGrampsXML-40Backup-52.png|right|thumb|450px|Fig. 1. Backup Options]]
You can enter the path where the backup should be stored. You can enter a file namemanually or using the path selector button.
You can either choose to include enter a file name manually or use the media or notautomatically generated file name.
===With media files===
gramps --open="My Family Tree" --export=backup.gpkg
This is equivalent to selecting the following menu options: {{man menu|Family Trees -> Export -> "GRAMPS package (portable XML)" -> "Entire Database".}}
In case of problems, you can add the format of the output to the above command. For a gramps package:
gramps --open="My Family Tree" --export=backup.gramps
This is equivalent to selecting the following menu options: {{man menu|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 --open="My Family Tree" --output=backup.gpkg --format=gramps-pkg
This is equivalent to selecting the following menu options: {{man menu|Family Trees -> Export -> "GRAMPS package (portable XML)" -> "Entire Database".}}
===Without media files===
gramps --open="My Family Tree" --output=backup.gramps --format=gramps-xml
This is equivalent to selecting the following menu options: {{man menu|Family Trees -> Export -> "Gramps XML database" -> "Entire Database".}}
The [[Generate XML]] page has further information on what can be done with the .gramps files.
===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 "<code>MyFamilyTree.grdb</code>":
gramps -O MyFamilyTree.grdb -o backup.gramps -f gramps-xml
{{man warn|GEDCOM export|Please note that GEDCOM is not recommended for backups since it is a [[Gramps_and_GEDCOM|lossy format]].}}
gramps --open="My Family Tree" --output=export.ged --format=gedcom
==See also==
* [[Template:Backup_Omissions|Backup omissions]] - what is not included during a backup
* [[How to restore a backup]]
* [[Recover corrupted family tree]]
* [[Gramps_{{man version}}_Wiki_Manual_-_Manage_Family_Trees#Backing_up_a_Family_Tree]]
{{grampsmanualcopyright}}
[[Category:How do I...|Backup]]