BackupPC-users

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

2008-10-05 14:18:08
Subject: Re: [BackupPC-users] How to get a remote script to log output in the backup logs
From: Craig Barratt <cbarratt AT users.sourceforge DOT net>
To: Mark Phillips <mark AT phillipsmarketing DOT biz>
Date: Sun, 5 Oct 2008 11:12:34 -0700
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 AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

<Prev in Thread] Current Thread [Next in Thread>