[Borgbackup] borg can't find executable on remote

Steve Schow steve at bstage.com
Wed May 11 22:07:13 EDT 2016


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



More information about the Borgbackup mailing list