Adds a new -C, --gen-conf option to generate the configuration file from the content file.

This commit is contained in:
Andrea Mazzoleni 2013-09-21 15:53:46 +02:00
parent c956f55d62
commit c5d0aa01c1
7 changed files with 124 additions and 7 deletions

View file

@ -17,7 +17,7 @@ snapraid [-c, --conf CONFIG]
[-s, --start BLKSTART] [-t, --count BLKCOUNT]
sync|status|scrub|diff|dup|pool|check|fix|rehash
snapraid [-V, --version] [-h, --help]
snapraid [-V, --version] [-h, --help] [-C, --gen-conf CONTENT]
2 DESCRIPTION
@ -556,6 +556,15 @@ SnapRAID provides the following options:
Processes only the specified number of blocks.
It's present mainly for advanced manual recovering.
-C, --gen-conf CONTENT_FILE
Generates a dummy configuration file from an existing
content file.
The configuration file is written in the standard output,
and it doesn't overwrite an existing one.
This configuration file also contains the information
needed to reconstruct the disk mount points, in case you
lose the entire system.
-v, --verbose
Prints more information in the processing.