maximum tar file size?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers maximum tar file size?
# 1  
Old 12-20-2007
Question maximum tar file size?

Is there a reasonable maximum limit for tar file sizes? I want to transfer a pile of files from one server to another but have restricted means, so tarring them first will probably be best... but how big can I go - both for the file format itself and for the operating system (linux) to handle? We're talking thousands upon thousands of files, and many many gigabytes. Should I keep things under 4 gigs per file, or can they safely exceed ten or twenty or thrity gigs each?

Thanks.
# 2  
Old 12-20-2007
Depends entirely on your filesystem, tar should happily just keep on spooling the files together without worrying about maximum sizes.

Find your max file size for the filesystem you are using and work with that.
# 3  
Old 12-20-2007
As a suggestion, after you finish tar'ing, consider using gzip or compress afterwards. Smilie
# 4  
Old 12-20-2007
Quote:
Originally Posted by Smiling Dragon
tar should happily just keep on spooling the files together without worrying about maximum sizes.
Individual files do have maximum file length due to the encoding, ie each files header tells you how long the contained file is.

Tar (file format) - Wikipedia, the free encyclopedia

Twelve bytes are used to encode the length in octal, so that is 12x3 bits, so 36 bits, hence 2^36 hence 68719476736-1 bytes.
# 5  
Old 12-20-2007
A ~68Gig tar file - crikey, you'd definately want to compress that sucker!
# 6  
Old 12-20-2007
Quote:
Originally Posted by Cameron
A ~68Gig tar file - crikey, you'd definately want to compress that sucker!
Presumably a DVD of all M*A*S*H episodes.
# 7  
Old 12-20-2007
> Find your max file size for the filesystem

How would one go about doing that?


> A ~68Gig tar file - crikey, you'd definately want to compress that sucker!

Unless the files are already compressed. Eg mp3, zip


A secondary concern is getting a good transfer. The larger the file, the more risk of corruption. I've used md5sum to check file integrity, but not on anything over 10 gigs yet.



Thanks everybody for the quick replies.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Compress a tar file to smaller size

I have a tar file with name DTT012_GP_20140207.tar and many more with different names of different sizes ranging from 1GB to 4GB. Now my requirement is to extract/not extract these files and then divide it into various parts of size 500MB and save it with different names and then compress... (5 Replies)
Discussion started by: Shaibal_bp
5 Replies

2. Programming

Maximum buffer size for read()

Hi friends, Hope everybody is fine. First have a look at my code, then we will talk about it. $ cat copy.c #include <stdio.h> #define PERMS 0644 /* RW for owner, R for group, others */ #define BUFSIZE 1 char *progname; int main(int argc,char * argv) { int f1, f2, n; ... (4 Replies)
Discussion started by: gabam
4 Replies

3. UNIX for Advanced & Expert Users

How to identify maximum stack size?

Hi All, I have set max stack size as 4KB for my thread, but it always using very less. So I like to know what is the maximum stack size is used by my thread. I tried with gcc -fstack-usage command line option, but its not supported by mips. Kindly suggest me the way to find the max stack... (6 Replies)
Discussion started by: rajamohan
6 Replies

4. Shell Programming and Scripting

How to get the size of tar,Z,gz type file.

Hi, How to get the size of the .tar file .Z file .gz file. Please help me what command i need to use in shell scripting :( Regards, Kalai (3 Replies)
Discussion started by: kalpeer
3 Replies

5. UNIX for Dummies Questions & Answers

Maximum file size ????

Hi All, - block size of 512KB & every address requires 4 bits - The inode structure contains 10 direct pointers, 1 single indirect, 1 double indirect & 1 triple indirect pointer What could be the possible maximum file size for this system Any guess? I am unable to understand the question... (0 Replies)
Discussion started by: preethgideon
0 Replies

6. UNIX for Dummies Questions & Answers

Maximum size of a file in unix

What's the maximum file size supported by unix. (3 Replies)
Discussion started by: nagalenoj
3 Replies

7. UNIX for Dummies Questions & Answers

Maximum input file size in "Diff" Command

Hello, Can anyone let me know what is the maximum file size that can be given as input for the "Diff" Command in Unix? I have a file size as large as 28MB and which can also increase. Will I face any issues with such a file size. If yes, What is the other alternative. Thanks in advance for... (1 Reply)
Discussion started by: Neeraja
1 Replies

8. Programming

Maximum File Size

Hi, When i checked for the maximum file size on solaris 5.9 the max file size obtained was only 2147483647 and all the further writes to the file which had reached that max size is not added to that file. even i had registered the signal SIGXFSZ, but the signal was not delivered to the... (5 Replies)
Discussion started by: matrixmadhan
5 Replies

9. UNIX for Dummies Questions & Answers

tar file size (volume) limiting

Hi I am trying to create tar files of a whole bunch of files and want to limit them to 50Mb each. I have tried using the -k option but cannot get it to work. Has anyone out there had success creating these? Cheers Ian (1 Reply)
Discussion started by: bigjeff
1 Replies

10. UNIX for Dummies Questions & Answers

Maximum size of sed file...

The sed -f option (reading sed commands from a file) seems to have a limit of 200 transactions per file. I can't see anything in the man pages about this restriction. I have a file with several thousand sed commands I need to perform (substitutions) - and while I can split the file into... (14 Replies)
Discussion started by: peter.herlihy
14 Replies
Login or Register to Ask a Question