BackupPC-users

[BackupPC-users] Restore not working

2014-07-06 12:03:40
Subject: [BackupPC-users] Restore not working
From: "raceface" <raceface_the_one AT gmx DOT net>
To: <backuppc-users AT lists.sourceforge DOT net>
Date: Sun, 6 Jul 2014 18:01:55 +0200

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="" </script>

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

</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
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>