Changes

Jump to: navigation, search

How to make a backup

589 bytes added, 19:04, 19 July 2021
m
Note that this document covers backup processes for older versions of Gramps
{{languages|How to make a backup}}
'''How to make a backup''' of your GRAMPS genealogy database[[File:Menubar-FamilyTrees-overview-example-50.png|thumb|right|450px|Menubar - {{man menu|Family Trees > Make Backup..."}}]]
'''TODOHow to make a backup''': check if command line uses default options on export, last used options or ignore options not set on command lineof your Gramps genealogy Family Tree database has become easier and more automated over the years. Because default options by This article describes the process when using older version of Gramps user interface and Exporter enable . <br />Instructions for the {{man version}}.x version of Gramps may be found in the ''"privacy filters[[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==GRAMPS version 3"current backup method">From the menu select {{man menu|Family Trees > Make Backup..3.x=="}}</div>
Simply select "Make The {{man label|Gramps XML Backup..." from the "Family Trees" menu item}} window will appear.
[[ImageFile:MakeBackup-GrampsXMLBackup-50.png|right|thumb|450px|Fig. 1. Backup Options]]
You can either choose to include enter the media path where the backup should be stored manually or notusing the path selector button.
Note that this is just a regular XML export, except that no data is filtered out. You can import these as usual with any exported enter a file name manually or use the automatically generated filename.
You can also define the pattern for the backup filename by setting the either choose to '''Include''' or '''Exclude'paths.quick-backup-filename'' in the ~/.gramps/gramps33/gramps{{man label|Media:}}.ini key file like the following:
[paths] quick-backup-filename='%(filename)s_%(year)d-%(month)02d-%(day)02d{{man note|Note|This is just a regular XML export, except that no data is filtered out.%(extension)s'You can import these as usual with any exported file.}}
You can use any of the following keywords in the pattern: year, month, day, hour, minutes, seconds, filename, extension==Gramps version 3.1.x to 3.2.x ==
==GRAMPS version 3.1.x and later==
===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" --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:
===Without media files===
If you don't need to include the media objects in your backup, then you can make use of the [[GRAMPS Gramps XML|gramps-xml]] format:
gramps -O "My Family Tree" -e backup.gramps
gramps --open="My Family Tree" --export=backup.gramps
This is equivalent to selecting the following menu options:  {{man menu|Family Trees -> Export -> "GRAMPS Gramps XML database" -> "Entire Database".}}
The [[Generate XML]] page has further information on what can be done with the .gramps files.
==GRAMPS Gramps verson 3.0.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:  {{man menu|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 Gramps XML|gramps-xml]] format:
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 Gramps XML database" -> "Entire Database".}}
The [[Generate XML]] page has further information on what can be done with the .gramps files.
==GRAMPS 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 "<code>MyFamilyTree.grdb</code>":
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 [[Gramps_and_GEDCOM|lossy format]].}}
But there 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
 
==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]]
4,602
edits

Navigation menu