Mark writes:

> I am using backuppc to ssh to a remote host, and use rsync for the
> backups. Before the backup, I have backuppc run a script on the remote
> host to manipulate some database files. It appears that the script is
> excuted, but I keep getting a message in the backuppc logs that the
> script failed. I thought the output of scripts run by backuppc were
> recorded in the backup logs.
> 
> This is what the log says:
> 
> Executing DumpPreShareCmd: '/usr/bin/ssh -q -x -l me remote.host sudo -u
> root my_script';
> Exec of '/usr/bin/ssh -q -x -l me remote.host -u root my_script'; failed

The script fails to run.

I suspect you are using the CGI editor and you include the enclosing
quotes and semicolon.  You should eliminate those - they are only
needed if you are editing the config.pl file directly (since that
has to be valid perl code and that setting is a string).

So your command in the CGI editor should look like this:

    /usr/bin/ssh -q -x -l me remote.host -u root my_script

Craig

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
BackupPC-users mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to