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
Recovery media missing python for borg backup #1727
Comments
Hi @catsem, Please check #1030 (comment) TL;DR V. |
Hey @gozora, Could be seen as an enhancement / feature request. Best |
My knowledge of Python and surrounding infrastructure is very limited and I really don't dare to write code like this.
I am a "happy" owner or "larger" environment and I personally prefer using Borg binaries generated with pyinstaller ;-). For now I'm closing this issue as I guess your original question was answered. V. |
@gozora I mean during 'build' stage something like build/default/980_verify_rootfs.sh |
@catsem Certainly not "just by default". Since ReaR exists is does by default take care that its recovery system Regarding "Python in the rescue image": What would be needed is an automated test to distinguish whether ro not Since ReaR 2.3 we have for usually compiled programs a 'ldd' test I know nothing at all if for Python programs there is a tool |
Hello @jsmeix, Checking Brog installed from Debian repo I have:
Which is OK, I guess, since we are dealing with Python script here. Borg binaries generated with pyinstaller on the other hand returns:
So distinguish between Borg script and Borg binaries generated with pyinstaller is rather easy. What I would do is update of documentaiton and warn users that until they don't use Borg binaries generated with pyinstaller, they need to include all necessary Python files. V. |
@gozora In your #1727 (comment) |
This is something that could be done with "reasonable effort" + documentation update mentioned in #1727 (comment). V. |
Especially not when there is very elegant solution to address this problem, directly from Borg guys ;-) ... V. |
Do you think we can use code like this near the end of build/default/980_verify_rootfs.sh ?
V. |
@gozora |
Automatically copy "the right needed" Python enviroment into ReaR recovery system Let's see when we need Java support in the ReaR recovery system ;-)) |
@jsmeix you nailed it with that Java comment! :-) |
Documentation updated in #1730. I'll add Borg binary vs script check / issue warning in separate PR. V. |
Hey,
I just tried to recover a system where I used borg as backup system. The recovery fails at the step where rear wants to list the borg repository.
When I try to run borg from shell, it tells me that there is no python interpreter available.
Also made a
find / -name 'python*'
with no result.I would be glad for any help
Christian
The text was updated successfully, but these errors were encountered: