X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=docs%2Fmanuals%2Fen%2Fmain%2Ffileset.tex;h=3d18330b26714ef3c67522ddff74def1165d266e;hb=38b66f106ae3cc3a1c56faa6a63336f832208145;hp=41175e86562a4e34321669c0ea2205f43456873b;hpb=e60116502e91060c6bf17158d7353c8dfd922c7c;p=bacula%2Fdocs diff --git a/docs/manuals/en/main/fileset.tex b/docs/manuals/en/main/fileset.tex index 41175e86..3d18330b 100644 --- a/docs/manuals/en/main/fileset.tex +++ b/docs/manuals/en/main/fileset.tex @@ -91,9 +91,7 @@ defined for each Backup job. \index[dir]{Include \{ [ Options \{\lt{}file-options\gt{}\} ...] \lt{}file-list\gt{} \} } \index[dir]{Directive!Include} - -\item [Options \{ \lt{}file-options\gt{} \} ] -\index[dir]{Options \{ \lt{}file-options\gt{} \} } +\index[dir]{Options \{ \lt{}file-options\gt{} \} } \item [Exclude \{ \lt{}file-list\gt{} \}] \index[dir]{Exclude \{ \lt{}file-list\gt{} \} } @@ -206,7 +204,7 @@ when excluding as mentioned above. However, one additional point is that in the case that no match was found, Bacula will use the options found in the last Options resource. As a -consequence, if you want a particular set of "default" options, you should put +consequence, if you want a particular set of ``default'' options, you should put them in an Options resource after any other Options. It is a good idea to put all your wild-card and regex expressions inside @@ -359,8 +357,8 @@ options below. \end{description} A useful set of general options on the {\bf Level=Catalog} or {\bf - Level=DiskToCatalog} verify is {\bf pins5} i.e. compare permission bits, - inodes, number of links, size, and MD5 changes. + Level=DiskToCatalog} verify is {\bf pins5} i.e. compare permission bits, then + inodes, number of links, size, and finally MD5 changes. \item [onefs=yes\vb{}no] \index[dir]{onefs} @@ -445,7 +443,7 @@ Change: 2005-11-06 12:36:48.000000000 +0100 Also be aware that even if you include {\bf /home} in your list of files to backup, as you most likely should, you will get the - informational message that "/home is a different filesystem" when + informational message that ``/home is a different filesystem'' when Bacula is processing the {\bf /} directory. This message does not indicate an error. This message means that while examining the {\bf File =} referred to in the second part of the message, Bacula will @@ -667,10 +665,9 @@ Change: 2005-11-06 12:36:48.000000000 +0100 You may want to test your expressions prior to running your backup by using the bwild program. Please see the - \ilink{Utilities}{bwild} chapter of this manual for - more. You can also test your full FileSet definition by using - the \ilink{estimate}{estimate} command in the Console - chapter of this manual. + \borgxrlink{Utilities}{bwild}{utility}{chapter} of the \utilityman{} for + more information. You can also test your full FileSet definition by using + the \borgxrlink{estimate}{estimate}{console}{command} in the \consoleman{}. It is recommended to enclose the string in double quotes. \item [wilddir=\lt{}string\gt{}] @@ -689,10 +686,9 @@ Change: 2005-11-06 12:36:48.000000000 +0100 You may want to test your expressions prior to running your backup by using the bwild program. Please see the - \ilink{Utilities}{bwild} chapter of this manual for - more. You can also test your full FileSet definition by using - the \ilink{estimate}{estimate} command in the Console - chapter of this manual. + \borgxrlink{Utilities}{bwild}{utility}{chapter} of the \utilityman{} for + more information. You can also test your full FileSet definition by using + the \borgxrlink{estimate}{estimate}{console}{command} in the \consoleman{}. An example of excluding with the WildDir option on Win32 machines is presented below. @@ -715,14 +711,12 @@ Change: 2005-11-06 12:36:48.000000000 +0100 You may want to test your expressions prior to running your backup by using the bwild program. Please see the - \ilink{Utilities}{bwild} chapter of this manual for - more. You can also test your full FileSet definition by using - the \ilink{estimate}{estimate} command in the Console - chapter of this manual. - An example of excluding with the WildFile option on Win32 machines is + \borgxrlink{Utilities}{bwild}{utility}{chapter} of the \utilityman{} for + more information. You can also test your full FileSet definition by using + the \borgxrlink{estimate}{estimate}{console}{command} in the \consoleman{}. + An example of excluding with the WildFile option on Win32 machines is presented below. - \item [regex=\lt{}string\gt{}] \index[dir]{regex} \index[dir]{Directive!regex} @@ -741,10 +735,9 @@ Change: 2005-11-06 12:36:48.000000000 +0100 another, and in addition, regular expressions are complicated, so you may want to test your expressions prior to running your backup by using the bregex program. Please see the - \ilink{Utilities}{bwild} chapter of this manual for - more. You can also test your full FileSet definition by using - the \ilink{estimate}{estimate} command in the Console - chapter of this manual. + \borgxrlink{Utilities}{bwild}{utility}{chapter} of the \utilityman{} for + more information. You can also test your full FileSet definition by using + the \borgxrlink{estimate}{estimate}{console}{command} in the \consoleman{}. You find yourself using a lot of Regex statements, which will cost quite a lot of CPU time, we recommend you simplify them if you can, or better yet @@ -771,8 +764,7 @@ Change: 2005-11-06 12:36:48.000000000 +0100 another, and in addition, regular expressions are complicated, so you may want to test your expressions prior to running your backup by using the bregex program. Please see the - \ilink{Utilities}{bregex} chapter of this manual for - more. + \borgxrlink{bregex}{bregex}{utility}{command} of the \utilityman{} more. \item [regexdir=\lt{}string\gt{}] @@ -793,8 +785,7 @@ Change: 2005-11-06 12:36:48.000000000 +0100 another, and in addition, regular expressions are complicated, so you may want to test your expressions prior to running your backup by using the bregex program. Please see the - \ilink{Utilities}{bregex} chapter of this manual for - more. + \borgxrlink{bregex}{bregex}{utility}{command} of the \utilityman{} more. \item [exclude=yes\vb{}no] @@ -810,7 +801,7 @@ Change: 2005-11-06 12:36:48.000000000 +0100 The default is {\bf no}. If this option is set to yes, and you have the POSIX {\bf libacl} installed on your Linux system, Bacula will backup the file and directory Unix Access Control Lists (ACL) as defined in IEEE Std - 1003.1e draft 17 and "POSIX.1e" (abandoned). This feature is + 1003.1e draft 17 and ``POSIX.1e'' (abandoned). This feature is available on Unix systems only and requires the Linux ACL library. Bacula is automatically compiled with ACL support if the {\bf libacl} library is installed on your Linux system (shown in config.out). While restoring the @@ -897,8 +888,6 @@ Change: 2005-11-06 12:36:48.000000000 +0100 non-local filesystems. Normally, when you use this directive, you would also set {\bf onefs=no} so that Bacula will traverse filesystems. - This option is not implemented in Win32 systems. - \item [DriveType=Windows-drive-type] \index[dir]{DriveType} \index[dir]{Directive!DriveType} @@ -950,7 +939,7 @@ There are a number of special cases when specifying directories and files in a \begin{itemize} \item Any name preceded by an at-sign (@) is assumed to be the name of a - file, which contains a list of files each preceded by a "File =". The + file, which contains a list of files each preceded by a ``File =''. The named file is read once when the configuration file is parsed during the Director startup. Note, that the file is read on the Director's machine and not on the Client's. In fact, the @filename can appear anywhere @@ -1140,8 +1129,7 @@ Include { Ludovic Strappazon has pointed out that this feature can be used to backup a full Microsoft Windows disk. Simply boot into the system using a Linux Rescue - disk, then load a statically linked Bacula as described in the - \ilink{ Disaster Recovery Using Bacula}{RescueChapter} chapter of + disk, then load a statically linked Bacula as described in the \ilink{Disaster Recovery Using Bacula}{RescueChapter} chapter of this manual. Then save the whole disk partition. In the case of a disaster, you can then restore the desired partition by again booting with the rescue disk and doing a restore of the partition. @@ -1168,7 +1156,7 @@ Include { and go on to the next file. The data read can be anything since Bacula treats it as a stream. - This feature can be an excellent way to do a "hot" backup of a very + This feature can be an excellent way to do a ``hot'' backup of a very large database. You can use the {\bf RunBeforeJob} to create the fifo and to start a program that dynamically reads your database and writes it to the fifo. Bacula will then write it to the Volume. Be sure to @@ -1424,7 +1412,7 @@ FileSet { \end{verbatim} \normalsize -The "trick" here was to add a RegexFile expression that matches +The ``trick'' here was to add a RegexFile expression that matches all files. It does not match directory names, so all directories in /myfile will be backed up (the directory entry) and any *.Z and *.gz files contained in them. If you know that certain directories do @@ -1533,12 +1521,13 @@ C:/Documents and Settings/*/My Documents/My Pictures/* To understand how this can be achieved, there are two important points to remember: -Firstly, Bacula walks over the filesystem depth-first starting from the File = -lines. It stops descending when a directory is excluded, so you must include -all ancestor directories of each directory containing files to be included. +Firstly, Bacula traverses the filesystem starting from the File = lines. +It stops descending when a directory is excluded, so you must include all +ancestor (higher level) directories of each directory containing files to +be included. Secondly, each directory and file is compared to the Options clauses in the -order they appear in the FileSet. When a match is found, no further clauses +order they appear in the FileSet. When a match is found, no further Optionss are compared and the directory or file is either included or excluded. The FileSet resource definition below implements this by including specifc @@ -1655,7 +1644,7 @@ the drive and a colon (as in c:). However, the path separators must be specified in Unix convention (i.e. forward slash (/)). If you wish to include a quote in a file name, precede the quote with a backslash (\textbackslash{}). For example you might use the following -for a Windows machine to backup the "My Documents" directory: +for a Windows machine to backup the ``My Documents'' directory: \footnotesize \begin{verbatim} @@ -1691,7 +1680,7 @@ rules: Thanks to Thiago Lima for summarizing the above items for us. If you are having difficulties getting includes or excludes to work, you might want to try using the {\bf estimate job=xxx listing} command documented in the -\ilink{Console chapter}{estimate} of this manual. +\borgxrlink{estimate}{estimate}{console}{command} of \consoleman{}. On Win32 systems, if you move a directory or file or rename a file into the set of files being backed up, and a Full backup has already been made, Bacula @@ -1824,8 +1813,7 @@ as of version 1.37.30 or later. If you wish to get an idea of what your FileSet will really backup or if your exclusion rules will work correctly, you can test it by using the {\bf estimate} command in the Console program. See the -\ilink{estimate}{estimate} in the Console chapter of this -manual. +\borgxrlink{estimate}{estimate}{console}{command} of \consoleman{}. As an example, suppose you add the following test FileSet: