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

borg create --stdin troubles with questions #1065

Closed
ThomasWaldmann opened this issue May 19, 2016 · 5 comments
Closed

borg create --stdin troubles with questions #1065

ThomasWaldmann opened this issue May 19, 2016 · 5 comments

Comments

@ThomasWaldmann
Copy link
Member

ThomasWaldmann commented May 19, 2016

In some cases (repo moved, for example), borg asks questions.
With --stdin, it can't get the answer,because the input stream is connected to a data pipe (not to the keyboard).

@rpodgorny
Copy link
Contributor

...any progress on this? since update to 1.1, all my scripts are stuck at "Warning: Attempting to access a previously unknown unencrypted repository! Do you want to continue? [yN]" :-(((

@ThomasWaldmann
Copy link
Member Author

Use the environment variables to auto-answer the question (once, be careful not override security relevant stuff permanently).

@rpodgorny
Copy link
Contributor

thanks!

@pharaonic-faery
Copy link

Yes. You can also answer the question even if you can't see the prompted question.

But the problem is still here in 1.1.10 version.

I have a similar problem with
borg create --list --show-rc repository::backup backuped-file 2> log-file
The list and the rc are redirected to the error stream instead of the output stream.

@ThomasWaldmann
Copy link
Member Author

Closing this. The env vars solve this and are documented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants