Computing.Net > Forums > Unix > PERF:how create big TAR without DOT

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

PERF:how create big TAR without DOT

Reply to Message Icon

Name: pyannis
Date: December 22, 2007 at 07:57:28 Pacific
OS: UNIX AIX
CPU/Ram: X
Product: AIX
Comment:

Hello all.
When I create tar and add each file (tar -uvf) ,if there are many files and the TAR is very big ( > 400Mo > 50 000 files ) there is a performence problem (4 days).

To optimize,I i accumulate all files in a directory and make only 1 tar on the directory (performence is PERFECT).

the problem is the final TAR contain a DOT or the current directory.
Exemple :
parentdir (or .)
subdir/toto.txt
subdir/titi.txt
tata.txt

Can someone help to create TAR on a directory wihtout inclusion of DOT please ?
Or a command to remove it in the big file, can help too.

Thanks you in advance for your help

Yannis
pyannis@chez.com



Sponsored Link
Ads by Google

Response Number 1
Name: pyannis
Date: December 23, 2007 at 05:20:11 Pacific
Reply:

Hello,
It s OK now .
I make a list in a temporary file with find (without DOT), and make the tar with listfile as parameter

Example:
cd BIG_DIR
find . ! -name "." > ../l.txt
tar -cvf ../BIG_DIR.tar -L ../l.txt



0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: PERF:how create big TAR without DOT

how to create TAR files www.computing.net/answers/unix/how-to-create-tar-files/3978.html

creating .tar.gz files in Solaris www.computing.net/answers/unix/creating-targz-files-in-solaris/2858.html

How to create a file with extension www.computing.net/answers/unix/how-to-create-a-file-with-extension/7595.html