So,

I managed to track down the issue. It *was* a configuration issue after
all. Given that my rsync -e arguments contained spaces (ie. ssh -i
/var/lib/backuppc/.ssh/id_rsa.pub -l backupper) I thought I had to properly
quote the arguments to make sure it was working correctly.

In the output this command seemed correct:

Running: /usr/local/bin/rsync_bpc --bpc-top-dir /mnt/backuppc/backups
--bpc-host-name <ip-address> --bpc-share-name / --bpc-bkup-num 0
--bpc-bkup-comp 3 --bpc-bkup-prevnum -1 --bpc-bkup-prevcomp -1
--bpc-bkup-inode0 1 --bpc-log-level 2 -e '/usr/bin/ssh  -o
UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i
/var/lib/backuppc/.ssh/id_rsa -l backupper' --rsync-path="sudo
/usr/bin/rsync" --super --recursive --protect-args --numeric-ids
--perms --owner --group -D --times --links --hard-links --delete
--partial --log-format="log: %o %i %B %8U,%8G %9l %f%L" --stats
--checksum --exclude=/tmp --exclude=/proc --exclude=/sys
--exclude=*.pem --exclude=id_rsa --exclude=.bash_history
--exclude=/var/logs --exclude=/usr/src --exclude=/opt/chef
<ip-address>:/ /

while in fact, it was using the following switch internally:

-e '/usr/bin/ssh\ \ -o\ UserKnownHostsFile=/dev/null\ -o\
StrictHostKeyChecking=no\ -i\ /var/lib/backuppc/.ssh/id_rsa\ -l\
backupper'

This obviously doesn’t work (escaping spaces + using quotes). This is also
the reason why c/p’ing the command as being logged and running it manually
*did* work, since the escaping wasn’t being shown in the log and thus
didn’t happen in my manual attempts.

So in conclusion:

1) BackupPC properly escapes spaces in arguments, so no need to put them in
quotes
2) BackupPC doesn’t log these escapes, so if you *did* put the arguments in
quotes, you won’t notice this unless you manually run ./bin/BackupPC_dump
-f -v <client-ip>

Now, one more thing I had to do was set UserCmdCheckStatus to 0, because
otherwise it would still exit, saying the pre-command returned -1, even
though it is set to undef in the configuration file.

On Wed, Mar 5, 2014 at 2:51 PM, Tyler J. Wagner <ty...@tolaris.com> wrote:

No, your question was in line. Holger is ... not friendly.
>
> Hopefully someone will be able to help. Good luck.
>
> Regards,
> Tyler
>
> On 2014-03-05 14:15, Mertz, Jean wrote:
> > So, from Holger's response I guess I said something that I wasn't
> supposed
> > to say? I posted this in "devel" because it might be a bug in alpha3,
> and I
> > also noticed another post in devel regarding an issue with alpha3, that's
> > why I thought this would be the best location to ask.
> >
> > My question still stands, and I hope someone can help me out, if it's
> not a
> > bug I will ask the same in the"user" list, I just figured you might be
> > interested in this report due to the fact that 4 is still heavily in
> > development.
> >
> > Thank you for helping out.
> >
> >
> > On Wed, Mar 5, 2014 at 12:44 AM, <backu...@kosowsky.org
> > <mailto:backu...@kosowsky.org>> wrote:
> >
> >     Holger Parplies wrote at about 00:25:21 +0100 on Wednesday, March 5,
> 2014:
> >      > Hi,
> >      >
> >      > Mertz, Jean wrote on 2014-03-04 15:39:06 +0100 [[BackupPC-devel]
> >     BackupPC 4.0.0beta3 rsync_bpc "No such file or directory (2)"]:
> >      > > [user configuration error question deleted]
> >      > > Any thoughts on what could be causing this?
> >      >
> >      > yes. On the correct list, I'd even share them.
> >      >
> >
> >     Perhaps you are being a bit harsh. BackupPC 4.0 is still alpha so
> >     perhaps the OP could be forgiven for using the devel list even for
> >     what may turn out to be more of a config question.
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Subversion Kills Productivity. Get off Subversion & Make the Move to
> Perforce.
> > With Perforce, you get hassle-free workflows. Merge that actually works.
> > Faster operations. Version large binaries.  Built-in WAN optimization
> and the
> > freedom to use Git, Perforce or both. Make the move to Perforce.
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
> >
> >
> >
> > _______________________________________________
> > BackupPC-devel mailing list
> > BackupPC-devel@lists.sourceforge.net
> > List:    https://lists.sourceforge.net/lists/listinfo/backuppc-devel
> > Wiki:    http://backuppc.wiki.sourceforge.net
> > Project: http://backuppc.sourceforge.net/
> >
>
> --
> "Quis custodiet ipsos custodes?" [Who watches the watchers?]
>    -- Juvenal's "Satires"
>
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
BackupPC-devel mailing list
BackupPC-devel@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-devel
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to