Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, oracle.

Asked: May 23, 2016 - 3:08 am UTC

Last updated: May 23, 2016 - 6:17 am UTC

Version: 11.2.0.3.0

Viewed 1000+ times

You Asked

Hi team,

I have backup pieces on the mount point which i do tar with the help of -

tar -cvf DB_$dd.tar DB_* c-*

It has completed the tar but i have seen if the backup pieces size are more than 8GB it gives an error like - tar: read error: unexpected EOF

So, i have added - tar -cvEf DB_$dd.tar DB_* c-* and it done successfully but now again i am getting the same error like -
tar: read error: unexpected EOF

And the backup pieces files size is 150GB so, pls let us know how i can make a tar for this huge size .

thanks

and Connor said...

Check this community thread

https://community.oracle.com/thread/2204492?tstart=0

Basically, due to limitations of tar, you'll probably need to use one of the splitting techniques mentioned there.

The other option is to set a cap on the size of your backup pieces when performing backups.

Hope this helps.

Rating

  (2 ratings)

Is this answer out of date? If it is, please let us know via a Comment

Comments

oracle oracle, May 23, 2016 - 4:56 am UTC

Hi team,

I have seen but not get what i want. there is not mention specific command.

Thanks
Connor McDonald
May 23, 2016 - 6:17 am UTC

Well...I found *this* in the links in the thread:

tar cvf - files_to_archive | split --bytes=4500000000 -a 3 -d - prefix

That looks pretty close to me...

We dont want to spoon feed you :-)

                             _
                             / \
          _..--"""""--.._    \_/
         /,_..-------.._,\    |
        |  `'''-----'''`  |   |
         \               /   / \
          '.           .'    | |
            '--.....--'      \_/
-jgs


Consider using afio

Peter, May 25, 2016 - 1:53 pm UTC

If you are on a Unix/Linix/AIX system can you try afio
It does not have the limitations of tar AND it has the advantage of cpio where each file saved is independant of the others ie if one file is corrupt you have not lost the whole archive
it can be found at https://github.com/kholtman/afio