LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-16-2008, 04:08 AM   #1
Bharat Kumar pankaj
Member
 
Registered: Nov 2007
Posts: 30

Rep: Reputation: 15
Unhappy How to extract too large archive (35 GB) .tar file


Hello


I am using SunOS 5.8.

A instance/data size 35 GB on this server. then i apply backup archive (Tape Backup)

#tar -cvf csp0203.tar /u13/csp0203

after archive this file . i want extract this archive file (csp0203.tar)
i am using below cmd

#tar -xvf csp0203.tar -C /SAN_C2D/csp_bakup

NOTE : SAN_C2D - having more space ( 100 GB)


So pls advice me which cmd i will use . so that i extract this 35 GB (csp0203.tar) file .

Last edited by Bharat Kumar pankaj; 08-19-2008 at 03:19 AM.
 
Old 08-16-2008, 04:36 AM   #2
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
man tar (?)
tar -xvf csp0203.tar -C /SAN_C2D/csp_bakup/
 
Old 08-16-2008, 04:50 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
Originally Posted by jomen View Post
man tar (?)
tar -xvf csp0203.tar -C /SAN_C2D/csp_bakup/
If I remember well there is no -C option in the Solaris 5.8 version of tar. Anyway, if the GNU version of tar is available, the -C option can be used. Try
Code:
which gtar
to verify. Otherwise, just move the archive to /SAN_C2D/csp_bakup/ and extract from there.

The reason why the command didn't work is that if you do
Code:
tar xvf csp0203.tar /SAN_C2D/csp_bakup
you're trying to extract the file or directory /SAN_C2D/csp_bakup from the archive. Since most likely it didn't exist, the tar command returned nothing. Once you've moved the archive to /SAN_C2D/csp_bakup just do
Code:
tar xvf csp0203.tar
 
Old 08-16-2008, 04:53 AM   #4
Bharat Kumar pankaj
Member
 
Registered: Nov 2007
Posts: 30

Original Poster
Rep: Reputation: 15
Hi

I use this command #tar -xvf csp0203.tar -C /SAN_C2D/csp_bakup/

But facing same issue. csp0203 dir/file not persent at /SAN_C2D/csp_bakup/.

pls suggest me.
 
Old 08-16-2008, 05:07 AM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Maybe you missed my post (see above)...
 
Old 08-16-2008, 05:35 AM   #6
Bharat Kumar pankaj
Member
 
Registered: Nov 2007
Posts: 30

Original Poster
Rep: Reputation: 15
Hi

using this commnad

Last edited by Bharat Kumar pankaj; 08-19-2008 at 03:21 AM.
 
Old 08-16-2008, 08:30 AM   #7
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
From the output of the tar command, it looks like the files inside the archive retain their absolute path (maybe they were created using -P option with GNU tar). Have a look at directory /u13/CSIP0203/.

Last edited by colucix; 08-16-2008 at 08:32 AM.
 
Old 08-18-2008, 12:38 AM   #8
Bharat Kumar pankaj
Member
 
Registered: Nov 2007
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks a lot.
 
Old 08-19-2008, 06:58 AM   #9
Bharat Kumar pankaj
Member
 
Registered: Nov 2007
Posts: 30

Original Poster
Rep: Reputation: 15
Hi


I am using SunOS .5.8

How to recover overwrite 35 GB data in linked file.

bcs i did mistck on tar cmd extrat.
 
Old 08-19-2008, 07:02 AM   #10
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
What is the mistake with extraction? What do you mean for "linked file"? Can you explain a bit more?

And please, don't edit previous posts by erasing them. This make the thread unreadable and confused. Thanks.
 
Old 08-19-2008, 07:35 AM   #11
Bharat Kumar pankaj
Member
 
Registered: Nov 2007
Posts: 30

Original Poster
Rep: Reputation: 15
Actully this instance running two tire server one is application and one is database.

I am working as backup Engineer so . on of server is not coonect to our tape library /SAN.

so i take this instace archive .tar and move to our connect tape library /SAN

Then we take bakup , but error u know well its 35 GB .tar file ,

So i need extrat this file. but that time i don,t know same mount point is soft link to same instance.

after extrat this . this overwrite ...


pls help me how to recovery old file.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Piping tar bzcat to add a file to a tar.bz2 archive DaveQB Linux - Software 0 06-02-2008 08:28 PM
tar won't extract a big archive & won't explain... wghay Linux - Software 4 03-05-2006 11:23 AM
tar - extracting a single directory from a large archive? lowpro2k3 Linux - General 1 07-24-2005 02:44 AM
How can I extract a file from iso archive kmichal2 Linux - Software 8 12-14-2004 05:48 AM
Tar gives error when creating a tar file archive davidas Linux - Newbie 10 04-13-2004 12:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration