rustic icon indicating copy to clipboard operation
rustic copied to clipboard

`backup`: Add option which command to call for stdin backup

Open aawsome opened this issue 2 years ago • 0 comments

There could be an option like stdin-command such that you could run: rustic backup - --stdin-command "echo test" (which, of course, is equivalent to running echo test | rustic backup -).

The advantage is that you can also use this in your config file, e.g.

# makes a DB snapshot
[backup.sources]
source = "-"
stdin-command = "mysqldump ..."

aawsome avatar Jun 06 '23 05:06 aawsome