mirror of
https://github.com/restic/restic.git
synced 2025-12-12 19:42:46 +00:00
backup: Improve help text for --stdin-from-command
This commit is contained in:
@@ -3,10 +3,11 @@ Enhancement: Support reading backup from a program's standard output
|
||||
When reading data from stdin, the `backup` command could not verify whether the
|
||||
corresponding command completed successfully.
|
||||
|
||||
The `backup` command now supports starting an arbitrary command and sourcing
|
||||
the backup content from its standard output. This enables restic to verify that
|
||||
the command completes with exit code zero. A non-zero exit code causes the
|
||||
backup to fail.
|
||||
The `backup` command now supports the `--stdin-from-command` option. When using
|
||||
this option, the arguments to `backup` are interpreted as a command. `backup`
|
||||
then executes the command and stores its standard output in the backup. This
|
||||
enables restic to verify that the command completes with exit code zero. A
|
||||
non-zero exit code causes the backup to fail.
|
||||
|
||||
Example: `restic backup --stdin-from-command mysqldump [...]`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user