Changes

Jump to: navigation, search

How to make a backup

134 bytes removed, 03:47, 5 July 2020
no edit summary
{{grampsmanualcopyright}}
 
{{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.
==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-GrampsXMLBackup-4050.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 a file name manually or use the path where the backup should be stored. You can enter a automatically generated file name.
You can either choose to include '''Include''' or '''Exclude''' the media or not{{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.}}
 
===Advanced settings===
 
You can also define the pattern for the backup filename by setting the ''paths.quick-backup-filename'' in the ~/.gramps/gramps42/gramps.ini key file like the following:
{{-}}
[paths]
quick-backup-filename='%(filename)s_%(year)d-%(month)02d-%(day)02d.%(extension)s'
 
You can use any of the following keywords in the pattern:
*filename
*year
*month
*day
*hour
*minutes
*seconds
*extension :
**'''.gpkg'''(default) if you include media.
**''.gramps'' if you exclude media.
 
Use the appropriate ~/.gramps/gramps{XX}/gramps.ini key file.
*Gramps version 4.2 :
~/.gramps/gramps42/gramps.ini
==Gramps version 3.1.x to 3.2.x ==
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.
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]]

Navigation menu