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