[Borgbackup] borg can't find executable on remote

Steve Schow steve at bstage.com
Wed May 11 23:17:13 EDT 2016


I was wrong, I had my env in .bash_profile.  I moved stuff to .bashrc and it works now.  Looks like borg is indeed calling the bash shell to call the borg indirectly for exactly this reason.

—remote-path also worked, thanks for that.

Now I just need to figure out how to automate all the passwords and I’ll be good to go.  


On May 11, 2016, at 8:39 PM, Steve Schow <steve at bstage.com> wrote:

> I notice the error message that comes back is a bash error…so can someone confirm that borg is actually calling bash to indirectly call borg through the bash shell, as opposed to call borg directly?
> 
> 
> 
> On May 11, 2016, at 8:24 PM, Dan Christensen <jdc at uwo.ca> wrote:
> 
>> The shell on the remote end should run the .bashrc init file,
>> and environment variables can be set there.  There are other ways
>> too, but this is getting off topic for the list.
>> 
>> Dan
>> 
>> On May 11, 2016, Steve Schow <steve at bstage.com> wrote:
>> 
>>> That makes sense.  Do you know if there is a way to provide env settings to ssh calls?
>>> 
>>> Sent from my iPhone
>>> 
>>>> On May 11, 2016, at 5:42 PM, Dan Christensen <jdc at uwo.ca> wrote:
>>>> 
>>>>> On May 11, 2016, Steve Schow <steve at bstage.com> wrote:
>>>>> 
>>>>> is there any reason by borg’s method of calling SSH would not get the user’s env?
>>>> 
>>>> "Login" shells run extra init scripts, such as .profile.  Compare what
>>>> happens if you login to the remote machine, and then type "echo $PATH":
>>>> 
>>>> ssh user at remote
>>>> echo $PATH  [in the remote shell]
>>>> 
>>>> vs. what happens if you run
>>>> 
>>>> ssh user at remote 'echo $PATH'
>>>> 
>>>> (Note the single quotes, so the $PATH variable gets expanded on the
>>>> remote end.)
>>>> 
>>>> The latter doesn't create a login shell.
>>>> 
>>>> As was suggested, the --remote-path option will solve this for you.
>>>> Or, you can set your path in your .bashrc file, which is run in both
>>>> cases.
>>>> 
>>>> Dan
> 
> _______________________________________________
> Borgbackup mailing list
> Borgbackup at python.org
> https://mail.python.org/mailman/listinfo/borgbackup



More information about the Borgbackup mailing list