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

PERF:how create big TAR without DOT

Reply to Message Icon

Original Message
Name: pyannis
Date: December 22, 2007 at 07:57:28 Pacific
Subject: PERF:how create big TAR without DOT
OS: UNIX AIX
CPU/Ram: X
Model/Manufacturer: 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


Report Offensive Message For Removal

Response Number 1
Name: pyannis
Date: December 23, 2007 at 05:20:11 Pacific
Subject: PERF:how create big TAR without DOT
Reply: (edit)

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



Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: PERF:how create big TAR without DOT

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software