We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3ddc45 commit 5195415Copy full SHA for 5195415
npbackup/core/runner.py
@@ -912,6 +912,15 @@ def _apply_config_to_restic_runner(self) -> bool:
912
self.write_logs("No backend binary found", level="error")
913
self._is_ready = False
914
return False
915
+
916
+ # Add currently in use backend binary to environment variables
917
+ # This is useful for additional parameters / scripts that would directly call the backend
918
+ try:
919
+ os.environ["NPBACKUP_BACKEND_BINARY"] = str(self.restic_runner.binary)
920
+ except OSError:
921
+ self.write_logs(
922
+ f"Cannot set env variable NPBACKUP_BACKEND_BINARY to {self.binary}", level="error"
923
+ )
924
return True
925
926
def convert_to_json_output(
0 commit comments