Hi all,
I have recently installed BackupPC version 3.1.0 on my Fedora FC8 server.
I can make backups of external clients using ssh/rsync without problems.
Now I would like to backup a local (on the server) directory using 'tar'
To ensure all files can be accessed, the 'tar' should run as 'root'.
I'm using:
<https://bnabbot.dyndns.org/backup/cgi-bin/BackupPC_Admin?action=view&type=d
ocs#item_%24conf%7bxfermethod%7d> $Conf{XferMethod} = 'tar';
<https://bnabbot.dyndns.org/backup/cgi-bin/BackupPC_Admin?action=view&type=d
ocs#item_%24conf%7btarclientcmd%7d> $Conf{TarClientCmd} = '/usr/bin/sudo
$tarPath -c -v -f - -C $shareName --totals';
<https://bnabbot.dyndns.org/backup/cgi-bin/BackupPC_Admin?action=view&type=d
ocs#item_%24conf%7btarfullargs%7d> $Conf{TarFullArgs} = '$fileList';
<https://bnabbot.dyndns.org/backup/cgi-bin/BackupPC_Admin?action=view&type=d
ocs#item_%24conf%7btarincrargs%7d> $Conf{TarIncrArgs} = '--newer=$incrDate
$fileList';
<https://bnabbot.dyndns.org/backup/cgi-bin/BackupPC_Admin?action=view&type=d
ocs#item_%24conf%7btarclientrestorecmd%7d> $Conf{TarClientRestoreCmd} =
'/usr/bin/sudo $tarPath -x -p --numeric-owner --same-owner -v -f - -C
$shareName'; but sudo refuses to execute with the following error:
Contents of file /BackupPool//pc/ihrtest-plone/XferLOG.bad.z, modified
2008-04-10 14:49:02
Running: /usr/bin/sudo /bin/gtar -c -v -f - -C /opt/Plone-3.0.6 --totals .
full backup started for directory /opt/Plone-3.0.6
Xfer PIDs are now 6985,6984
sudo: sorry, you must have a tty to run sudo
tarExtract: Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0
filesTotal, 0 sizeTotal
Got fatal error during xfer (No files dumped for share /opt/Plone-3.0.6)
Backup aborted (No files dumped for share /opt/Plone-3.0.6)
Not saving this as a partial backup since it has fewer files than the prior
one (got 0 and 0 files versus 0)
Does anybody know what I'm doing wrong ?
Best Regards
Ib H. Rasmussen
Mailto: [EMAIL PROTECTED]
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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/