Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
configure export
Browse files Browse the repository at this point in the history
  • Loading branch information
joergsteffens committed Sep 19, 2016
1 parent bbcfd98 commit 467b629
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 8 deletions.
28 changes: 26 additions & 2 deletions manuals/en/main/bconsole.tex
Expand Up @@ -457,11 +457,11 @@ \section{Console Commands}
\label{sec:bcommandConfigure}

Configures director resources during runtime.
The first configure subcommand \bcommand{configure}{add} is available since Bareos \sinceVersion{console}{configure add}{16.2.4}.
The first configure subcommands are \bcommand{configure}{add} and \bcommand{configure}{export}.
Other subcommands may follow in later releases.

\begin{description}
\item[add]
\item [configure add]
\label{sec:bcommandConfigureAdd}
\index[general]{Console!Command!configure add}

Expand Down Expand Up @@ -515,6 +515,30 @@ \section{Console Commands}

\warning{Don't be confused by the extensive output of \bcommand{help}{configure}. As \bcommand{configure}{add} allows configuring arbitrary resources, the output of \bcommand{help}{configure} lists all the resources, each with all valid directives. The same data is also used for \command{bconsole} command line completion.}

Available since Bareos \sinceVersion{console}{configure add}{16.2.4}.


\item [configure export]
\label{sec:bcommandConfigureExport}
\index[general]{Console!Command!configure export}

This command allows to export the \resourcetype{Fd}{Director} resource for clients already configured in the \bareosDir.

Usage:
\begin{bconsole}{Export the bareos-fd Director resource for the client bareos-fd}
configure export client=bareos-fd
Exported resource file "/etc/bareos/bareos-dir-export/client/bareos-fd/bareos-fd.d/director/bareos-dir.conf":
Director {
Name = bareos-dir
Password = "[md5]932d1d3ef3c298047809119510f4bee6"
}
\end{bconsole}

To use it, copy the \resourcetype{Fd}{Director} resource file to the client machine
(on Linux: to \directory{/etc/bareos/bareos-fd.d/director/}) and restart the \bareosFd.

Available since Bareos \sinceVersion{console}{configure export}{16.2.4}.

\end{description}


Expand Down
8 changes: 4 additions & 4 deletions manuals/en/main/configure.tex
Expand Up @@ -47,7 +47,7 @@ \section{Configuration Path Layout}

When a Bareos component starts, it reads its configuration.
In Bareos $<$ 16.2.2 only configuration files (which optionally can include other files) are supported.
Since Bareos \sinceVersion{}{Configuration Subdirectories}{16.2.2} also configuration subdirectories are supported.
Since Bareos \sinceVersion{}{Subdirectory Configuration Scheme}{16.2.2} also configuration subdirectories are supported.

\subsubsection{Naming}

Expand Down Expand Up @@ -184,7 +184,7 @@ \subsubsection{Reason for the Subdirectory Configuration Scheme}
The Bareos \ilink{configure}{sec:bcommandConfigure} command
requires a configuration directory structure, as provided by the subdirectory approach.
From Bareos \sinceVersion{}{Configuration subdirectories are used by default}{16.2.4} on,
From Bareos \sinceVersion{}{Subdirectory Configuration Scheme used as Default}{16.2.4} on,
new installations will use configuration subdirectories by default.
Expand Down Expand Up @@ -235,8 +235,8 @@ \subsubsection{Using Subdirectories Configuration Scheme}
\paragraph{New installation}
\begin{itemize}
\item The Subdirectories Configuration Scheme is used
by default from Bareos \sinceVersion{}{Subdirectories Configuration Scheme}{16.2.4} onwards.
\item The Subdirectories Configuration Scheme is used
by default from Bareos \sinceVersion{}{Subdirectory Configuration Scheme used as Default}{16.2.4} onwards.
\item They will be usable immediately after installing a Bareos component.
\item If additional packages entail example configuration files (\path|$NAME.conf.example|),
copy them to \path|$NAME.conf|, modify it as required and reload or restart the component.
Expand Down
2 changes: 1 addition & 1 deletion manuals/en/main/quickstart.tex
Expand Up @@ -83,7 +83,7 @@ \section{Setting Up Bareos Configuration Files}

On Unix, Bareos configuration files are usually located in the \path|/etc/bareos/| directory
and are named accordingly to the programs that use it.
Since Bareos \sinceVersion{Dir}{Subdirectory Configuration Scheme}{16.2.4} the default configuration
Since Bareos \sinceVersion{Dir}{Subdirectory Configuration Scheme used as Default}{16.2.4} the default configuration
is stored as one file per resource in subdirectories under \directory{bareos-dir.d}, \directory{bareos-sd.d} or \directory{bareos-fd.d}.
For details, see \nameref{ConfigureChapter} and \nameref{sec:SubdirectoryConfigurationScheme}.

Expand Down
2 changes: 1 addition & 1 deletion manuals/en/main/tutorial.tex
Expand Up @@ -708,7 +708,7 @@ \subsection*{Client: install package}

\subsection*{Director: configure client}

Bareos \sinceVersion{Dir}{configure}{16.2.4} offers the \ilink{configure add command}{sec:bcommandConfigure} to add resources to the \bareosDir.
Bareos \sinceVersion{Dir}{configure add}{16.2.4} offers the \ilink{configure add command}{sec:bcommandConfigure} to add resources to the \bareosDir.

Start the \command{bconsole} and use the \bcommand{configure}{add client} command.
Address must be a DNS resolvable name or an IP address.
Expand Down

0 comments on commit 467b629

Please sign in to comment.