Hi,

Holger Parplies escribió:
> Hi,
>
> Joe Bordes wrote on 30.04.2007 at 11:32:55 [Re: [BackupPC-users] Restore file 
> problem 2.1.2 and tar]:
>   
>> I seem to have traced this error 
>>     
>
> (meaning 'cat test.tar | tar ...' doesn't work whereas 'tar ... < test.tar'
>  and 'tar ... test.tar' do)
>
>   
Yes, this is exactly the problem.
>> down to a Linux Suse 7.2 error as it
>> works correctly on Suse 9.3 and OpenSuse 10
>>
>> I downloaded and compiled tar 1.16 and I get the same error (no errors
>> compiling) so I am starting to think it is a problem with one of the
>> libraries used.
>>     
>
> What about the 'cat' you're using? What do you get if you create a small
> file and cat that, eg.
>
>     % echo kitten > foo
>     % cat foo
>     % cat foo | wc -c
>     % wc -c foo
>
>   
This works correctly. I updated the cat version just in case but I had
the same problem. It is definetly a tar problem.
More: if I use tar in this way I loose the first file in the archive!
Obviously if there is only one I don't get anything.
> I can't find any documented environment variable that influence cat's
> behaviour. Is there perhaps an alias or shell function making 'cat' be,
> in fact, 'cat -v' or something?
>
>
> Does the same happen with
>
>     % dd if=test.tar | tar tf -
>   
Get the same error with this command
> (or 'tBf -' or, for that matter, 't')?
>
>   
All other forms I have tried work OK. The problem is just when I pipe
info into the tar command.
> I'm not sure this has much to do with your original problem though.
>
>   
Yes, it does becuase BackupPC uses BackupPC_tarCreate to get the
information to restore and then pipes the output of this command (a tar
file) into my tar restore command (tar). In other words, the sequence of
comands that BackupPC uses to restore the files uses a pipe into a tar,
which does not work on my system :-(

/home/cpseg/bin/BackupPC_tarCreate -h canoh -n 15 -s /home -t -r /httpd/htdocs 
-p /httpd/htdocs/ /httpd/htdocs/gif |
/usr/bin/sudo /usr/bin/tar -x -p --numeric-owner --same-owner -v -f - -C /home

> Regards,
> Holger
>
>   
Thanks, Joe
TSolucio

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
BackupPC-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-users
http://backuppc.sourceforge.net/

Reply via email to