Tag Info

New answers tagged


Here's another script. You can choose whether you want precisely one million files per segment, or precisely 30 segments. I've gone with the former in this script, but the split keyword allows either choice. #!/bin/bash # DIR="$1" # The source of the millions of files TARDEST="$2" # Where the tarballs should be placed # Create the million-file ...


I wrote this bash script to do it. It basically forms an array containing the names of the files to go into each tar, then starts tar in parallel on all of them. It might not be the most efficient way, but it will get the job done as you want. I can expect it to consume large amounts of memory though. You will need to adjust the options in the start of the ...

Top 50 recent answers are included