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
Error on recovery if REQUIRED_PROGS specified with absolute path #2206
Comments
@adatum If you need to copy arbitrary files into the ReaR recovery system I think how those variables are meant to be used could be better explained |
I agree those variables could be explained better, as I struggled to tell the difference between COPY_AS_IS and PROGS. Does COPY_AS_IS put executables in /bin/ ? I got the impression COPY_AS_IS is for copying libraries, though it's also unclear to me where they would end up being copied to in the rescue media, i.e. is the path preserved? The documentation mentions that it is highly recommended to include the borg standalone executable, but it does not mention how to do this and which variable in default.conf to use. Ideally, it should be placed in /bin/ in the rescue media. |
Just click Install Borg backup link in the mentioned documentation. Excerpt:
and you are done, no need to include anything ... V. |
@gozora I suppose that is an option, but that means using the standalone binary on the system. I would rather use the system package so that it gets automatically updated. The binary is just for including in ReaR rescue media without dealing with dependencies. |
When checking for required programs also test for "basename program" because when required programs are specified with absolute path those programs appears in the ReaR recovery system in /bin/ so testing their original path would falsely fail during "rear recover", see #2206
I think #2397 should fix this issue. |
Update init/default/950_check_missing_programs.sh When checking for required programs also test for "basename program" because when required programs are specified with absolute path those programs appear in the ReaR recovery system in /bin/ so testing their original path would falsely fail during "rear recover" see #2206
With #2397 merged But note
|
ReaR version ("/usr/sbin/rear -V"): 2.4
OS version ("cat /etc/rear/os.conf" or "lsb_release -a" or "cat /etc/os-release"): Fedora 30
ReaR configuration files ("cat /etc/rear/site.conf" and/or "cat /etc/rear/local.conf"):
REQUIRED_PROGS=( "${REQUIRED_PROGS[@]}" /home/test/Downloads/borg-linux64 )
System architecture (x86 compatible or PPC64/PPC64LE or what exact ARM device): x86_64
Firmware (BIOS or UEFI or Open Firmware) and bootloader (GRUB or ELILO or Petitboot): UEFI
Description of the issue (ideally so that others can reproduce it):
Upon recovery, ReaR gives an error and aborts when a required program is specified with an absolute path, which naturally may not exist in the recovery media.
The program,
borg-linux64
is nevertheless present in the recovery media, though located in/bin
as it should.REQUIRED_PROGS
line in/etc/rear/local.conf
in the recovery environment before runningrear recover
.PROGS
instead ofREQUIRED_PROGS
.The text was updated successfully, but these errors were encountered: