Difference between revisions of "Comment faire une sauvegarde"

From Gramps
Jump to: navigation, search
(Created page with "{{languages|How to make a backup}} '''How to make a backup''' of your GRAMPS genealogy database. '''TODO''': check if command line uses default options on export, last used o...")
 
(GRAMPS version 3.3 et supérieure)
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{languages|How to make a backup}}
 
{{languages|How to make a backup}}
'''How to make a backup''' of your GRAMPS genealogy database.
+
'''Comment faire une sauvegarde''' de votre base de données Gramps.
 +
 
 +
{{stub|fr}}
  
 
'''TODO''': check if command line uses default options on export, last used options or ignore options not set on command line. Because default options by using Gramps user interface and Exporter enable "privacy filters"...
 
'''TODO''': check if command line uses default options on export, last used options or ignore options not set on command line. Because default options by using Gramps user interface and Exporter enable "privacy filters"...
  
==GRAMPS version 3.3 and later==
+
==GRAMPS version 3.3 et supérieure==
  
Simply select "Make Backup..." from the "Family Trees" menu item.
+
Simplement sélectionnez le menu {{man menu|Arbres familiaux -> Faire une sauvegarde...}}
  
[[Image:MakeBackup.png]]
+
[[File:MakeBackup-GrampsXMLBackup-50.png]]
  
You can either choose to include the media or not.  
+
Vous pouvez choisir d'inclure ou non les objets media.  
  
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 file.
+
Notez, que ce n'est qu'une exportation d'un fichier XML normal, sauf qu'aucune donnée n'est filtrée. Vous pouvez l'importer comme n'importe quel autre fichier exporté.
  
You can also define the pattern for the backup filename by setting the ''paths.quick-backup-filename'' in the ~/.gramps/gramps33/gramps.ini key file like the following:
+
Vous pouvez également définir le schéma de nom de fichier pour votre sauvegarde, en éditant ''paths.quick-backup-filename'' dans le fichier clé ~/.gramps/gramps34/gramps.ini, comme par exemple :
  
 
  [paths]
 
  [paths]
 
  quick-backup-filename='%(filename)s_%(year)d-%(month)02d-%(day)02d.%(extension)s'
 
  quick-backup-filename='%(filename)s_%(year)d-%(month)02d-%(day)02d.%(extension)s'
  
You can use any of the following keywords in the pattern: year, month, day, hour, minutes, seconds, filename, extension.
+
Vous pouvez utiliser l'un de ces mots-clé dans le schéma : year, month, day, hour, minutes, seconds, filename, extension.
  
==GRAMPS version 3.1.x and later==
+
==GRAMPS version 3.1.x et supérieure==
===With media files===
+
===Avec fichiers media===
 
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:
 
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:
  
Line 40: Line 42:
 
  --format=gramps-pkg
 
  --format=gramps-pkg
  
===Without media files===
+
===Sans fichiers media===
If you don't need to include the media objects in your backup, then you can make use of the [[GRAMPS XML|gramps-xml]] format:
+
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  
 
  gramps -O "My Family Tree" -e backup.gramps  
Line 51: Line 53:
 
This is equivalent to selecting the following menu options:
 
This is equivalent to selecting the following menu options:
  
  Family Trees -> Export -> "GRAMPS XML database" -> "Entire Database".
+
  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.
  
 
==GRAMPS verson 3.0.x==
 
==GRAMPS verson 3.0.x==
===With media files===
+
===Avec fichiers media===
 
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:
 
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:
  
Line 65: Line 67:
 
  Family Trees -> Export -> "GRAMPS package (portable XML)" -> "Entire Database".
 
  Family Trees -> Export -> "GRAMPS package (portable XML)" -> "Entire Database".
  
===Without media files===
+
===Sans fichiers media===
If you don't need to include the media objects in your backup, then you can make use of the [[GRAMPS XML|gramps-xml]] format:
+
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
 
  gramps --open="My Family Tree" --output=backup.gramps --format=gramps-xml
Line 72: Line 74:
 
This is equivalent to selecting the following menu options:
 
This is equivalent to selecting the following menu options:
  
  Family Trees -> Export -> "GRAMPS XML database" -> "Entire Database".
+
  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 78: Line 80:
 
==GRAMPS version 2.2.x==
 
==GRAMPS version 2.2.x==
  
===Without media files===
+
===Sans fichiers media===
 
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":
 
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
 
  gramps -O MyFamilyTree.grdb -o backup.gramps -f gramps-xml
  
==GEDCOM export==
+
==Exportation Gedcom==
 
{{man warn|GEDCOM export|Please note that GEDCOM is not recommended for backups since it is a [[Gramps_and_GEDCOM|lossy format]].}}
 
{{man warn|GEDCOM export|Please note that GEDCOM is not recommended for backups since it is a [[Gramps_and_GEDCOM|lossy format]].}}
  
Line 90: Line 92:
 
  gramps --open="My Family Tree" --output=export.ged --format=gedcom
 
  gramps --open="My Family Tree" --output=export.ged --format=gedcom
  
[[Category:How do I...|Sauvegarde]]
+
[[Category:Fr:Comment je...|Sauvegarde]]

Revision as of 05:39, 10 December 2017

Comment faire une sauvegarde de votre base de données Gramps.

Gramps-notes.png

Ébauche

À compléter !

Si vous pouvez aider à la traduction ou l'adapter à la culture francophone.

N'hésitez pas à améliorer cette page.


TODO: check if command line uses default options on export, last used options or ignore options not set on command line. Because default options by using Gramps user interface and Exporter enable "privacy filters"...

GRAMPS version 3.3 et supérieure

Simplement sélectionnez le menu Arbres familiaux -> Faire une sauvegarde...

MakeBackup-GrampsXMLBackup-50.png

Vous pouvez choisir d'inclure ou non les objets media.

Notez, que ce n'est qu'une exportation d'un fichier XML normal, sauf qu'aucune donnée n'est filtrée. Vous pouvez l'importer comme n'importe quel autre fichier exporté.

Vous pouvez également définir le schéma de nom de fichier pour votre sauvegarde, en éditant paths.quick-backup-filename dans le fichier clé ~/.gramps/gramps34/gramps.ini, comme par exemple :

[paths]
quick-backup-filename='%(filename)s_%(year)d-%(month)02d-%(day)02d.%(extension)s'

Vous pouvez utiliser l'un de ces mots-clé dans le schéma : year, month, day, hour, minutes, seconds, filename, extension.

GRAMPS version 3.1.x et supérieure

Avec fichiers media

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

Sans fichiers media

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

Avec fichiers media

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".

Sans fichiers media

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

Sans fichiers media

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

Exportation Gedcom

Gnome-important.png
GEDCOM export

Please note that GEDCOM is not recommended for backups since it is a lossy format.

But 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