Re: [BackupPC-users] DumpPreUserCmd didnt run anything

2020-08-22 Thread Taste-Of-IT
Hi Craig, yes your right i read about the uses of fork() and exec(). In the help, i read the example about the mysqldump which is shown with quotes. I used that. As you wrote i removed the quotes and now every script call works. So the help text was misleading, for me. Now it works and i can g

Re: [BackupPC-users] DumpPreUserCmd didnt run anything

2020-08-22 Thread Craig Barratt via BackupPC-users
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 pat

Re: [BackupPC-users] DumpPreUserCmd didnt run anything

2020-08-22 Thread Taste-of-IT
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/

Re: [BackupPC-users] DumpPreUserCmd didnt run anything

2020-08-22 Thread Mike Hughes
Hi Taste (nice domain name 🙂 ), Are you including the $sshPath prefix as shown in the example? $Conf{DumpPreUserCmd} = '$sshPath -q -x -l root $host /usr/bin/dumpMysql'; From: Taste-Of-IT Sent: Friday, August 21, 2020 5:34 PM To: backuppc-users@lists.sourceforge