Steve writes:

> Since this is a local machine I don't need ssh so I set my TarClientCmd
> to "$tarPath -c -v -f - -C $shareName+ --totals". This worked OK but
> some directories were not backed up because the user, backuppc, doesn't
> have root privileges. Next I set up sudo to allow backuppc to run tar
> as root. I su'd to backuppc to test and it worked fine. My new
> TarClientCmd is "sudo $tarPath -c -v -f - -C $shareName+ --totals".
> 
> The problem is that when backuppc runs a backup at the schedules time,
> I get this error:
> 
> Exec failed for sudo /bin/tar -c -v -f - -C / --totals
> --newer=2008-07-27\ 17:56:09 .

You have to use a full path for sudo.  BackupPC doesn't use a shell
to execute commands (to reduce potential security holes), so you
need a full path to the executable.

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/

Reply via email to