Skip to content

Commit

Permalink
switched normal verbatims to beconsole in original tex
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed Nov 28, 2018
1 parent 37b279e commit 77be531
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 47 deletions.
94 changes: 47 additions & 47 deletions docs/manuals/en/main/tutorial.tex
Expand Up @@ -51,11 +51,11 @@ \section{Starting the Daemons}
Assuming you have installed the packages,
to start the three daemons, from your installation directory, simply enter:

\begin{verbatim}
\begin{bconsole}
service bareos-dir start
service bareos-sd start
service bareos-fd start
\end{verbatim}
\end{bconsole}

\section{Using the Director to Query and Start Jobs}

Expand Down Expand Up @@ -280,15 +280,15 @@ \section{Running a Job}
Now, let's actually run a job with:

\footnotesize
\begin{verbatim}
\begin{bconsole}{run}
run
\end{verbatim}
\end{bconsole}
\normalsize

you should get the following output:

\footnotesize
\begin{verbatim}
\begin{bconsole}{select job}
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
A job name must be specified.
Expand All @@ -297,14 +297,14 @@ \section{Running a Job}
2: BackupCatalog
3: RestoreFiles
Select Job resource (1-3):
\end{verbatim}
\end{bconsole}
\normalsize

Here, Bareos has listed the three different Jobs that you can run, and you
should choose number {\bf 1} and type enter, at which point you will get:

\footnotesize
\begin{verbatim}
\begin{bconsole}{run job}
Run Backup job
JobName: BackupClient1
Level: Incremental
Expand All @@ -317,7 +317,7 @@ \section{Running a Job}
When: 2013-05-23 14:50:04
Priority: 10
OK to run? (yes/mod/no):
\end{verbatim}
\end{bconsole}
\normalsize

At this point, take some time to look carefully at what is printed and
Expand All @@ -337,7 +337,7 @@ \section{Running a Job}


% \footnotesize
% \begin{verbatim}
% \begin{bconsole}
% 28-Apr-2003 14:22 bareos-dir: Last FULL backup time not found. Doing
% FULL backup.
% 28-Apr-2003 14:22 bareos-dir: Start Backup JobId 1,
Expand All @@ -348,7 +348,7 @@ \section{Running a Job}
% Storage: FileStorage
% Media type: File
% Pool: Default
% \end{verbatim}
% \end{bconsole}
% \normalsize
%
% The first message, indicates that no previous Full backup was done, so Bareos
Expand All @@ -363,28 +363,28 @@ \section{Running a Job}
% Volume that Bareos can write on. We do so with:
%
% \footnotesize
% \begin{verbatim}
% \begin{bconsole}
% label
% \end{verbatim}
% \end{bconsole}
% \normalsize
%
% and Bareos will print:
%
% \footnotesize
% \begin{verbatim}
% \begin{bconsole}
% The defined Storage resources are:
% 1: File
% Item 1 selected automatically.
% Enter new Volume name:
% \end{verbatim}
% \end{bconsole}
% \normalsize
%
% at which point, you should enter some name beginning with a letter and
% containing only letters and numbers (period, hyphen, and underscore) are also
% permitted. For example, enter {\bf TestVolume001}, and you should get back:
%
% \footnotesize
% \begin{verbatim}
% \begin{bconsole}
% Defined Pools:
% 1: Default
% Item 1 selected automatically.
Expand All @@ -394,7 +394,7 @@ \section{Running a Job}
% Catalog record for Volume "TestVolume002", Slot 0 successfully created.
% Requesting mount FileStorage ...
% 3001 OK mount. Device=/var/lib/bareos/storage
% \end{verbatim}
% \end{bconsole}
% \normalsize
%
% Finally, enter {\bf messages} and you should get something like:
Expand Down Expand Up @@ -449,9 +449,9 @@ \section{Running a Job}
have the following item:

\footnotesize
\begin{verbatim}
\begin{bconsole}
-rw-r----- 1 bareos bareos 39072153 Apr 28 14:30 Full-001
\end{verbatim}
\end{bconsole}
\normalsize

This is the file Volume that you just wrote and it contains all the data of
Expand All @@ -471,10 +471,10 @@ \section{Running a Job}
% your database using:
%
% \footnotesize
% \begin{verbatim}
% \begin{bconsole}
% ./drop_bareos_tables
% ./make_bareos_tables
% \end{verbatim}
% \end{bconsole}
% \normalsize
%
% Please note that this will erase all information about the previous jobs that
Expand Down Expand Up @@ -523,21 +523,21 @@ \section{Restoring Your Files}
did, and you will get the following output:

\footnotesize
\begin{verbatim}
\begin{bconsole}
Automatically selected Client: bareos-fd
The defined FileSet resources are:
1: Catalog
2: Full Set
Select FileSet resource (1-2):
\end{verbatim}
\end{bconsole}
\normalsize

As you can see, Bareos knows what client
you have, and since there was only one, it selected it automatically.
Select {\bf 2}, because you want to restore files from the file set.

\footnotesize
\begin{verbatim}
\begin{bconsole}
+-------+-------+----------+------------+---------------------+---------------+
| jobid | level | jobfiles | jobbytes | starttime | volumename |
+-------+-------+----------+------------+---------------------+---------------+
Expand All @@ -555,7 +555,7 @@ \section{Restoring Your Files}

cwd is: /
$
\end{verbatim}
\end{bconsole}
\normalsize
where I have truncated the listing on the right side to make it more readable.
Expand All @@ -577,15 +577,15 @@ \section{Restoring Your Files}
To exit this mode, simply enter:
\footnotesize
\begin{verbatim}
\begin{bconsole}
done
\end{verbatim}
\end{bconsole}
\normalsize
and you will get the following output:
\footnotesize
\begin{verbatim}
\begin{bconsole}
Bootstrap records written to
/home/user/bareos/testbin/working/restore.bsr
The restore job will require the following Volumes:
Expand Down Expand Up @@ -632,7 +632,7 @@ \section{Restoring Your Files}
Priority: 10
Plugin Options: *None*
OK to run? (yes/mod/no):
\end{verbatim}
\end{bconsole}
\normalsize
If you answer {\bf yes} your files will be restored to
Expand All @@ -644,7 +644,7 @@ \section{Restoring Your Files}
similar to this:
\footnotesize
\begin{verbatim}
\begin{bconsole}
23-May 15:24 bareos-dir JobId 2: Start Restore Job RestoreFiles.2013-05-23_15.24.01_10
23-May 15:24 bareos-dir JobId 2: Using Device "FileStorage" to read.
23-May 15:24 bareos-sd JobId 2: Ready to read from volume "TestVolume001" on device "FileStorage" (/var/lib/bareos/storage).
Expand All @@ -664,7 +664,7 @@ \section{Restoring Your Files}
FD termination status: OK
SD termination status: OK
Termination: Restore OK
\end{verbatim}
\end{bconsole}
\normalsize
After exiting the Console program, you can examine the files in \directory{/tmp/bareos-restores},
Expand Down Expand Up @@ -882,9 +882,9 @@ \subsection*{Director: test client, add a job}
% send you a message similar to the following:
%
% \footnotesize
% \begin{verbatim}
% \begin{bconsole}
% bareos-sd: block.c:337 === Write error errno=28: ERR=No space left on device
% \end{verbatim}
% \end{bconsole}
% \normalsize
%
% This indicates that Bareos got a write error because the tape is full. Bareos
Expand All @@ -905,14 +905,14 @@ \subsection*{Director: test client, add a job}
% message similar to the following:
%
% \footnotesize
% \begin{verbatim}
% \begin{bconsole}
% bareos-sd: Job usersave.2002-09-19.10:50:48 waiting. Cannot find any
% appendable volumes.
% Please use the "label" command to create a new Volume for:
% Storage: SDT-10000
% Media type: DDS-4
% Pool: Default
% \end{verbatim}
% \end{bconsole}
% \normalsize
%
% Until you create a new Volume, this message will be repeated an hour later,
Expand Down Expand Up @@ -995,9 +995,9 @@ \subsection*{Director: test client, add a job}
% daemons from the install directory as follows:
%
% \footnotesize
% \begin{verbatim}
% \begin{bconsole}
% ./bareos start -d100
% \end{verbatim}
% \end{bconsole}
% \normalsize
%
% This can be particularly helpful if your daemons do not start correctly,
Expand All @@ -1008,9 +1008,9 @@ \subsection*{Director: test client, add a job}
% To stop the three daemons, enter the following from the install directory:
%
% \footnotesize
% \begin{verbatim}
% \begin{bconsole}
% ./bareos stop
% \end{verbatim}
% \end{bconsole}
% \normalsize
%
% The execution of {\bf bareos stop} may complain about pids not found. This is
Expand Down Expand Up @@ -1134,14 +1134,14 @@ \section{Pools}
% the following:
%
% \footnotesize
% \begin{verbatim}
% \begin{bconsole}
% The defined Storage resources are:
% 1: File
% 2: 8mmDrive
% 3: DLTDrive
% 4: SDT-10000
% Select Storage resource (1-4):
% \end{verbatim}
% \end{bconsole}
% \normalsize
%
% At this point, you should have a blank tape in the drive corresponding to the
Expand All @@ -1150,17 +1150,17 @@ \section{Pools}
% It will then ask you for the Volume name.
%
% \footnotesize
% \begin{verbatim}
% \begin{bconsole}
% Enter new Volume name:
% \end{verbatim}
% \end{bconsole}
% \normalsize
%
% If Bareos complains:
%
% \footnotesize
% \begin{verbatim}
% \begin{bconsole}
% Media record for Volume xxxx already exists.
% \end{verbatim}
% \end{bconsole}
% \normalsize
%
% It means that the volume name {\bf xxxx} that you entered already exists in
Expand All @@ -1169,7 +1169,7 @@ \section{Pools}
% proper printing.
%
% \footnotesize
% \begin{verbatim}
% \begin{bconsole}
% +---------------+---------+--------+----------------+-----/~/-+------------+-----+
% | VolumeName | MediaTyp| VolStat| VolBytes | LastWri | VolReten | Recy|
% +---------------+---------+--------+----------------+---------+------------+-----+
Expand All @@ -1186,7 +1186,7 @@ \section{Pools}
% | DLT-04May2002 | DLT8000 | Full | 60,486,677,724 | 2002-05 | 31,536,000 | 0 |
% | DLT-26May02 | DLT8000 | Append | 1,336,699,620 | 2002-05 | 31,536,000 | 1 |
% +---------------+---------+--------+----------------+-----/~/-+------------+-----+
% \end{verbatim}
% \end{bconsole}
% \normalsize
%
% Once Bareos has verified that the volume does not already exist, it will
Expand Down Expand Up @@ -1289,4 +1289,4 @@ \section{Other Useful Console Commands}
Most of the commands given above, with the exception of {\bf list}, will
prompt you for the necessary arguments if you simply enter the command name.
The full list of commands is shown in the chapter \nameref{sec:ConsoleCommands}.
The full list of commands is shown in the chapter \nameref{sec:ConsoleCommands}.

0 comments on commit 77be531

Please sign in to comment.