Fix remote preflight shell quoting #45

Closed
opened 2026-05-21 15:41:06 +02:00 by parkel · 0 comments
Owner

Problem

The connection preflight can report Remote source root as failed even when SSH and dry-run backups work. The remote checks currently pass sh, -lc, and the script as separate SSH arguments, which OpenSSH/remote shell handling can reinterpret incorrectly, especially for commands containing &&.

Scope

  • Quote remote shell scripts as a single command passed to SSH.
  • Cover source root and remote rsync preflight checks with tests.
  • Keep dry-run behavior unchanged.

Acceptance Criteria

  • Remote source root preflight builds a correctly quoted remote shell command.
  • Remote rsync preflight builds a correctly quoted remote shell command.
  • Existing preflight behavior and stored result shape remain compatible.
## Problem The connection preflight can report Remote source root as failed even when SSH and dry-run backups work. The remote checks currently pass sh, -lc, and the script as separate SSH arguments, which OpenSSH/remote shell handling can reinterpret incorrectly, especially for commands containing &&. ## Scope - Quote remote shell scripts as a single command passed to SSH. - Cover source root and remote rsync preflight checks with tests. - Keep dry-run behavior unchanged. ## Acceptance Criteria - Remote source root preflight builds a correctly quoted remote shell command. - Remote rsync preflight builds a correctly quoted remote shell command. - Existing preflight behavior and stored result shape remain compatible.
parkel added this to the 1.2 milestone 2026-05-21 15:41:06 +02:00
Sign in to join this conversation.