LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 04-27-2004, 09:05 AM   #1
kaplan71
Member
 
Registered: Nov 2003
Posts: 682

Rep: Reputation: 39
Trying to archive a 4.6 GB directory


Hi there --

I am trying to archive a directory that is 4.6 GB in size. Tar has a limitation of
2 GB. I am trying to omit several subdirectories in order to work around this problem. If that does not work, I might try cpio. Does cpio have the same size limitation as tar?
 
Old 04-27-2004, 09:54 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 9,916

Rep: Reputation: 338Reputation: 338Reputation: 338Reputation: 338
It is a file size limitation and not a limitation of tar. AFAIK tar has support for large files (i.e. >2GB). cpio would also have the same problem.

BTW what distribution and kernel are you running?

I quick search found the link below. You should be able to change the size to fit your needs. I do not know if it works or not.

tar czvf - source | split -b 650m tarpiece-

...should create files tarpiece-aa tarpiece-ab tarpiece-ac...

To reassemble, copy to disk, then:

cat tarpiece-* > file.tar.gz

...will reassemble the tarfile.


or this might work:
http://www.informatik-vollmer.de/sof...split-tar.html
 
Old 04-27-2004, 10:31 AM   #3
kaplan71
Member
 
Registered: Nov 2003
Posts: 682

Original Poster
Rep: Reputation: 39
Trying to archive a 4.6 GB directory

I did some additional research and I found out that starting with Red Hat 8.0, the 2 gigabyte limit is no longer a factor. The machine the directory in question is on runs Red Hat 7.3. Luckily the directory is exported via NFS. I was able to log onto another system running Red Hat 8.0, and the tar went by without a problem.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
tar - extracting a single directory from a large archive? lowpro2k3 Linux - General 1 07-24-2005 02:44 AM
divide a directory into multiple archive files with par ddaas Linux - General 1 02-26-2005 01:52 PM
Archive Software chrisk5527 Linux - Software 2 03-17-2004 02:43 PM
this doesn't look like a tar archive .phister Slackware 5 02-01-2004 01:19 AM
importing an MS Outlook archive archive.pst alloydog Linux - Software 2 08-29-2003 03:02 PM


All times are GMT -5. The time now is 11:40 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration