sanoid icon indicating copy to clipboard operation
sanoid copied to clipboard

The way syncoid is built assumes Bash/POSIX shell

Open crabdancing opened this issue 5 months ago • 2 comments

syncoid -r root@mymachine:rpool/data rpool/mymachine-backup/data                                                                                                                         ❌2 2024-08-27 (Aug, Tue) 00:50:09
Error: nu::parser::unknown_flag

  × The `echo` command doesn't have flag `-n`.
   ╭─[source:1:7]
 1 │ echo -n
   ·       ┬
   ·       ╰── unknown flag
   ╰────
  help: Available flags: --help(-h). Use `--help` for more information.

CRITICAL ERROR: ssh connection echo test failed for root@mymachine with exit code 1 at /nix/store/y291afvmzdmff6r02qnhi3c6mcqpws6j-sanoid-2.2.0/bin/.syncoid-wrapped line 1714.

It is clearly getting confused here because the nushell 'echo' command does not have a -n flag. Ideally, syncoid would make explicit the kind of shell it wants (e.g., running ssh command with bash as a command).

crabdancing avatar Aug 27 '24 06:08 crabdancing