murrayn has asked for the wisdom of the Perl Monks concerning the following question:
I have a script which uses Archive::Tar to make a transportable copy of a directory tree. A colleague installed it at a client site and ran out of memory building the archive object before writing it to disk. The Archive::Tar FAQ on CPAN offer some options but they won't fit the case.
My script must be OS agnostic and capable of transferring the directory across platforms in any direction (Windows to Linux, AIX to Windows. etc).
I've looked at Archive::Zip but it's not clear to me where the archive object is built - is it in memory or on disk somewhere BEFORE the $zip->writeToFileNamed method is called? I don't want to rewrite things only to run out of memory all over again!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Memory limits on Tar modules
by kevbot (Vicar) on Mar 22, 2016 at 07:43 UTC | |
|
Re: Memory limits on Tar modules
by afoken (Chancellor) on Mar 22, 2016 at 20:07 UTC | |
|
Re: Memory limits on Tar modules
by murrayn (Sexton) on Mar 23, 2016 at 01:29 UTC | |
by afoken (Chancellor) on Mar 23, 2016 at 21:42 UTC |