Re: [BackupPC-users] How to get a remote script to log output in the backup logs

2008-10-05 Thread Craig Barratt
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
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] How to get a remote script to log output in the backup logs

2008-10-04 Thread Mark Phillips
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

How can I get the output of the script recorded in the backuppc logs?

Thanks!


-
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
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/