From 04596fe1f47995ed752db4ee0f44d3e144a9ab8d Mon Sep 17 00:00:00 2001 From: Ludovic Strappazon Date: Wed, 9 Aug 2006 14:16:55 +0000 Subject: [PATCH] Debut de restore.tex. --- docs/manual-fr/imagename_translations | 40 +- docs/manual-fr/restore.tex | 1017 ++++++++++++++----------- 2 files changed, 578 insertions(+), 479 deletions(-) diff --git a/docs/manual-fr/imagename_translations b/docs/manual-fr/imagename_translations index 01f53302..57dffcd9 100644 --- a/docs/manual-fr/imagename_translations +++ b/docs/manual-fr/imagename_translations @@ -1,27 +1,27 @@ -img19.png./idle.eps -img6.png./Conf-Diagram.eps -img25.png./view-only.eps -img12.png./win32-welcome.eps +img23.png./error.eps img3.png./bacula-objects.eps -img16.png./win32-service-ok.eps -img9.png./bimagemgr2.eps -img27.png./properties-security-advanced-owner.eps -img15.png./win32-service.eps +img12.png./win32-welcome.eps img2.png./bacula-applications.eps -img14.png./win32-location.eps -img8.png./bimagemgr1.eps -img23.png./error.eps img11.png./win32-nsis.eps -img24.png./access-is-denied.eps -img5.png./Bacula-tray-monitor.eps -img10.png./bimagemgr3.eps -img18.png./win32-finish.eps -img26.png./properties-security.eps -img17.png./win32-start.eps -img4.png./flow.eps +img8.png./bimagemgr1.eps img21.png./menu.eps +img13.png./win32-pkg.eps +img17.png./win32-start.eps img28.png./confirm.eps +img6.png./Conf-Diagram.eps +img27.png./properties-security-advanced-owner.eps +img9.png./bimagemgr2.eps +img22.png./running.eps +img5.png./Bacula-tray-monitor.eps +img15.png./win32-service.eps +img4.png./flow.eps +img16.png./win32-service-ok.eps +img25.png./view-only.eps +img19.png./idle.eps +img18.png./win32-finish.eps +img24.png./access-is-denied.eps img1.png./bacula-logo.eps -img13.png./win32-pkg.eps img20.png./tray-icon.eps -img22.png./running.eps +img10.png./bimagemgr3.eps +img14.png./win32-location.eps +img26.png./properties-security.eps diff --git a/docs/manual-fr/restore.tex b/docs/manual-fr/restore.tex index 79487cf9..3addbd7e 100644 --- a/docs/manual-fr/restore.tex +++ b/docs/manual-fr/restore.tex @@ -1,73 +1,68 @@ %% %% -\section*{The Bacula Console Restore Command} +\section*{La commande restore de la console Bacula} \label{_ChapterStart13} -\index[general]{Command!Bacula Console Restore } -\index[general]{Bacula Console Restore Command } -\addcontentsline{toc}{section}{Bacula Console Restore Command} - -\subsection*{General} -\index[general]{General } -\addcontentsline{toc}{subsection}{General} - -Below, we will discuss restoring files with the Console {\bf restore} command, -which is the recommended way of doing it. However, there is a standalone -program named {\bf bextract}, which also permits restoring files. For more -information on this program, please see the -\ilink{Bacula Utility Programs}{bextract} chapter of this manual. -You will also want to look at the {\bf bls} program in the same chapter, which -allows you to list the contents of your Volumes. Finally, if you have an old -Volume that is no longer in the catalog, you can restore the catalog entries -using the program named {\bf bscan}, documented in the same -\ilink{Bacula Utility Programs}{bextract} chapter. - -In general, to restore a file or a set of files, you must run a {\bf restore} -job. That is a job with {\bf Type = Restore}. As a consequence, you will need -a predefined {\bf restore} job in your {\bf bacula-dir.conf} (Director's -config) file. The exact parameters (Client, FileSet, ...) that you define are -not important as you can either modify them manually before running the job or -if you use the {\bf restore} command, explained below, Bacula will -automatically set them for you. In fact, you can no longer simply run a restore -job. You must use the restore command. - -Since Bacula is a network backup program, you must be aware that when you -restore files, it is up to you to ensure that you or Bacula have selected the -correct Client and the correct hard disk location for restoring those files. -{\bf Bacula} will quite willingly backup client A, and restore it by sending -the files to a different directory on client B. Normally, you will want to -avoid this, but assuming the operating systems are not too different in their -file structures, this should work perfectly well, if so desired. -By default, Bacula will restore data to the same Client that was backed -up, and those data will be restored not to the original places but to -{\bf /tmp/bacula-restores}. You may modify any of these defaults when the -restore command prompts you to run the job by selecting the {\bf mod} -option. +\index[general]{Commande!restore de la console Bacula} +\index[general]{La commande restore de la console Bacula} +\addcontentsline{toc}{section}{La commande restore de la console Bacula} + +\subsection*{G\'en\'eralit\'es} +\index[general]{G\'en\'eralit\'es} +\addcontentsline{toc}{subsection}{G\'en\'eralit\'es} + +Nous allons maintenant d\'ecrire la restauration de fichiers avec la commande +{\bf restore} de la Console, qui est le mode de restauration recommand\'e. +Il existe cependant un programme ind\'ependant nomm\'e {\bf bextract}, qui permet +lui aussi de restaurer des fichiers. Pour plus d'informations sur ce +programme, consultez le chapitre \ilink{Programmes utilitaires Bacula}{bextract} +de ce manuel. Vous y trouverez aussi des informations sur le programme {\bf bls} +qui sert \`a produire une liste du contenu de vos volumes, et sur le programme +{\bf bscan} qui vous sera utilie si vous voulez restaurer les enregistrements +du catalogue relatifs \`a un ancien volume qui n'y figure plus. + +En g\'en\'eral, pour restaurer un fichier ou un ensemble de fichiers, vous devez +ex\'ecuter un job de type {\bf restore}, par cons\'equent, vous devez pr\'ed\'efinir +un tel job dans le fichier de configuration de votre Director. Les param\`etres +(Client, FileSet,...) que vous d\'efinissez ici ne sont pas importants, +Bacula les ajustera automatiquement lors de l'utilisation de {\bf restore}. + +Bacula \'etant un programme r\'eseau, il vous appartient de vous assurer que +vous avez s\'electionn\'e le bon client et le bon disque dur pour recevoir la +restauration. Bacula peut sauvegarder le client A et restaurer ses fichiers +sur le client B, pourvu que leurs syst\`emes ne soient pas trop diff\'erents +au niveau de leurs structures de fichiers. Par d\'efaut, Bacula restaure les +donn\'ees sur leur client d'origine, mais pas \`a leur emplacement d'origine : +dans le r\'epertoire {\bf /tmp/bacula-restores}. Vous pouvez modifier ces +valeurs par d\'efaut lorsque la commande {\bf restore} vous demande confirmation +d'ex\'ecution du job en choisissant l'option {\bf mod}. \label{Example1} -\subsection*{The Restore Command} -\index[general]{Command!Restore } -\index[general]{Restore Command } -\addcontentsline{toc}{subsection}{Restore Command} - -Since Bacula maintains a catalog of your files and on which Volumes (disk or -tape), they are stored, it can do most of the bookkeeping work, allowing you -simply to specify what kind of restore you want (current, before a particular -date), and what files to restore. Bacula will then do the rest. - -This is accomplished using the {\bf restore} command in the Console. First you -select the kind of restore you want, then the JobIds are selected, -the File records for those Jobs are placed in an internal Bacula directory -tree, and the restore enters a file selection mode that allows you to -interactively walk up and down the file tree selecting individual files to be -restored. This mode is somewhat similar to the standard Unix {\bf restore} -program's interactive file selection mode. - -If your Files have been pruned, the {\bf restore} command will be unable -to find any files to restore. See below for more details on this. - -Within the Console program, after entering the {\bf restore} command, you are -presented with the following selection prompt: +\subsection*{La commande Restore} +\index[general]{Commande!Restore } +\index[general]{La commande Restore} +\addcontentsline{toc}{subsection}{La commande Restore} +Puisque Bacula maintient un catalogue des fichiers sauvegard\'es, et des volumes +o\`u ils sont stock\'es, il peut se charger de la majeure partie du travail +d'intendance. Ainsi, il vous suffit de sp\'ecifier le type de restauration que +vous souhaitez (d'apr\`es la derni\`ere sauvegarde, d'apr\`es la derni\`ere sauvegarde +ant\'erieure \`a une date sp\'ecifi\'ee...), et quels fichiers vous voulez restaurer. + +Ceci est r\'ealis\'e par la commande {\bf restore} de la Console. Vous s\'electionnez +d'abord le type de restauration souhait\'ee ce qui entra\^ine la s\'election des +JobIds requis et la construction d'une arborescence interne \`a Bacula contenant +les enregistrements de fichiers des JobIds s\'electionn\'es. A ce stade, le +processus de restauration entre dans un mode o\`u vous pouvez naviguer +interactivement dans l'arborescence des fichiers disponibles pour restauration +et s\'electionner ceux que vous voulez restaurer. Ce mode est similaire au +programme de s\'election de fichier interactif standard d'Unix {\bf restore}. + +Si vos fichiers ont \'et\'e \'elagu\'es, la commande {\bf restore} sera dans +l'incapacit\'e de les trouver. Voyez ci-dessous pour plus de d\'etails sur ce cas +de figure. + +Dans la Console, apr\`es avoir saisi {\bf restore}, le menu suivant vous est +pr\'esent\'e : \footnotesize \begin{verbatim} @@ -93,90 +88,93 @@ Select item: (1-12): \normalsize \begin{itemize} -\item Item 1 will list the last 20 jobs run. If you find the Job you want, - you can then select item 3 and enter its JobId(s). - -\item Item 2 will list all the Jobs where a specified file is saved. If you - find the Job you want, you can then select item 3 and enter the JobId. - -\item Item 3 allows you the enter a list of comma separated JobIds whose - files will be put into the directory tree. You may then select which - files from those JobIds to restore. - -\item Item 4 allows you to enter any arbitrary SQL command. This is probably - the most primitive way of finding the desired JobIds, but at the same time, - the most flexible. Once you have found the JobId(s), you can select item 3 - and enter them. - -\item Item 5 will automatically select the most recent Full backup and all - subsequent incremental and differential backups for a specified Client. - These are the Jobs and Files which, if reloaded, will restore your - system to the most current saved state. It automatically enters the - JobIds found into the directory tree. This is probably the most - convenient of all the above options to use if you wish to restore a - selected Client to its most recent state. - - There are two important things to note. First, this automatic selection - will never select a job that failed (terminated with an error status). - If you have such a job and want to recover one or more files from it, - you will need to explicitly enter the JobId in item 3, then choose the - files to restore. - - If some of the Jobs that are needed to do the restore have had their - File records pruned, the restore will be incomplete. Bacula currently - does not correctly detect this condition. You can however, check for - this by looking carefully at the list of Jobs that Bacula selects and - prints. If you find Jobs with the JobFiles column set to zero, when - files should have been backed up, then you should expect problems. - - If all the File records have been pruned, Bacula will realize that there - are no file records in any of the JobIds chosen and will inform you. It - will then propose doing a full restore (non-selective) of those JobIds. - This is possible because Bacula still knows where the beginning of the - Job data is on the Volumes, even if it does not know where particular - files are located. - -\item Item 6 allows you to specify a date and time, after which Bacula will - automatically select the most recent Full backup and all subsequent - incremental and differential backups that started before the specified date - and time. - -\item Item 7 allows you to specify one or more filenames (complete path - required) to be restored. Each filename is entered one at a time or if you - prefix a filename with the less-than symbol (\lt{}) Bacula will read that - file and assume it is a list of filenames to be restored. The filename entry - mode is terminated by entering a blank line. - -\item Item 8 allows you to specify a date and time before entering the - filenames. See Item 7 above for more details. - -\item Item 9 allows you find the JobIds of the most recent backup for - a client. This is much like option 5 (it uses the same code), but - those JobIds are retained internally as if you had entered them - manually. You may then select item 11 (see below) to restore one - or more directories. - -\item Item 10 is the same as item 9, except that it allows you to enter - a before date (as with item 6). These JobIds will then be retained - internally. - -\index[general]{Restore Directories} -\item Item 11 allows you to enter a list of JobIds from which you can - select directories to be restored. The list of JobIds can have been - previously created by using either item 9 or 10 on the menu. You - may then enter a full path to a directory name or a filename preceded - by a less than sign (\lt{}). The filename should contain a list - of directories to be restored. All files in those directories will - be restored, but if the directory contains subdirectories, nothing - will be restored in the subdirectory unless you explicitly enter its - name. - -\item Item 12 allows you to cancel the restore command. +\item Le choix 1 \'enum\`ere les 20 derniers jobs ex\'ecut\'es. Si vous trouvez + celui (ceux) que vous voulez, vous pouvez ensuite faire le choix 3 et entrer + son (leurs) JobId(s). + +\item Le choix 2 affiche tous les Jobs ayant sauvegard\'e un fichier + sp\'ecifi\'e. Si vous trouvez celui (ceux) que vous voulez, vous pouvez ensuite + faire le choix 3 et entrer son (leurs) JobId(s). + +\item Le choix 3 vous permet de saisir une liste de JobIds, s\'epar\'es par des + virgules. Les fichiers de ces jobs seront plac\'es dans l'arborescence afin + que vous puissiez s\'electionner ceux que vous voulez restaurer. + +\item Le choix 4 vous permet d'entrer une requ\^ete SQL arbitraire. C'est + certainement le moyen le plus primitif pour trouver les jobs d\'esir\'es, + mais aussi le plus flexible. Si vous trouvez celui (ceux) que vous voulez, + vous pouvez ensuite faire le choix 3 et entrer son (leurs) JobId(s). + +\item Le choix 5 s\'electionne automatiquement la full la plus r\'ecente, et toutes + les incr\'ementales et diff\'erentielles subs\'equentes \`a cette full pour un + client sp\'ecifi\'e. Il s'agit l\`a des jobs et fichiers qui, si vous les + restaurez, ram\`eneront votre syst\`eme \`a son dernier \'etat sauvegard\'e. + Les JobIds sont automatiquement charg\'es dans l'arborescence. C'est + probablement le plus pratique des choix propos\'es pour restaurer un + client \`a son \'etat le plus r\'ecent. + + Notez que ce processus de s\'election automatique ne s\'electionnera jamais + un job qui a \'echou\'e (termin\'e avec un statut d'erreur). Si vous disposez + d'un tel job dont vous voulez extraire des fichiers, vous devez + eplicitement entrer son JobId au niveau du choix 3 et choisir les fichiers + \`a restaurer. + + Si certains de jobs requis pour la restauration ont eu leurs enregistrements + de fichiers \'elagu\'es, la restauration sera incompl\`ete. Bacula ne d\'etecte + pas, pour l'instant, cette condition. Vous pouvez cependant la + contr\^oler en examinant attentivement la liste des jobs s\'electionn\'es + et affich\'es par Bacula. Si vous trouvez des jobs dont le champ JobFiles + est \`a z\'ero alors que ces fichiers auraient d\^u \^etre sauvegard\'es, alors + vous pouvez vous attendre \`a des probl\`emes. + + Si tous les enregistrements de fichiers ont \'et\'e \'elagu\'es, Bacula constatera + qu'il n'y a aucune r\'ef\'erence \`a aucun fichier pour le JobIds s\'electionn\'es + et vous en informera, et vous proposera de faire une restauration compl\`ete + (non s\'elective) de ces JobIds. Ceci est possible car Bacula sait encore + o\`u commencent les donn\'ees sur les volumes, m\^eme s'il ne sait plus o\`u sont + les fichiers individuellement. + +\item Le choix 6 vous permet de sp\'ecifier une date et un heure. Bacula + s\'electionne alors automatiquement la plus r\'ecente full ant\'erieure \`a cette date + ainsi que les incr\'ementales et diff\'erentielles subs\'equentes \`a cette full et + ant\'erieures \`a cette date. + +\item Le choix 7 vous permet de sp\'ecifier un ou plusieurs noms de fichiers + (le chemin absolu est requis) \`a restaurer. Les noms de fichiers sont saisis + un par un, \`a moins que vous ne pr\'ef\'eriez cr\'eer un fichier pr\'efix\'e du + caract\`ere "moins" (\lt{}) que Bacula consid\`ere comme une liste de fichier + \`a restaurer. Pour quitter ce mode, entrez une ligne vide. + +\item Le choix 8 vous permet de sp\'ecifier une date et une heure avant + d'entrer les noms de fichiers. Voir le choix 7 pour plus de d\'etails. + +\item Le choix 9 vous permet de d\'eterminer les JobIds de la sauvegarde + la plus r\'ecente pour un client. C'est essentiellement la m\^eme chose + que le choix 5 (le m\^eme code est utilis\'e), mais ces JobIds sont + conserv\'es en interne comme si vous les aviez saisis manuellement. + Vous pouvez alors faire le choix 11 pour restaurer un ou plusieurs + r\'epertoires. + +\item Le choix 10 est le m\^eme que le 9, sauf qu'il vous permet d'entrer + une date butoir (comme pour le choix 6) pour la s\'election des JobIds. + Ces JobIds sont conserv\'es en interne comme si vous les aviez saisis manuellement. + +\index[general]{Restaurer des r\'epertoires} +\item Le choix 11 vous permet d'entrer une liste de JobIds \`a partir de + laquelle vous pouvez s\'electionner les r\'epertoires \`a restaurer. La liste de + JobIds peut avoir \'et\'e \'etablie pr\'ec\'edemment \`a l'aide des choix 9 ou 10 + du menu. Vous pouvez alors entrer le chemin absolu d'un r\'epertoire, ou + un nom de fichier pr\'efix\'e d'un signe "moins" (\lt{}) contenant la liste + des r\'epertoires \`a restaurer. Tous les fichiers des r\'epertoires s\'electionn\'es + seront restaur\'es, mais pas les sous-r\'epertoires, \`a moins que vous ne les + sp\'ecifiiez explicitement. + +\item Le choix 12 vous permet d'abandonner la restauration. \end{itemize} -As an example, suppose that we select item 5 (restore to most recent state). -It will then ask for the desired Client, which on my system, will print all -the Clients found in the database as follows: +A titre d'exemple, supposons que nous s\'electionnions l'option 5 (restaurer \`a +l'\'etat le plus r\'ecent). Bacula vous demande alors le client d\'esir\'e ce qui, +sur mon syst\`eme, se manifeste ainsi : \footnotesize \begin{verbatim} @@ -195,10 +193,9 @@ Select Client (File daemon) resource (1-9): \end{verbatim} \normalsize -You will probably have far fewer Clients than this example, and if you have -only one Client, it will be automatically selected. In this case, I enter -{\bf Rufus} to select the Client. Then Bacula needs to know what FileSet is -to be restored, so it prompts with: +Si vous n'avez qu'un client, il est automatiquement s\'electionn\'e. Dans le cas +pr\'esent, j'entre {\bf Rufus} pour s\'electionner ce client. Bacula a +maintenant conna\^itre le FileSet \`a restaurer, aussi il affiche : \footnotesize \begin{verbatim} @@ -210,14 +207,14 @@ Select FileSet resource (1-2): \end{verbatim} \normalsize -I choose item 1, which is my full backup. Normally, you will only have a -single FileSet for each Job, and if your machines are similar (all Linux) you -may only have one FileSet for all your Clients. +J'opte pour le choix 1, ma sauvegarde full. En principe, vous n'aurez qu'un +FileSet pour chaque job, et si vos machines de ressemblent (m\^emes syst\`emes), +vous pouvez n'avoir qu'un seul FileSet pour tous vos clients. -At this point, {\bf Bacula} has all the information it needs to find the most -recent set of backups. It will then query the database, which may take a bit -of time, and it will come up with something like the following. Note, some of -the columns are truncated here for presentation: +A ce stade, Bacula d\'etient toutes les informations dont il a besoin pour +trouver le jeu de sauvegardes le plus r\'ecent. Il va maintenant interroger le +cataloguie, ce qui peut prendre un peu de temps, et afficher quelque chose +comme : \footnotesize \begin{verbatim} @@ -246,44 +243,46 @@ $ \end{verbatim} \normalsize -Depending on the number of {\bf JobFiles} for each JobId, the {\bf Building -directory tree ..."} can take a bit of time. If you notice ath all the -JobFiles are zero, your Files have probably been pruned and you will not be -able to select any individual files -- it will be restore everything or -nothing. - -In our example, Bacula found four Jobs that comprise the most recent backup of -the specified Client and FileSet. Two of the Jobs have the same JobId because -that Job wrote on two different Volumes. The third Job was an incremental -backup to the previous Full backup, and it only saved 254 Files compared to -128,374 for the Full backup. The fourth Job was also an incremental backup -that saved 15 files. - -Next Bacula entered those Jobs into the directory tree, with no files marked -to be restored as a default, tells you how many files are in the tree, and -tells you that the current working directory ({\bf cwd}) is /. Finally, Bacula -prompts with the dollar sign (\$) to indicate that you may enter commands to -move around the directory tree and to select files. +(Certaines colonnes sont tromqu\'ees pour des n\'ecessit\'es de mise en page). + +Selon le nombre de {\bf JobFiles} pour chaque JobId, la construction de +l'arborescence peut prendre un certain temps. Si vous constatez que tous les +JobFiles sont \`a z\'ero, vos fichiers ont probalement \'et\'e \'elagu\'es et vous ne +pourrez pas s\'electionner les fichiers individuellement : vous devrez +restaurer tout ou rien. + +Dans notre exemple, Bacula a trouv\'e quatre jobs qui comprennent la +sauvegarde la plus r\'ecente du client et du FileSet sp\'ecifi\'es. Deux des jobs +ont le m\^eme JobId car le job a \'ecrit sur deux volumes diff\'erents. Le +troisi\`eme est une incr\'ementale qui n'a sauvegard\'e que 254 fichier sur les +128 374 de la full. Le quatri\`eme est aussi une incr\'ementale, et n'a sauvegard\'e +que 15 fichiers. + +Maintenant Bacula ins\`ere ces jobs dans l'arborescence, sans en marquer aucun +pour restauration par d\'efaut. Il vous indique le nombre de fichiers dans +l'arbre, et vous informe que le r\'epertoire de travail courant ({\bf cwd}) est +/. Finalement, Bacula vous invite avec le signe (\$) \`a saisir des commandes +pour vous d\'eplacer dans l'arborescence, et s\'electionner des fichiers. + +Si vous voulez que tous les fichiers de l'arbre soient marqu\'es pour +restauration \`a sa construction, tapez {\bf restore all}. + +Plut\^ot que de choisir l'option 5 du premier menu (s\'electionner la +sauvegarde la plus r\'ecente pour un client), si nous avions choisi l'option 3 +(Entrer une liste de JobIds \`a s\'electionner), et si nous avions saisi +{\bf 1792,1797,1798}, nous serions arriv\'es au m\^eme point. -If you want all the files to automatically be marked when the directory -tree is built, enter the command {\bf restore all}. - -Instead of choosing item 5 on the first menu (Select the most recent backup -for a client), if we had chosen item 3 (Enter list of JobIds to select) and we -had entered the JobIds {\bf 1792,1797,1798} we would have arrived at the same -point. - -One point to note, if you are manually entering JobIds, is that you must enter -them in the order they were run (generally in increasing JobId order). If you -enter them out of order and the same file was saved in two or more of the -Jobs, you may end up with an old version of that file (i.e. not the most -recent). +Il faut noter un point si vous saisissez manuellement les JobIds : vous devez +les entrer dans l'ordre o\`u ils ont \'et\'e ex\'ecut\'es (en g\'en\'eral, l'ordre croissant. +Si vous les sasissez dans un ordre diff\'erent, vous courrez le risque de ne pas +version la plus r\'ecente d'un fichier sauvegard\'e plusieurs fois si celui-ci a \'et\'e +sauvegard\'e dans plusieurs jobs. -Directly entering the JobIds can also permit you to recover data from -a Job that wrote files to tape but that terminated with an error status. +Entre vos JobIds directement peut aussi vous permettre de restaurer depuis +un job qui a \'ecrit des donn\'ees sur les volumes mais qui s'est termin\'e en erreur. -While in file selection mode, you can enter {\bf help} or a question mark (?) -to produce a summary of the available commands: +Dans le mode s\'election de fichiers, vous pouvez utiliser {\bf help} ou une +question (?) pour produire un r\'esum\'e des commandes disponibles : \footnotesize \begin{verbatim} @@ -309,22 +308,22 @@ to produce a summary of the available commands: \end{verbatim} \normalsize -As a default no files have been selected for restore (unless you -added {\bf all} to the command line. If you want to restore -everything, at this point, you should enter {\bf mark *}, and then {\bf done} -and {\bf Bacula} will write the bootstrap records to a file and request your -approval to start a restore job. +Par d\'efaut, aucun fichier n'est s\'electionn\'e pour restauration (sauf si vous +avez ajout\'e {\bf all} \`a la ligne de commande). Si, \`a ce stade, vous voulez +tout restaurer, vous devriez saisir {\bf mark *}, puis {\bf done}, Bacula +\'ecrira alors les donn\'ees bootstrap dans un fichier et sollicitera votre +approbation pour d\'emarrer la restauration. -If you do not enter the above mentioned {\bf mark *} command, you will start -with an empty slate. Now you can simply start looking at the tree and {\bf -mark} particular files or directories you want restored. It is easy to make -a mistake in specifying a file to mark or unmark, and Bacula's error handling -is not perfect, so please check your work by using the {\bf ls} or {\bf dir} -commands to see what files are actually selected. Any selected file has its -name preceded by an asterisk. +Si vous n'utilisez pas {\bf mark *}, vous commencez avec une s\'election vide. +Vous pouvez simplement regarder et marquer ({\bf mark}) les fichiers et/ou +r\'epertoires qui vous int\'eressent. Il est ais\'e de commettre une erreur dans ces +op\'erations, et la gestion des erreurs dans Bacula n'est pas parfaite, aussi +contr\^olez votre travail avec la commande {\bf ls} ou {\bf dir} pour voir +quels fichiers ont \'et\'e s\'electionn\'es. Les fichiers s\'electionn\'es sont pr\'ec\'ed\'es +d'une ast\'erisque. -To check what is marked or not marked, enter the {\bf count} command, which -displays: +Pour contr\^oler ce qui est marqu\'e et ce qui ne l'est pas utilisez la commande +{\bf count} qui affiche : \footnotesize \begin{verbatim} @@ -333,10 +332,9 @@ displays: \end{verbatim} \normalsize -Each of the above commands will be described in more detail in the next -section. We continue with the above example, having accepted to restore all -files as Bacula set by default. On entering the {\bf done} command, Bacula -prints: +Chacune des commandes ci-dessus sera expliqu\'e plus en d\'etail dans la +prochaine section. Poursuivons avec notre exemple, en validant la restauration de +tous les fichiers. En saisissant {\bf done}, Bacula affiche : \footnotesize \begin{verbatim} @@ -360,57 +358,53 @@ OK to run? (yes/mod/no): \end{verbatim} \normalsize -Please examine each of the items very carefully to make sure that they are -correct. In particular, look at {\bf Where}, which tells you where in the -directory structure the files will be restored, and {\bf Client}, which -tells you which client will receive the files. Note that by default the -Client which will receive the files is the Client that was backed up. -These items will not always be completed with the correct values depending -on which of the restore options you chose. You can change any of these -default items by entering {\bf mod} and responding to the prompts. - -The above assumes that you have defined a {\bf Restore} Job resource in your -Director's configuration file. Normally, you will only need one Restore Job -resource definition because by its nature, restoring is a manual operation, -and using the Console interface, you will be able to modify the Restore Job to -do what you want. - -An example Restore Job resource definition is given below. - -Returning to the above example, you should verify that the Client name is -correct before running the Job. However, you may want to modify some of the -parameters of the restore job. For example, in addition to checking the Client -it is wise to check that the Storage device chosen by Bacula is indeed -correct. Although the {\bf FileSet} is shown, it will be ignored in restore. -The restore will choose the files to be restored either by reading the {\bf -Bootstrap} file, or if not specified, it will restore all files associated -with the specified backup {\bf JobId} (i.e. the JobId of the Job that -originally backed up the files). - -Finally before running the job, please note that the default location for -restoring files is {\bf not} their original locations, but rather the directory -{\bf /tmp/bacula-restores}. You can change this default by modifying your {\bf -bacula-dir.conf} file, or you can modify it using the {\bf mod} option. If you -want to restore the files to their original location, you must have {\bf -Where} set to nothing or to the root, i.e. {\bf /}. - -If you now enter {\bf yes}, Bacula will run the restore Job. The Storage -daemon will first request Volume {\bf DLT-19Jul02} and after the appropriate -files have been restored from that volume, it will request Volume {\bf -DLT-04Aug02}. - -\subsection*{Selecting Files by Filename} -\index[general]{Selecting Files by Filename } -\index[general]{Filename!Selecting Files by } -\addcontentsline{toc}{subsection}{Selecting Files by Filename} - -If you have a small number of files to restore, and you know the filenames, -you can either put the list of filenames in a file to be read by Bacula, or -you can enter the names one at a time. The filenames must include the full -path and filename. No wild cards are used. - -To enter the files, after the {\bf restore}, you select item number 7 from the -prompt list: +Examinez chaque \'el\'ement attentivement pour vous assurer que tout est +conforme \`a ce que vous souhaitez. En particulier, v\'erifiez la ligne {\bf where}, +qui vous indique dans quelle partie du syst\`eme de fichiers vos donn\'ees +seront restaur\'ees, et quel client va les recevoir (par d\'efaut, les +restaurations ont lieu sur le client d'origine). Ces param\`etres n'auront pas +forc\'ement les bonnes valeurs, mais vous pouvez les modifier \`a l'aide +de la commande {\bf mod} et en vous laissant guider par l'invite de la +console. + +L'affichage ci-dessus suppose que vous ayez d\'efini une ressource Job de type +{\bf restore} dans le fichier de configuration de votre Director. en +principe, vous n'en n'aurez besoin que d'une, car, par nature, une +restauration est une op\'eration essentiellement manuelle. A l'aide de la +Console, vous pourrez modifier le job Restore pour faire ce que vous voulez +qu'il fasse. + +Un exemple de ressource Job de type restore est donn\'e plus bas. + +Pour en revenir \`a notre exemple, en plus de v\'erifier le client, il est sage +de v\'erifier que le p\'eriph\'erique de stockage choisi par Bacula est le bon. +Bien que le FileSet soit pr\'esent\'e, il est en fait ignor\'e dans la restauration. +Le processus de restauration choisit ses fichiers en lisant le fichier +{\bf bootstrap}, et restaure tous les fichiers associ\'es au JobId consid\'er\'e +si ce fichier n'est pas sp\'ecifi\'e. + +Enfin, avant de lancer la restauration, notez que le lieu par d\'efaut pour les +fichiers restaur\'es n'est pas leur emplacement d'origine mais le r\'epertoire +{\bf /tmp/bacula-restores}. Vous pouvez modifier cette valeur par d\'efaut dans +le fichier de configuration du Director, ou avec l'option {\bf mod}. Si vous +voulez restaurer les fichiers \`a leurs emplacements d'origine, modifiez l'option +{\bf where} : sp\'ecifiez la racine (\bf /} ou rien du tout. + +Si vous entrez maintenant {\bf yes}, Bacula lance la restauration. le Storage +Daemon va d'abord requ\'erir le volume {\bf DLT-19Jul02}, puis le {\bf DLT-04Aug02} +une fois qu'il aura extrait les fichiers requis du premier. + +\subsection*{S\'electionner des fichiers par leurs noms} +\index[general]{S\'electionner des fichiers par leurs noms} +\index[general]{Noms de fichiers!S\'electionner des fichiers par leurs} +\addcontentsline{toc}{subsection}{S\'electionner des fichiers par leurs noms} + +Si vous n'avez qu'un petit nombre de fichiers \`a restaurer dont vous connaissez +les noms, vous pouvez, aux choix, placer ces noms dans un fichier qui sera +lu par Bacula, ou saisir les noms un par un. Les noms de fichier doivent inclure +le chemin absolu. Les caract\`eres jokers ne peuvent \^etre utilis\'es. + +Pour saisir la liste, choisissez l'option 7 dans le menu de la commande {\bf restore} : \footnotesize \begin{verbatim} @@ -431,7 +425,7 @@ Select item: (1-12): \end{verbatim} \normalsize -which then prompts you for the client name: +Vous \^etes alors invit\'e \`a pr\'eciser le client : \footnotesize \begin{verbatim} @@ -443,9 +437,8 @@ Select the Client (1-3): 3 \end{verbatim} \normalsize -Of course, your client list will be different, and if you have only one -client, it will be automatically selected. And finally, Bacula requests you to -enter a filename: +Si vous n'avez qu'un client, il est s\'electionn\'e automatiquement. +Finalement, Bacula vous demande d'entrer un nom de fichier : \footnotesize \begin{verbatim} @@ -453,7 +446,7 @@ Enter filename: \end{verbatim} \normalsize -At this point, you can enter the full path and filename +Vous pouvez, \`a ce stade, saisir le chemin absolu et le nom du fichier : \footnotesize \begin{verbatim} @@ -462,8 +455,7 @@ Enter filename: \end{verbatim} \normalsize -as you can see, it took the filename. If Bacula cannot find a copy of the -file, it prints the following: +Si Bacula ne peut en trouver aucune copie, il affiche ce qui suit : \footnotesize \begin{verbatim} @@ -473,10 +465,12 @@ Enter filename: \end{verbatim} \normalsize -If you want Bacula to read the filenames from a file, you simply precede the -filename with a less-than symbol (\lt{}). When you have entered all the -filenames, you enter a blank line, and Bacula will write the bootstrap file, -tells you what tapes will be used, and proposes a Restore job to be run: +Si vous souhaitez que Bacula r\'ecup\`ere la liste des fichiers \`a restaurer depuis +un fichier, r\'edigez ce fichier et donnez lui un nom commen{\c c}ant par le signe +moins (\lt{}) et saisissez-le ici. Lorsque vous avez entr\'e tous les noms de +fichiers, validez une ligne vide. Bacula \'ecrit maintenant le fichier +bootstrap, vous indique les cartouches qui seront utilis\'ees, et vous propose +de valider la restauration : \footnotesize \begin{verbatim} @@ -501,8 +495,9 @@ OK to run? (yes/mod/no): \end{verbatim} \normalsize -It is possible to automate the selection by file by putting your list of files -in say {\bf /tmp/file-list}, then using the following command: +Il est possible d'automatiser la s\'election des fichiers en pla{\c c}ant votre liste +de fichiers dans, part exemple, {\bf /tmp/file-list}, puis en utilisant la +commande suivante : \footnotesize \begin{verbatim} @@ -510,21 +505,22 @@ restore client=Rufus file=