Clarifies the path usage in the filter rules.

This commit is contained in:
Andrea Mazzoleni 2014-01-18 16:42:56 +01:00
parent 81f2fde927
commit 2f0b2178b2
3 changed files with 39 additions and 36 deletions

View file

@ -1082,8 +1082,8 @@ character like * and ?.
This pattern is applied only to files and not to directories. This pattern is applied only to files and not to directories.
.TP .TP
.B DIR/ .B DIR/
Selects any directory named DIR. You can use any globbing Selects any directory named DIR and everything inside.
character like * and ?. You can use any globbing character like * and ?.
This pattern is applied only to directories and not to files. This pattern is applied only to directories and not to files.
.TP .TP
.B /PATH/FILE .B /PATH/FILE
@ -1093,17 +1093,18 @@ directory slash.
This pattern is applied only to files and not to directories. This pattern is applied only to files and not to directories.
.TP .TP
.B /PATH/DIR/ .B /PATH/DIR/
Selects the exact specified directory path. You can use any Selects the exact specified directory path and everything
globbing character like * and ? but they never match a inside. You can use any globbing character like * and ? but
directory slash. they never match a directory slash.
This pattern is applied only to directories and not to files. This pattern is applied only to directories and not to files.
.PP .PP
In Windows you can freely use the backslash \(rs instead of the forward slash /. Note that when you specify an absolute path starting with /, it\(cqs
applied at the array root dir and not at the local filesystem root dir.
.PP .PP
Note that Windows system directories, junction to directories, In Windows you can use the backslash \(rs instead of the forward slash /.
mount points, and any other Windows special directory is treated just Note that Windows system directories, junctions, mount points, and any
as a file, meaning that to exclude it you must use a file rule, and other Windows special directory are treated just as files, meaning that
not a directory one. to exclude them you must use a file rule, and not a directory one.
.PP .PP
In the configuration file, you can use different strategies to filter In the configuration file, you can use different strategies to filter
the files to process. the files to process.
@ -1218,8 +1219,8 @@ snapraid \-f \(a"*.mp3\(a" check
.PD .PD
.RE .RE
.PP .PP
In Unix, when using globbing chars in the command line, you have to quote them. In Unix, when using globbing chars in the command line, you have to
Otherwise the shell will try to expand them. quote them. Otherwise the shell will try to expand them.
.SH RECOVERING .SH RECOVERING
The worst happened, and you lost a disk! The worst happened, and you lost a disk!
.PP .PP

View file

@ -798,8 +798,8 @@ Pattern
This pattern is applied only to files and not to directories. This pattern is applied only to files and not to directories.
=DIR/ =DIR/
Selects any directory named DIR. You can use any globbing Selects any directory named DIR and everything inside.
character like * and ?. You can use any globbing character like * and ?.
This pattern is applied only to directories and not to files. This pattern is applied only to directories and not to files.
=/PATH/FILE =/PATH/FILE
@ -809,17 +809,18 @@ Pattern
This pattern is applied only to files and not to directories. This pattern is applied only to files and not to directories.
=/PATH/DIR/ =/PATH/DIR/
Selects the exact specified directory path. You can use any Selects the exact specified directory path and everything
globbing character like * and ? but they never match a inside. You can use any globbing character like * and ? but
directory slash. they never match a directory slash.
This pattern is applied only to directories and not to files. This pattern is applied only to directories and not to files.
In Windows you can freely use the backslash \ instead of the forward slash /. Note that when you specify an absolute path starting with /, it's
applied at the array root dir and not at the local filesystem root dir.
Note that Windows system directories, junction to directories, In Windows you can use the backslash \ instead of the forward slash /.
mount points, and any other Windows special directory is treated just Note that Windows system directories, junctions, mount points, and any
as a file, meaning that to exclude it you must use a file rule, and other Windows special directory are treated just as files, meaning that
not a directory one. to exclude them you must use a file rule, and not a directory one.
In the configuration file, you can use different strategies to filter In the configuration file, you can use different strategies to filter
the files to process. the files to process.
@ -863,8 +864,8 @@ Pattern
:# Note the "" use to avoid globbing expansion by the shell in Unix. :# Note the "" use to avoid globbing expansion by the shell in Unix.
:snapraid -f "*.mp3" check :snapraid -f "*.mp3" check
In Unix, when using globbing chars in the command line, you have to quote them. In Unix, when using globbing chars in the command line, you have to
Otherwise the shell will try to expand them. quote them. Otherwise the shell will try to expand them.
Recovering Recovering
The worst happened, and you lost a disk! The worst happened, and you lost a disk!

View file

@ -867,8 +867,8 @@ There are four different types of patterns:
This pattern is applied only to files and not to directories. This pattern is applied only to files and not to directories.
DIR/ DIR/
Selects any directory named DIR. You can use any globbing Selects any directory named DIR and everything inside.
character like * and ?. You can use any globbing character like * and ?.
This pattern is applied only to directories and not to files. This pattern is applied only to directories and not to files.
/PATH/FILE /PATH/FILE
@ -878,17 +878,18 @@ There are four different types of patterns:
This pattern is applied only to files and not to directories. This pattern is applied only to files and not to directories.
/PATH/DIR/ /PATH/DIR/
Selects the exact specified directory path. You can use any Selects the exact specified directory path and everything
globbing character like * and ? but they never match a inside. You can use any globbing character like * and ? but
directory slash. they never match a directory slash.
This pattern is applied only to directories and not to files. This pattern is applied only to directories and not to files.
In Windows you can freely use the backslash \ instead of the forward slash /. Note that when you specify an absolute path starting with /, it's
applied at the array root dir and not at the local filesystem root dir.
Note that Windows system directories, junction to directories, In Windows you can use the backslash \ instead of the forward slash /.
mount points, and any other Windows special directory is treated just Note that Windows system directories, junctions, mount points, and any
as a file, meaning that to exclude it you must use a file rule, and other Windows special directory are treated just as files, meaning that
not a directory one. to exclude them you must use a file rule, and not a directory one.
In the configuration file, you can use different strategies to filter In the configuration file, you can use different strategies to filter
the files to process. the files to process.
@ -932,8 +933,8 @@ patterns. For example:
# Note the "" use to avoid globbing expansion by the shell in Unix. # Note the "" use to avoid globbing expansion by the shell in Unix.
snapraid -f "*.mp3" check snapraid -f "*.mp3" check
In Unix, when using globbing chars in the command line, you have to quote them. In Unix, when using globbing chars in the command line, you have to
Otherwise the shell will try to expand them. quote them. Otherwise the shell will try to expand them.
9 RECOVERING 9 RECOVERING