Hello,
I need your opinion and expertise in this case. I like to know if my approach to solve the problem is a good idea or not.

We have two issues about the problem that the shell (fish & hetzner) on the user's remote server does not support our (bash/sh compatible) commands.

    <https://github.com/bit-team/backintime/issues/1905>
    <https://github.com/bit-team/backintime/issues/1745>

Beside this issues I also discussed several approaches to a solution in the German Debian forum.

    <https://debianforum.de/forum/viewtopic.php?t=190714>

First of all it is not possible to support "exotic" or all kinds of shells.

My solution would be to force the bash and/or sh shell on the remote host using a command structure like this

    ssh user@server bash -c "foobar"


If "bash" is not on the server there will be a clear error message we can redirect to the users. And when setting up a new SSH backup profile several checks are done on the remote server. Checking the availability of bash/sh shell could be one of that checks.

Converting our inline shell commands to POSIX conform ones is not a solution. Not all shells in the wild are POSIX conform.

To my knowledge most of the inline shell scripts used by BIT are bash conform. Not sure if sh would do it, too. Because of that I would prefer to force bash only in the beginning until we tested everything with sh, too.

Regards,
Christian
_______________________________________________
Bit-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/bit-dev.python.org/
Member address: [email protected]

Reply via email to