I'm not quite sure how.

Calling simplesnapwrap from backuphost directly seems to succeed
(though I can't see the output anywhere):

backuphost:~$ ssh -i /home/ivan/.ssh/id_rsa_simplesnap -l ivan activehost
sudo simplesnapwrap listfs

Calling simplesnapwrap from backuphost via simplesnap using wrapcmd
seems to fail:

backuphost:~$ sudo simplesnap --host activehost --setname mainset --store
backup/simplesnap --sshcmd "ssh -i /home/ivan/.ssh/id_rsa_simplesnap -l
simplesnapuser" --wrapcmd "sudo simplesnapwrap"

Here's the log from backuphost:


Invoked as: /usr/sbin/simplesnap --host activehost --setname
mainset --store backup/simplesnap --sshcmd ssh
-i /home/ivan/.ssh/id_rsa_simplesnap -l simplesnapuser --wrapcmd
sudo simplesnapwrap
Store backup/simplesnap is mounted at /backup/simplesnap
Lock obtained at /backup/simplesnap/activehost/.lock with dotlockfile
Finding remote datasets to back up
Running ssh -i /home/ivan/.ssh/id_rsa_simplesnap -l
simplesnapuser activehost sudo simplesnapwrap listfs
ssh exited with error 10


Logging ssh with -vvv shows that "sudo simplesnapwrap listfs" is run but no
other useful info apart from exit code 10. I'm not sure if I found the
correct ssh exit code definitions (why the minus sign?) but interpreting it
as "invalid argument" leaves me none the wiser.

https://github.com/openssh/openssh-portable/blob/master/ssherr.h#L34


Regards,
~~helix84

Reply via email to