diff options
author | Joerg Steffens <joerg.steffens@bareos.com> | 2015-12-05 00:52:15 +0300 |
---|---|---|
committer | Joerg Steffens <joerg.steffens@bareos.com> | 2015-12-09 19:06:08 +0300 |
commit | 0f6ebd5f01dbc656e5db468990857ce37b485464 (patch) | |
tree | 88b52770ff903d836fa09ee90aa82a7f867a7cfe | |
parent | adf2e8259e252fb7691d7714418347d7301cf83d (diff) |
migration: mark resources by latex commands
-rw-r--r-- | manuals/en/main/bareos.sty | 2 | ||||
-rw-r--r-- | manuals/en/main/migration.tex | 36 |
2 files changed, 22 insertions, 16 deletions
diff --git a/manuals/en/main/bareos.sty b/manuals/en/main/bareos.sty index 07d85be..79db2db 100644 --- a/manuals/en/main/bareos.sty +++ b/manuals/en/main/bareos.sty @@ -143,6 +143,7 @@ \newcommand{\command}[1]{\path|#1|} % to also link to a directive, use \linkResourceDirective}{Dir|Sd|Fd}{Resource}{Directive Name} \newcommand{\configdirective}[1]{\textbf{#1}} +\newcommand{\configresource}[1]{\path|#1|} \newcommand{\configline}[1]{\path|#1|} \newcommand{\directory}[1]{\path|#1|} \newcommand{\email}[1]{\url{#1}} @@ -159,6 +160,7 @@ \newcommand{\pluginevent}[1]{\path|#1|} \newcommand{\pool}[1]{\path|#1|} \newcommand{\argument}[1]{\textit{#1}} +\newcommand{\resourcename}[1]{\path|#1|} \newcommand{\registrykey}[1]{\path|#1|} \newcommand{\variable}[1]{\path|#1|} \newcommand{\volume}[1]{\path|#1|} diff --git a/manuals/en/main/migration.tex b/manuals/en/main/migration.tex index 126da90..956ff13 100644 --- a/manuals/en/main/migration.tex +++ b/manuals/en/main/migration.tex @@ -237,15 +237,17 @@ Storage { } \end{bconfig} -Note that the backup job writes to the {\tt Default} pool, which -corresponds to {\tt File} storage. There is no {\tt Storage} directive -in the Job resource while the two {\tt Pool} resources contain -different {\tt Storage} directives. Moreover, the {\tt Default} -pool contains a {\tt Next Pool} directive that refers to the {\tt -Tape} pool. - -In order to migrate jobs from the Default pool to the Tape pool we -add the following Job resource: +Note that the backup job writes to the \pool{Default} pool, which +corresponds to \resourcename{File} storage. There is no +\linkResourceDirective{Dir}{Pool}{Storage} directive +in the Job resource while the two \configresource{Pool} resources contain +different \linkResourceDirective{Dir}{Pool}{Storage} directives. +Moreover, the \pool{Default} +pool contains a \linkResourceDirective{Dir}{Pool}{Next Pool} directive +that refers to the \pool{Tape} pool. + +In order to migrate jobs from the \pool{Default} pool to the \pool{Tape} pool +we add the following Job resource: \begin{bconfig}{migrate all volumes of a pool} Job { @@ -258,12 +260,14 @@ Job { } \end{bconfig} -The {\bf Selection Type} and {\bf Selection pattern} directives -instruct Bareos to select all volumes of the given pool ({\bf Default}) -whose volume names match the given regular expression ({\bf "."}), +The \linkResourceDirective{Dir}{Job}{Selection Type} and +\linkResourceDirective{Dir}{Job}{Selection Pattern} directives +instruct Bareos to select all volumes of the given pool (\pool{Default}) +whose volume names match the given regular expression (\argument{"."}), i.e., all volumes. Hence those jobs which were backed up to any volume -in the {\bf Default} pool will be migrated. Because of the {\bf Next -Pool} directive of the {\bf Default} pool resource, the jobs will be +in the \pool{Default} pool will be migrated. Because of the +\linkResourceDirective{Dir}{Pool}{Next Pool} directive +of the \pool{Default} pool resource, the jobs will be migrated to tape storage. Another way to accomplish the same is the following Job resource: @@ -279,8 +283,8 @@ Job { } \end{bconfig} -This migrates all jobs ending with {\bf Save} from the {\bf Default} -pool to the {\bf Tape} pool, i.e., from File storage to Tape storage. +This migrates all jobs ending with \argument{Save} from the \pool{Default} +pool to the \pool{Tape} pool, i.e., from File storage to Tape storage. \subsubsection{Multiple Storage Daemons} \label{sec:CopyMigrationJobsMultipleStorageDaemons} |