Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aawsome opened this issue Jun 6, 2023 · 0 comments
Open

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

aawsome opened this issue Jun 6, 2023 · 0 comments
Labels
A-cli Area: `rustic` command line interface C-enhancement Category: New feature or request good first issue Call for participation: Good for newcomers

Comments

@aawsome
Copy link
Member

aawsome commented Jun 6, 2023

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 aawsome added C-enhancement Category: New feature or request A-cli Area: `rustic` command line interface good first issue Call for participation: Good for newcomers labels Jun 6, 2023
@simonsan simonsan changed the title backup: Add option which command to call for stdin backup backup: Add option which command to call for stdin backup Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cli Area: `rustic` command line interface C-enhancement Category: New feature or request good first issue Call for participation: Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant