See title. Assume I have the following list of files and relatives sizes:
cat list_of_files.txt: 1243 001.txt 124 002.txt 4132 003.txt 3000 004.txt
I want to be able to split into multiple chunks having the same size (on disk), i.e, for N=2 it would be:
for N=2 list_A.txt: 001.txt 002.txt 004.txt list B.txt: 003.txt N=3: list_A.txt: 001.txt 002.txt list_B.txt: 003.txt list_C.txt: 004.tx etc..
What would be the most efficient way of computing those chunks?
FYI: I want to be able to parallelize rsync, if you have any better way of doing it (rsyncing each file individually won't do it), I'd really appreciate suggestions.