Skip to content
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

backintime fails when remote shell is fish #470

Closed
Germar opened this issue Oct 11, 2015 · 3 comments
Closed

backintime fails when remote shell is fish #470

Germar opened this issue Oct 11, 2015 · 3 comments

Comments

@Germar
Copy link
Member

Germar commented Oct 11, 2015

Setting up a profile (backing up via ssh) fails when remote shell is fish.

backintime complains that cannot create remote folder. starting the backintime-qt4 from terminal I see the following error:

Unsupported use of '||'. In fish, please use 'COMMAND; or COMMAND'.
fish: d=0;test -e /data/marcoc/ || d=1;test $d -eq 1 && mkdir /data/marcoc/; err=$?;test $d -eq 1 && exit $err;test -d /data/marcoc/ || exit 11;test -w /data/marcoc/ || exit 12;test -x /data/marcoc/ || exit 13;exit 20

Thanks,
marco


Imported from Launchpad using lp2gh.

@Germar
Copy link
Member Author

Germar commented Oct 11, 2015

(by marcocamma)
One possible solution could be to add to the Popen.subprocess(....) call the argument:
executable='/bin/bash'

of course this could create problems if the path is different ...
so a possible solution could be to add in the advanced tab the path to the shell (by default /bin/bash).
hope it helps,
marco

@Germar
Copy link
Member Author

Germar commented Oct 11, 2015

(by germar)
No, subprocess.Popen(..., executeable='/bin/bash') doesn't help because it's the remote shell which is causing this troubles, not the local. I'm sorry to say, but you need to specify /bin/bash for the remote users shell in /etc/passwd. I'd use a separate user for BIT on remote so you can keep using fish for your daily work...

@buhtz
Copy link
Member

buhtz commented Oct 16, 2024

Follow up #1905

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants