Updates the .txt documentation.

This commit is contained in:
Andrea Mazzoleni 2013-02-24 14:43:52 +01:00
parent acad6aad04
commit f84ff1e74a

View file

@ -7,7 +7,7 @@
========== ==========
snapraid [-c, --conf CONFIG] snapraid [-c, --conf CONFIG]
[-f, --filter PATTERN] [-d, --filter-disk NAME] [-f, --filter PATTERN] [-d, --filter-disk NAME] [-m, --filter-missing]
[-a, --audit-only] [-a, --audit-only]
[-N, --find-by-name] [-N, --find-by-name]
[-Z, --force-zero] [-E, --force-empty] [-Z, --force-zero] [-E, --force-empty]
@ -193,13 +193,18 @@ in "sync".
In this regard SnapRAID is more like a backup program than a RAID In this regard SnapRAID is more like a backup program than a RAID
system. For example, you can use it to recover from an accidentally system. For example, you can use it to recover from an accidentally
deleted directory, simply running the fix command like. deleted directory, simply running the fix command using the
-m, --filter-missing filter, like:
snapraid fix -f DIR/ snapraid fix -m -f DIR/
Or to simply recover one file you can use: Or to simply recover one file you can use:
snapraid fix -f FILE snapraid fix -m -f FILE
Or to recover all the delete files with:
snapraid fix -m
5 COMMANDS 5 COMMANDS
@ -322,13 +327,24 @@ SnapRAID provides the following options:
file. file.
In "check", you can make it faster, specifing also -a, --audit-only In "check", you can make it faster, specifing also -a, --audit-only
option, to avoid to access other disks to check parity data. option, to avoid to access other disks to check parity data.
If you combine --filter and --filter-disk options, only files If you combine more --filter, --filter-disk and --filter-missing options,
matching both the two groups of rules are selected. only files matching all the set of filters are selected.
This option can be used many times. This option can be used many times.
This option can be used only with the "check" and "fix" commands. This option can be used only with the "check" and "fix" commands.
Note that it cannot be used with "sync", because "sync" always Note that it cannot be used with "sync", because "sync" always
process the whole array. process the whole array.
-n, --fileter-missing
Filters the files to process in the "check" and "fix"
commands.
Only the files missing/deleted from the array are processed.
When used with "fix", this is a kind of "undelete" command.
If you combine more --filter, --filter-disk and --filter-missing options,
only files matching all the set of filters are selected.
This option can be used only with the "check" and "fix" commands.
Note that it cannot be used with "sync", because "sync" always
process the whole array.
-a, --audit-only -a, --audit-only
When checking, only verify the hash of the files, without When checking, only verify the hash of the files, without
doing any kind of check on the redundancy data. doing any kind of check on the redundancy data.