[CentOS] Another Tar stopper

Tue Sep 12 16:48:03 UTC 2006
Robert Moskowitz <rgm at htt-consult.com>

Les Mikesell wrote:
> On Tue, 2006-09-12 at 12:00 -0400, Robert Moskowitz wrote:
>   
>>>   
>>>       
>>>> I'd send STDOUT and STDERR to separate logs for brevity's sake.
>>>> Something like...
>>>>
>>>> tar czvf $destfile $tobetarred > /tmp/tarlog.std 2> /tmp/tarlog.err
>>>>     
>>>>         
>>> If you want to have it brief - why the "v"?
>>>   
>>>       
>> Becuase then at least I might see what files were being processed when 
>> the tar stopped?
>>     
>
> Tar shouldn't have stopped regardless of complaints about files that
> are unreadable or disappear.  If you are sure it isn't completing
> try running it with 'strace' and look at the system errors when
> it dies.
Sounds reasonable.  Had to lookup up strace.

So I would run:

starce -o /tmp/strace.log tar -cpvzO / --exclude-from=/home/not-file 
2>/tmp/tarlog.err | ssh user at ipaddrs "cat > backup.tgz"


?