James Ward wrote:
> I'm getting: - charles (Can't read PC's config file: Couldn't
> execute /var/lib/backuppc/pc/charles/config.pl: syntax error at /var/
> lib/backuppc/pc/charles/config.pl line 4, near "$Conf")
>
> with this config file:
>
>
> $Conf{BackupFilesExclude} = ['/Volumes', '/Network', '/automount'];
> $Conf{RsyncClientCmd} = '$sshPath -q -x -l backups $host nice -n 19
> sudo /Users/backups/rsyncSend $argList+';
> $Conf{BlackoutGoodCnt} = 0;
> $Conf{BlackoutPeriods} = [
> {
> hourBegin => 7.0,
> hourEnd => 19.5,
> weekDays => [1, 2, 3, 4, 5],
> },
> ];
>
> I don't see anything wrong with it?
>
>
hmmm.....it all looks right.
i assume its just word wrapped and the line above starting with sudo
belongs at the end of line 2? If it sees the sudo line as a separate
line then thats where the problem is.
check the file for proper carriage returns (in vi do a :set list) and
make sure it doesn't have control M's (dos2unix).
one other thing....change the order of lines when troubleshooting. move
them around and watch the errors and see if they change line numbers.
Often an error is in an earlier line but syntax checks only hit the
later lines.
Good Luck,
Regards,
Les
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/