Skip to content

backup: Add option which command to call for stdin backup #662

@aawsome

Description

@aawsome

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cliArea: `rustic` command line interfaceC-enhancementCategory: New feature or requestgood first issueCall for participation: Good for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions