Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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.txtCan 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

Hello,
It s OK now .
I make a list in a temporary file with find (without DOT), and make the tar with listfile as parameterExample:
cd BIG_DIR
find . ! -name "." > ../l.txt
tar -cvf ../BIG_DIR.tar -L ../l.txt

![]() |
![]() |
![]() |

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