gfsec-split - Split a file into shares and dispatch them
Contents
Copyright
Copyright © 2017,2021 Damien Goutte-Gattat
This program is released under the GNU General Public License. See the COPYING file in the source
distribution or http://www.gnu.org/licenses/gpl.html.
gfsecret 0.5.1 2021-07-17 GFSEC-SPLIT(1)
Description
gfsec-split splits a file into a number of shares and dispatches the resulting shares onto external
storage supports.
The split file can then be temporarily reconstructed using the accompanying program gfsec-use(1).
Example Invocation
gfsec-split \
/home/alice/mysecret \
file:///home/alice/.local/share/gfsecret/mysecret \
label://USBSTICK/mysecret \
mtp://RF2GB6X704P/Documents/mysecret \
The above example will split the file /home/alice/mysecret into three shares: one on the local
filesystem, one on the USB mass storage device with the label USBSTICK, and one on the MTP-compliant
device with the serial RF2GB6X704P. A configuration file will be written in
$XDG_CONFIG_HOME/gfsecret/mysecret allowing to automatically reconstruct the file with gfsec-use(1)
provided at least one of the two removable supports are present.
Name
gfsec-split - Split a file into shares and dispatch them
Options
-h, --help
Display the help message.
-v, --version
Display the version message.
-n, --thresholdN
Specify the minimal number of shares required to re-assemble the split file. Default is 2.
-c, --configfile
Write the configuration file (allowing to reconstruct the secret with gfsec-use(1) ) to the
specified file. Default is the basename of the split file in $XDG_CONFIG_HOME/gfsecret. If FILE
is a single filename without extension and without a directory part, the file will be placed under
the $XDG_CONFIG_HOME/gfsecret directory with a .conf extension.
-i, --interactive
Present the user with an interactive menu to specify the shares to create.
-k, --keep
By default, gfsec-split will delete the original file once it has been successfully split. Use
this option to prevent the file to be deleted. -o, --outputfile Specify the location where
gfsec-use will write the reconstructed secret. The default is to use the original location. If set
to an empty string, no location will be written in the configuration file. -r, --restore-cmdcommand Specify the command that gfsec-use will call to restore the secret. -d, --destroy-cmdcommand Specify the command that gfsec-use will call to destroy the secret when it is no longer
needed. The same command will also be called by gfsec-split to destroy the secret once it has
been split, unless the -k option has been used.
-l, --list-supports
List all the currently available supports which can be used to store shares, then quit.
Reporting Bugs
Report bugs to Damien Goutte-Gattat.
See Also
gfsec-use(1), gfsplit(1), gfcombine(1), libgfshare(3), gfshare(7)
Synopsis
gfsec-split [-h|--help] [-v|--version] [-n|--thresholdN] [-c|--configfile] [-i|--interactive]
[-k|--keep] [-o|--outputfile] [-r|--restore-cmdcommand] [-d|--destroy-cmdcommand]
[-l|--list-supports] fileURI...