I ended up using the perl embedded code approach... it gave me more
flexibility.
I now have a robust routine that uses DumpPreUserCmd/DumpPostUserCmd
to automagically set up Window Shadow copies on remote Windows 7
machines (should presumably also work for Windows 8/10).
It basically uses your c
Jeff,
The reason BackupPC avoids running shells for sub-commands is security, and
the extra layer of argument escaping or quoting. It's easy to
inadvertently have some security weakness from misconfiguration or misuse.
Can you get what you need by starting the command with "/bin/bash -c"? You
c
On Wed, Jun 24, 2020 at 12:19 PM Craig Barratt via BackupPC-users <
backuppc-users@lists.sourceforge.net> wrote:
> Mike,
>
> It's possible you have two different versions of perl installed, or for
> some reason the BackupPC user is seeing an old version of BackupPC::XS.
>
> Try some of the suggest
I notice that in Lib.pm, the function 'cmdSystemOrEvalLong'
specifically uses the structure 'exec {$cmd->[0]} @$cmd;' so that no
shell is invoked.
I know that technically it's a little faster to avoid calling the
shell, but in many cases it is very useful to have at least a
rudimentary shell avail
Mike,
It's possible you have two different versions of perl installed, or for
some reason the BackupPC user is seeing an old version of BackupPC::XS.
Try some of the suggestions here:
https://github.com/backuppc/backuppc/issues/351.
Craig
On Wed, Jun 24, 2020 at 10:12 AM Richard Shaw wrote:
>
On Wed, Jun 24, 2020 at 11:58 AM Mike Hughes wrote:
> I'm getting a service startup failure claiming my version of BackupPC-XS
> isn't up-to-snuff but it appears to meet the requirements:
>
> BackupPC: old version 0.57 of BackupPC::XS: need >= 0.62; exiting in 30s
>
I don't have a CentOS 7 machi
I'm getting a service startup failure claiming my version of BackupPC-XS isn't
up-to-snuff but it appears to meet the requirements:
BackupPC: old version 0.57 of BackupPC::XS: need >= 0.62; exiting in 30s
# rpm -qa | grep -i backuppc
BackupPC-XS-0.62-1.el7.x86_64
BackupPC-4.4.0-1.el7.x86_64
___