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

updating cache asks password multiple times. #2

Open
thepenguinthatwants opened this issue Mar 10, 2019 · 1 comment
Open

updating cache asks password multiple times. #2

thepenguinthatwants opened this issue Mar 10, 2019 · 1 comment

Comments

@thepenguinthatwants
Copy link

I am not sure if this is default behaviour. When I update the cache files it asks me separately for every single backup. I have a script that takes backup once a day. When I run this after a week it asks me password for 7 times.

borg-restore.pl -u

It asks me same password repeatedly for every single backup? Is there any way to make it only ask once? Or is there a way to add the password from a file or a command? to make it into a cronjob?

@Bluewind
Copy link
Owner

That's due to borg-restore.pl starting borg multiple times. You should be able to use borg's own environment variables (BORG_PASSPHRASE, BORG_PASSCOMMAND, BORG_PASSPHRASE_FD) to pass your password to those borg processes. I'm not entirely sure if this works or if perl's taint more or anything else remove those environment variables. I think it should work, but I don't use password protected borg repos personally so I can't test this right now.

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

2 participants