3,146
edits
Changes
→See also
{{Third-party pluginaddon}}{{man tipwarn|Not for all versions of Gramps|Released for Gramps 5.1.x ''only''/ 5.2.x and 6.0.x. This documentation is derived from the ''[https://www.grampsweb.org/user-guideadministration/sync/ Synchronize with Gramps]'' section of the '''[https://www.grampsweb.org/user-guide/ Gramps Web User Guide]'''. Their page should be considered the definitive reference.}} [[File:GrampWebSync_Intro51GrampWebSync-tool-addon-Introduction-tab-60.png|thumb|right|350px450px|"Introduction" tab of "Gramps Web Sync" tool]]The {{man label|Gramps Web Sync}} tool is an addon for Gramps that allows you to synchronize a '''Gramps (for desktops)''' database with Family Tree data on a [[Gramps Web|'''Gramps Web''' (for Servers)]], database including media files.
== Purpose of this tool ==
This tool was specifically written to harmonize the family tree data between a "Gramps Web " instance and a "Gramps Desktop for Desktops" instance. Make no mistake, maintaining synchronization is '''''hard'''''! And this tool Gramps Web is not magic, it does not make the process simple but it ''is'' easier much younger than the alternatives.<!--{{man note|Important Note|This tool this requires that the Family Tree being merged must be a Gramps Family Tree ''derived from a desktop version'' of the currently loaded Family Tree.}} A situation occurs occasionally after giving someone a copy of your tree in our native [[Gramps XML]] format. Then each person makes changes to the copy in their possession using Gramps locally. (You can verify the Trees differ and log those revisions with the [[Addon:Database_Differences_Report|Database Differences]] addon report.) Programmers call this a 'fork.' (As in: when travelers come to a 'fork in the road' and each chooses different paths.) But the bottom line is that you now have two tree variants derived from a common Tree and you want share your updated Tree. You can't just give the person a fresh copy of your Tree because then their changes would be overwritten. At some point, you may want to merge the forks into a common tree... without losing the useful changes from either tree. That synchronization is what this tool is designed to facilitate. It depends on the two Trees sharing common internal handles (so not just all the user-editable IDs) to simplify ignoring unchanged records. Then interface for the tool focuses you on just the changesdesired features have been created.
The {{man label|Gramps Web Sync}} tool addon can be installed like any other version 5.1 Addon tooladdon; see {{man label|[[Third-party_Addons#Installing_Addons_in_Gramps|Installing Addons in Gramps]]}}. Specifically, the [https://github.com/gramps-project/addons/blob/master/gramps51/download/GrampsWebSync.addon.tgz GrampsWebSync.addon.tgz] archive download is available for [[{{man version}}_Addons#Manually_installed_Addons|manual installation]] or via the [[{{man version}}_Addons#Installing_Addons_in_Gramps|'''Third party addons management''']] section of the {{man menu|Edit ➡ Preferences}} of the Gramps Desktop.
There is are no installation (or user interface options) on the Gramps Web side because it the {{man label|Gramps Web Sync}} tool communicates directly with that the Gramps Web webservice's native restful API.
==Usage==
=== Running Gramps Web Sync ===
[[File:UndoHistoryWarning-Tool-dialog-5052.png|thumb|right|350px|Batch Tool warning]] <!-- https://gramps.discourse.group/t/only-some-tools-warn/4324 -->The tool will start with an 'Undo history warning' that suggest that you back up your work. You are then presented with the import file dialog, which shows '.gramps' files from your import location. <!-- When you have selected a file to import, the main tool window comes up and some progress meters pop up indicating the import and comparison process. When this is complete you end up with a three part window. The bottom part provides control and 'Action' buttons and a hint that changes depending on what you are doing. ==== Control buttons ==== {{man buttonlabel|Help}} brings up this wiki. [[Gramps_{{man button|Edit importversion}} allows editing of the selected item. Any changes are temporarily saved in your imported data, and will be kept only if that data is merged into your current tree. If your editing creates new items, they will appear in the top pane list when you finish editing. Changes here cause the 'Action' to be cleared, so be sure to choose an Action when finished. {{man button_Wiki_Manual_-_Error_and_Warning_Reference#Undo_history_warning|UnmarkUndo history warning]]}} clears any current Action. If an item remains unmarked when you are done, it will be treated as if 'Ignored', that is, there will be no changes to your tree for that item. {{man button|Ignore}} sets the action for the item so that there will be no changes to your tree for that item. This is the same as leaving the item unmarked, but makes it clear ' dialog that suggest you have looked at that item. {{man button|DoneStop}} tells the tool that you are finished marking the various actions. The tool will bring up a confirmation dialog, allowing you to save and backup your work, cancel and return to marking, or abandon it. The remaining buttons are considered 'Actions' and depend on the Status of the item. {{man button|Add}} appears for items with an 'Added' status. When added, the imported data will be added to your current tree. then select {{man button|Delete}} appears for items with a 'Missing' status. When selected, the data in your tree for this item will be deleted. {{man button|Replace}} appears for items with a 'Different' status. When replaced, the imported data for the item will completely replace the same data in your current tree. {{man button|Merge Original}} appears for items with a 'Different' status. When selected, the imported data for the item will be merged with the original tree and the IDs of the original item are retained. The portions of the data that cannot be merged will remain as it is in your current tree data. {{man button|Merge Import}} appears for items with a 'Different' status. When selected, the imported data for the item will be merged with the original tree and the IDs of the imported item are used. The portions of the data that cannot be merged will be replaced by the import data. When you select an 'Action' with one of the buttons, a hint will appear that states the action in more detail. You can change the 'Action' at any time on any item, it may be instructive to see the results of choosing the various choices in the lower pane. In general I recommend that you start marking your items Proceed with the 'Different' items first. Within these, doing '''Families''' and '''Persons''' first will usually minimize the amount of work to merge your tree. This tool starts up with the sort set to put these items first, so starting at the top is easy. === Automatic Mark === This tool includes the ability to automatically mark those items that are 'referred to' by the item you are currently marking. For Example, if you {{man button|Add}} a person, the events, notes, media, citations and families that the person refers to will also be added. The same process is applied for each of the various 'Action' buttons. The marks that are automatically generated are shown in the top pane action column with a '*' preceding the action. Occasionally you may mark items that create a conflict in the automatic marking. For example you {{man button|Add-}} a person that refers to a media, and then later {{man button|Ignore}} a person that also refers to the same media. In this case, the media item will be marked with a '?' and the action that tends to conserve more data will be used. This means that Adds have priority over Ignore, Ignore over Delete etc. You should review any items marked this way to make sure that you agree with the program. Note that families and persons in particular usually have a lot of references to other families or persons. In fact if your imported file contains a whole new branch of your family tree, selecting any one of the people or families in that branch will automatically mark all the new people and families at once. This is usually desirable, but not always. ==== Automatic mark with Families Introduction tab====This [[File:GrampWebSync-tool is not ideal for selecting only parts of a tree for merging, but it can be done-addon-Introduction-tab-60. If you wish to include a person, but not his family (spouse and children) then you can uncheck the {{man labelpng|Automark Families}} checkbox. This applies to all persons found via the Automark as well. The effect is that you can get ancestors (if {{man labelthumb|Automark Parent Families}} is checked) included but not all the descendants of those ancestors. If you wish to get a set of spouses and descendants included when adding a person but not all the ancestors of the spouses, then you can uncheck the {{man labelright|Automark Parent Families}} checkbox and leave the {{man label450px|Automark Families}} unchecked.If you don't want any family or parent families automatically included, leave both {{man label|Automark Parent Families}} and {{man label|Automark Families}} unchecked. === Finishing up ===When you have marked up as many items as you want and reviewed the automatic marks to make sure they are what you desire, you can press the {{man button|Done}} button. The tool will bring up a confirmation dialog, allowing you to save your work, cancel and return to marking, or abandon it. If you abandon, your markings are lost and no changes are made to your current tree. If you decide to save your work, the tool will perform a series "Introduction" tab of checks as it saves your work. These checks make sure that any conflicts that may have been created will not result in errors in your database. For example, if you selected a person to add, but decided to ignore a note attached to that person, the "Gramps Web Sync" tool will 'clean up' the reference to the note on the person before saving it.]]
==See also==
* Category search for [https://gramps.discourse.group/search?expanded=true&q=sync%20%20%23gramps-web sync]
* [https://gramps.discourse.group/c/gramps-web/28 Category]
* [[Addon:Gramps_Web|Gramps Web]]
<!--
* [[Addon:Database_Differences_Report|Database Differences Report]] - allows a mostly complete comparison between the currently opened database (Family Tree) and a Gramps XML file.
-->
[[Category:Addons]]
[[Category:Plugins]]