mantra2006 has asked for the wisdom of the Perl Monks concerning the following question:
The problem I am facing is if the folder has 300000 files then the program is slow and tar process is taking more than half day to complete..is there a best way to tackle this problem...thanks in advance for your suggestionsmy $ret = system("tar -cvf $tar_file @srcfiles"); if ( -e $tar_file){ system("compress -v $tar_file"); } @srcfiles is the array of filenames which matches the criteria
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Archiving Files
by Joost (Canon) on Dec 11, 2006 at 19:51 UTC | |
|
Re: Archiving Files
by swampyankee (Parson) on Dec 11, 2006 at 20:05 UTC | |
|
Re: Archiving Files
by johngg (Canon) on Dec 11, 2006 at 20:17 UTC | |
|
Re: Archiving Files
by graff (Chancellor) on Dec 12, 2006 at 02:04 UTC | |
|
Re: Archiving Files
by shmem (Chancellor) on Dec 12, 2006 at 17:45 UTC |