Difference between revisions of "How to make a backup"
(→Gramps version 3.1.x to 3.2.x) |
|||
(14 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
{{languages|How to make a backup}} | {{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 database. | '''How to make a backup''' of your Gramps genealogy Family Tree database. | ||
Line 7: | Line 6: | ||
==Gramps version 3.3 and later== | ==Gramps version 3.3 and later== | ||
− | From the menu | + | <div id="current backup method">From the menu select {{man menu|Family Trees > Make Backup..."}}</div> |
The {{man label|Gramps XML Backup}} window will appear. | The {{man label|Gramps XML Backup}} window will appear. | ||
− | [[ | + | [[File:MakeBackup-GrampsXMLBackup-50.png|right|thumb|450px|Fig. 1. Backup Options]] |
+ | |||
+ | You can enter the path where the backup should be stored manually or using the path selector button. | ||
− | You can enter the | + | You can enter a file name manually or use the automatically generated file name. |
− | You can either choose to | + | You can either choose to '''Include''' or '''Exclude''' the {{man label|Media:}}. |
{{man note|Note|This is just a regular XML export, except that no data is filtered out. You can import these as usual with any exported file.}} | {{man note|Note|This is just a regular XML export, except that no data is filtered out. You can import these as usual with any exported file.}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Gramps version 3.1.x to 3.2.x == | ==Gramps version 3.1.x to 3.2.x == | ||
Line 69: | Line 47: | ||
gramps --open="My Family Tree" --export=backup.gramps | gramps --open="My Family Tree" --export=backup.gramps | ||
− | This is equivalent to selecting the following menu options | + | 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. | The [[Generate XML]] page has further information on what can be done with the .gramps files. | ||
Line 81: | Line 57: | ||
gramps --open="My Family Tree" --output=backup.gpkg --format=gramps-pkg | gramps --open="My Family Tree" --output=backup.gpkg --format=gramps-pkg | ||
− | This is equivalent to selecting the following menu options | + | This is equivalent to selecting the following menu options {{man menu|Family Trees -> Export -> "GRAMPS package (portable XML)" -> "Entire Database"}} |
− | |||
− | |||
===Without media files=== | ===Without media files=== | ||
Line 90: | Line 64: | ||
gramps --open="My Family Tree" --output=backup.gramps --format=gramps-xml | gramps --open="My Family Tree" --output=backup.gramps --format=gramps-xml | ||
− | This is equivalent to selecting the following menu options | + | 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. | The [[Generate XML]] page has further information on what can be done with the .gramps files. | ||
Line 109: | Line 81: | ||
gramps --open="My Family Tree" --output=export.ged --format=gedcom | gramps --open="My Family Tree" --output=export.ged --format=gedcom | ||
+ | |||
+ | ==See also== | ||
+ | * [[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]] | [[Category:How do I...|Backup]] |
Revision as of 03:47, 5 July 2020
How to make a backup of your Gramps genealogy Family Tree database.
Contents
Gramps version 3.3 and later
The Gramps XML Backup window will appear.
You can enter the path where the backup should be stored manually or using the path selector button.
You can enter a file name manually or use the automatically generated file name.
You can either choose to Include or Exclude the Media:.
Note This is just a regular XML export, except that no data is filtered out. You can import these as usual with any exported file. |
Gramps version 3.1.x to 3.2.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 -O "My Family Tree" -e backup.gpkg
or
gramps --open="My Family Tree" --export=backup.gpkg
This is equivalent to selecting the following menu options: 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:
--format=gpkg
or
--format=gramps-pkg
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 -O "My Family Tree" -e backup.gramps
or
gramps --open="My Family Tree" --export=backup.gramps
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 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 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
GEDCOM export Please note that GEDCOM is not recommended for backups since it is a lossy format. |
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
- How to restore a backup
- Recover corrupted family tree
- Gramps_5.2_Wiki_Manual_-_Manage_Family_Trees#Backing_up_a_Family_Tree
Special copyright notice: All edits to this page need to be under two different copyright licenses:
These licenses allow the Gramps project to maximally use this wiki manual as free content in future Gramps versions. If you do not agree with this dual license, then do not edit this page. You may only link to other pages within the wiki which fall only under the GFDL license via external links (using the syntax: [https://www.gramps-project.org/...]), not via internal links. |