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

Potential bug with "detect remote dst argument" logic #16

Open
opacey opened this issue Dec 6, 2021 · 1 comment
Open

Potential bug with "detect remote dst argument" logic #16

opacey opened this issue Dec 6, 2021 · 1 comment

Comments

@opacey
Copy link

opacey commented Dec 6, 2021

Hi, on line 118:

# detect remote dst argument
[[ "$DST" =~ : ]] && {
  NET="$( sed 's|:.*||' <<<"$DST" )"
  DST="$( sed 's|.*:||' <<<"$DST" )"
  SSH=( ssh -p "$PORT" -o ServerAliveInterval=5 -o ConnectTimeout=1 -o BatchMode=yes "$NET" )
}

The $SSH variable is left just with the value "ssh", which then causes the subsequent block of code to throw the error, ""SSH access error to $NET. Do you have passwordless login setup, and adequate permissions for $DST?" when I call btrfs in the following way. I believe my formatting is correct. Any idea what could be wrong?

$ sudo btrfs-sync --verbose -p 22 ~/datadir-snapshots/ed726c chainBackup@192.168.1.5:/volume12/chainSnapshotBackups/.

@traxanos
Copy link

traxanos commented Apr 3, 2022

sudo is the problem. i have a file cat /etc/sudoers.d/90_btrfs-sync with

btrfs ALL=(root:nobody) NOPASSWD:NOEXEC: /bin/btrfs
root ALL=(root:nobody) NOPASSWD:NOEXEC: /bin/btrfs

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