BackupPC-users

[BackupPC-users] Backing-up local files

2008-04-10 09:18:24
Subject: [BackupPC-users] Backing-up local files
From: "Ib H. Rasmussen" <ihr AT tdcadsl DOT dk>
To: <backuppc-users AT lists.sourceforge DOT net>
Date: Thu, 10 Apr 2008 15:16:43 +0200

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:

$Conf{XferMethod} = 'tar'; $Conf{TarClientCmd} = '/usr/bin/sudo $tarPath -c -v -f - -C $shareName --totals'; $Conf{TarFullArgs} = '$fileList'; $Conf{TarIncrArgs} = '--newer=$incrDate $fileList'; $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: ihr AT tdcadsl DOT dk



-------------------------------------------------------------------------
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 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>
  • [BackupPC-users] Backing-up local files, Ib H. Rasmussen <=