Hi all,












I denied root to login via ssh on my server running backuppc, so I changed
the TarClientRestorCmd to












/usr/bin/sudo /tar/tarRestore -x -p --numeric-owner --same-owner -v -f - -C
$shareName












my tarRestore is












#!/bin/sh





exec /bin/tar -M -x -f - "$@"












I get the following error












Running: /usr/bin/sudo /tar/tarRestore -x -p --numeric-owner --same-owner -v
-f - -C /





Running: /usr/share/backuppc/bin/BackupPC_tarCreate -h localhost -n 0 -s /
-t -r /var/www -p /var/www/ /var/www/index.html





Xfer PIDs are now 27885,27886





/bin/tar: Options `--f' and `--f' both want standard input





Try `/bin/tar --help' or `/bin/tar --usage' for more information.





Tar exited with error 512 () status





restore failed: BackupPC_tarCreate failed












When I run the command












/usr/share/backuppc/bin/BackupPC_tarCreate -h localhost -n 0 -s / -t -r
/var/WWW -p /var/www/ /var/www/index.html












as BackupPC-user in the command line it Shows me the content of the file












./var/www/index.html0000674000004100000410000000026312267725145014673 0ustar
 www-datawww-data<!DOCTYPE html>





<html>





<head>












 <script type="text/javascript">
window.location.href="index.php"; </script>












 <meta http-equiv="refresh" content="0;
URL=index.php">





</head>





</html>





Done: 1 files, 179 bytes, 0 dirs, 0 specials, 0 errors












but doesn't create the file.












Does anybody has any ideas?












Thanks!












Andy














------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
BackupPC-users mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to