Skip to content

Commit

Permalink
basebackup-to-shell : traduction v15beta2
Browse files Browse the repository at this point in the history
  • Loading branch information
Krysztophe authored and gleu committed Jul 17, 2022
1 parent 40c68f4 commit fcfcb7a
Showing 1 changed file with 32 additions and 30 deletions.
62 changes: 32 additions & 30 deletions postgresql/basebackup-to-shell.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,26 @@
</indexterm>

<para>
<filename>basebackup_to_shell</filename> adds a custom basebackup target
called <literal>shell</literal>. This makes it possible to run
<literal>pg_basebackup --target=shell</literal> or, depending on how this
module is configured,
<literal>pg_basebackup --target=shell:DETAIL_STRING</literal>, and cause
a server command chosen by the server administrator to be executed for
each tar archive generated by the backup process. The command will receive
the contents of the archive via standard input.
<filename>basebackup_to_shell</filename> ajoute une méthode de sauvegarde
personnalisée nommée <literal>shell</literal>. Elle permet de lancer
<literal>pg_basebackup --target=shell</literal> ou, selon la configuration
du module, <literal>pg_basebackup --target=shell:CHAINE_DETAILS</literal>,
ce qui provoquera l'exécution sur le serveur, pour chaque archive tar
générée par la sauvegarde, d'une commande choisie par l'administrateur.
La commande recevra le contenu de l'archive sur son entrée standard.
</para>

<para>
This module is primarily intended as an example of how to create a new
backup targets via an extension module, but in some scenarios it may be
useful for its own sake.
In order to function, this module must be loaded via
<xref linkend="guc-shared-preload-libraries"/> or
Ce module est d'abord un exemple de la manière de créer de nouvelles
cibles de backup par un module d'extension&nbsp;; mais, dans certains
scénarios, il peut avoir son utilité propre.
Pour fonctionner, ce module doit être chargé via
<xref linkend="guc-shared-preload-libraries"/> ou
<xref linkend="guc-local-preload-libraries"/>.
</para>

<sect2>
<title>Configuration Parameters</title>
<title>Paramètres de configuration</title>

<variablelist>
<varlistentry>
Expand All @@ -41,18 +40,21 @@
</term>
<listitem>
<para>
The command which the server should execute for each archive generated
by the backup process. If <literal>%f</literal> occurs in the command
string, it will be replaced by the name of the archive (e.g.
<literal>base.tar</literal>). If <literal>%d</literal> occurs in the
command string, it will be replaced by the target detail provided by
the user. A target detail is required if <literal>%d</literal> is
used in the command string, and prohibited otherwise. For security
reasons, it may contain only alphanumeric characters. If
<literal>%%</literal> occurs in the command string, it will be replaced
by a single <literal>%</literal>. If <literal>%</literal> occurs in
the command string followed by any other character or at the end of the
string, an error occurs.
La commande à exécuter par le serveur, pour chaque archive générée
par le processus de sauvegarde.
Si <literal>%f</literal> apparaît dans la chaîne de la commande,
il sera remplacé par le nom de l'archive (par exemple
<literal>base.tar</literal>).
Si <literal>%d</literal> apparaît,
il sera remplacé par la cible précisée par l'utilisateur.
Une cible est requise si <literal>%d</literal> apparaît dans la
chaîne, et interdite sinon.
Pour des raisons de sécurité, elle ne peut contenir que des
caractères alphanumériques.
Si <literal>%%</literal> apparaît dans la chaîne,
il sera remplacé par un seul <literal>%</literal>.
Une erreur est levée si apparaît un <literal>%</literal>
suivi d'un autre caractère que ceux ci-dessus, ou en bout de chaîne.
</para>
</listitem>
</varlistentry>
Expand All @@ -66,17 +68,17 @@
</term>
<listitem>
<para>
The role required in order to make use of the <literal>shell</literal>
backup target. If this is not set, any replication user may make use of
the <literal>shell</literal> backup target.
Le rôle nécessaire pour utiliser la cible
<literal>shell</literal>. S'il n'est pas précisé, n'importe quel utilisateur
de réplication peut utiliser cette cible de sauvegarde.
</para>
</listitem>
</varlistentry>
</variablelist>
</sect2>

<sect2>
<title>Author</title>
<title>Auteur</title>

<para>
Robert Haas <email>rhaas@postgresql.org</email>
Expand Down

0 comments on commit fcfcb7a

Please sign in to comment.