gfsec-split(1)

gfsec-split1

Split a file into shares and dispatch them

Usage

gfsec-split [{-h | --help}] [{-v | --version}] [{-n | --threshold N}] [{-c | --config file}] [{-i | --interactive}] [{-k | --keep}] [{-o | --output file}] [{-r | --restore-cmd command}] [{-d | --destroy-cmd command}] [{-l | --list-supports}] file URI ...

Overview

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).

Options

-h, --help

Display the help message.

-v, --version

Display the version message.

-n, --threshold N

Specify the minimal number of shares required to re-assemble the split file. Default is 2.

-c, --config file

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, --output file 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-cmd command Specify the command that gfsec-use will call to restore the secret. -d, --destroy-cmd command 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.

SHARE URIs

Shares are described using a URI-like syntax. For each share, the URI indicates a storage device and a pathname on that device.

Supported URI schemes are:

file:///

Indicates a file on the local filesystem.

uuid://uuid/

Indicates a file on the external volume identified by the specified UUID.

label://label/

Indicates a file on the external volume identified by the specified label.

mtp://serial/

Indicates a file on the MTP device identified by the specified serial number.

http://host/

Indicates a file on a web server identified by its hostname.

https://host/

Same as the previous one, but the web server is to be accessed through a secure connection.

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.

Releases

3 releases since Debian 11 (Bullseye); the text changed 2 times.

  1. 11
  2. 12
  3. 13

Reporting bugs

Report bugs to Damien Goutte-Gattat ⟨[email protected]⟩.

From gfsecret 0.5.1-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.