For security reasons, BackupPC doesn't use a shell to run any of the
external commands, including DumpPreUserCmd.  It uses fork() and exec().
It does split the string you provide at spaces (but doesn't understand
quoting).  Or you can set those commands to an array - the first entry is
the full path to the command, and the remaining entries are the arguments
(eg, the array is argv).

But the examples you gave should work.  Could you tell us exactly what's in
the config file setting for DumpPreUserCmd?  You said you set it to
'/bin/bash -c /bin/touch /tmp/test.txt'; if you did that in the CGI then
you shouldn't use the outermost quotes.

Craig





On Sat, Aug 22, 2020 at 10:27 AM Taste-of-IT <kont...@taste-of-it.de> wrote:

> Hi Mike,
> yes thanks :).
>
> Yes tried this too. But in my simple example, backuppc should write on own
> disk, as a test but whithout suchen.
>
> Taste
>
> _______________________________________________
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:    https://github.com/backuppc/backuppc/wiki
> Project: https://backuppc.github.io/backuppc/
>
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    https://github.com/backuppc/backuppc/wiki
Project: https://backuppc.github.io/backuppc/

Reply via email to