BackupPC-users

[BackupPC-users] Recovering not working

2014-07-17 22:27:09
Subject: [BackupPC-users] Recovering not working
From: raceface2nd <backuppc-forum AT backupcentral DOT com>
To: backuppc-users AT lists.sourceforge DOT net
Date: Sun, 06 Jul 2014 08:57:22 -0700
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

+----------------------------------------------------------------------
|This was sent by info AT andreasseiler DOT com via Backup Central.
|Forward SPAM to abuse AT backupcentral DOT com.
+----------------------------------------------------------------------



------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
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] Recovering not working, raceface2nd <=