in reply to Archiving Files
As suggested above, if your version does not support the "z" option for creating a gzipped tar file, you can simply pipe tar's output to a separate gzip command:open( L, ">$tar_file.input_list" ); print L "$_\n" for ( @srcfiles ); close L; system( "tar czf $tar_file.gz -T $tar_file.input_list" );
(I don't think I've ever seen a version of tar that does not support the "-T listfile" option.)system( "tar cf - -T $tar_file.input_list | gzip > $tar_file.gz" );
Apart from that, if you are dealing with lots of data, it's going to take time. Using tar and gzip from the shell command line should give you similar results, and perl has nothing to do with it -- unless, as mentioned in another reply, your list of @srcfiles contains a lot of duplicated entries.
|
|---|