Perl script to split a directory-tree into evenly-sized chunks, for copying onto multiple disks, CDs, etc., such that the parts can be reassembled with a simply file-copy at the other end
Usage:
perl enchunk.pl InputDirectory ChunkSize OutputPattern
ChunkSize can be specified in KB, MB, etc.
OutputPattern should include an asterisk which will be replaced by a number. Several directories will be created in pwd with this pattern, to hold the chunks of InputDirectory
Files are copied, not moved, so InputDirectory will remain intact, and you will need enough disk space to make a copy of it.
The Perl programming language is required. The File::Copy module is required. The program may need to be modified to work on Apple computers, as it assumes / as directory-separator
Example usage:
perl enchunk.pl /home/john 700MB chunk*
Download here (2K text file)