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

@ -13,7 +13,7 @@ Synopsis
: [-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]
Description
SnapRAID is a backup program for disk arrays. It stores redundancy
@ -513,6 +513,15 @@ 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.