dsnap-sync: update handling of ssh-command

This commit is contained in:
Ralf Zerres
2023-06-09 18:13:57 +02:00
parent 4e162f5df3
commit 050ee9a23a

View File

@@ -1415,7 +1415,7 @@ parse_params () {
nc -w 3 -z "$remote" "$port" > /dev/null || \ nc -w 3 -z "$remote" "$port" > /dev/null || \
die "Can't connect to remote host." die "Can't connect to remote host."
else else
"$ssh" command -pv sh >/dev/null 2>&1 || \ eval "$ssh" command -pv sh >/dev/null 2>&1 || \
{ printf "'remote shell' is not working!\n \ { printf "'remote shell' is not working!\n \
Please correct your public authentication and try again.\n" && exit 1; } Please correct your public authentication and try again.\n" && exit 1; }
fi fi
@@ -1896,7 +1896,7 @@ run_backup () {
# prepare send pipe command # prepare send pipe command
create_pv_cmd create_pv_cmd
case "selected_fstype" in case "$selected_fstype" in
btrfs) btrfs)
cmd="btrfs send $btrfs_verbose_flag $snapper_source_snapshot 2>$BTRFS_PIPE \ cmd="btrfs send $btrfs_verbose_flag $snapper_source_snapshot 2>$BTRFS_PIPE \
| $cmd_pv \ | $cmd_pv \