mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Explains better the usage of file and directory rules.
This commit is contained in:
parent
8222c45ebb
commit
cc19b0eb25
3 changed files with 36 additions and 21 deletions
19
snapraid.1
19
snapraid.1
|
|
@ -636,11 +636,11 @@ exclude Thumbs.db
|
|||
.PD 0
|
||||
.PP
|
||||
.PD
|
||||
exclude \(rs$RECYCLE.BIN\(rs
|
||||
exclude \(rs$RECYCLE.BIN
|
||||
.PD 0
|
||||
.PP
|
||||
.PD
|
||||
exclude \(rsSystem Volume Information\(rs
|
||||
exclude \(rsSystem Volume Information
|
||||
.PD 0
|
||||
.PP
|
||||
.PD
|
||||
|
|
@ -654,7 +654,7 @@ There are four different types of patterns:
|
|||
.B FILE
|
||||
Selects any file named as FILE. You can use any globbing
|
||||
character like * and ?.
|
||||
This pattern is applied to both files and directories.
|
||||
This pattern is applied only to files and not to directories.
|
||||
.TP
|
||||
.B DIR/
|
||||
Selects any directory named DIR. You can use any globbing
|
||||
|
|
@ -663,21 +663,26 @@ This pattern is applied only to directories and not to files.
|
|||
.TP
|
||||
.B /PATH/FILE
|
||||
Selects the exact specified file path. You can use any
|
||||
globbing character like * and ? but they never matches a
|
||||
globbing character like * and ? but they never match a
|
||||
directory slash.
|
||||
This pattern is applied to both files and directories.
|
||||
This pattern is applied only to files and not to directories.
|
||||
.TP
|
||||
.B /PATH/DIR/
|
||||
Selects the exact specified directory path. You can use any
|
||||
globbing character like * and ? but they never matches a
|
||||
globbing character like * and ? but they never match a
|
||||
directory slash.
|
||||
This pattern is applied only to directories and not to files.
|
||||
.PP
|
||||
In Windows you can freely use the backslash \(rs instead of the forward slash /.
|
||||
.PP
|
||||
Note that Windows system directories, junction to directories,
|
||||
mount points, and any other Windows special directory is treated just
|
||||
as a file, meaning that to exclude it you must use a file rule, and
|
||||
not a directory one.
|
||||
.PP
|
||||
In the configuration file, you can use different strategies to filter
|
||||
the files to process.
|
||||
The simplest one is to only use \(a"exclude\(a" rules to remove all the
|
||||
The simplest one is to use only \(a"exclude\(a" rules to remove all the
|
||||
files and directories you do not want to process. For example:
|
||||
.PP
|
||||
.RS 4
|
||||
|
|
|
|||
19
snapraid.d
19
snapraid.d
|
|
@ -463,8 +463,8 @@ Configuration
|
|||
:disk d3 I:\array\
|
||||
:exclude *.bak
|
||||
:exclude Thumbs.db
|
||||
:exclude \$RECYCLE.BIN\
|
||||
:exclude \System Volume Information\
|
||||
:exclude \$RECYCLE.BIN
|
||||
:exclude \System Volume Information
|
||||
|
||||
Pattern
|
||||
Patterns are used to select a subset of files to exclude or include in
|
||||
|
|
@ -475,7 +475,7 @@ Pattern
|
|||
=FILE
|
||||
Selects any file named as FILE. You can use any globbing
|
||||
character like * and ?.
|
||||
This pattern is applied to both files and directories.
|
||||
This pattern is applied only to files and not to directories.
|
||||
|
||||
=DIR/
|
||||
Selects any directory named DIR. You can use any globbing
|
||||
|
|
@ -484,21 +484,26 @@ Pattern
|
|||
|
||||
=/PATH/FILE
|
||||
Selects the exact specified file path. You can use any
|
||||
globbing character like * and ? but they never matches a
|
||||
globbing character like * and ? but they never match a
|
||||
directory slash.
|
||||
This pattern is applied to both files and directories.
|
||||
This pattern is applied only to files and not to directories.
|
||||
|
||||
=/PATH/DIR/
|
||||
Selects the exact specified directory path. You can use any
|
||||
globbing character like * and ? but they never matches a
|
||||
globbing character like * and ? but they never match a
|
||||
directory slash.
|
||||
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 Windows system directories, junction to directories,
|
||||
mount points, and any other Windows special directory is treated just
|
||||
as a file, meaning that to exclude it you must use a file rule, and
|
||||
not a directory one.
|
||||
|
||||
In the configuration file, you can use different strategies to filter
|
||||
the files to process.
|
||||
The simplest one is to only use "exclude" rules to remove all the
|
||||
The simplest one is to use only "exclude" rules to remove all the
|
||||
files and directories you do not want to process. For example:
|
||||
|
||||
:# Excludes any file named "*.bak"
|
||||
|
|
|
|||
19
snapraid.txt
19
snapraid.txt
|
|
@ -511,8 +511,8 @@ An example of a typical configuration for Windows is:
|
|||
disk d3 I:\array\
|
||||
exclude *.bak
|
||||
exclude Thumbs.db
|
||||
exclude \$RECYCLE.BIN\
|
||||
exclude \System Volume Information\
|
||||
exclude \$RECYCLE.BIN
|
||||
exclude \System Volume Information
|
||||
|
||||
|
||||
8 PATTERN
|
||||
|
|
@ -526,7 +526,7 @@ There are four different types of patterns:
|
|||
FILE
|
||||
Selects any file named as FILE. You can use any globbing
|
||||
character like * and ?.
|
||||
This pattern is applied to both files and directories.
|
||||
This pattern is applied only to files and not to directories.
|
||||
|
||||
DIR/
|
||||
Selects any directory named DIR. You can use any globbing
|
||||
|
|
@ -535,21 +535,26 @@ There are four different types of patterns:
|
|||
|
||||
/PATH/FILE
|
||||
Selects the exact specified file path. You can use any
|
||||
globbing character like * and ? but they never matches a
|
||||
globbing character like * and ? but they never match a
|
||||
directory slash.
|
||||
This pattern is applied to both files and directories.
|
||||
This pattern is applied only to files and not to directories.
|
||||
|
||||
/PATH/DIR/
|
||||
Selects the exact specified directory path. You can use any
|
||||
globbing character like * and ? but they never matches a
|
||||
globbing character like * and ? but they never match a
|
||||
directory slash.
|
||||
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 Windows system directories, junction to directories,
|
||||
mount points, and any other Windows special directory is treated just
|
||||
as a file, meaning that to exclude it you must use a file rule, and
|
||||
not a directory one.
|
||||
|
||||
In the configuration file, you can use different strategies to filter
|
||||
the files to process.
|
||||
The simplest one is to only use "exclude" rules to remove all the
|
||||
The simplest one is to use only "exclude" rules to remove all the
|
||||
files and directories you do not want to process. For example:
|
||||
|
||||
# Excludes any file named "*.bak"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue