Compress the folder into a gzip archive (all you need when compressing a single folder):
gzip -c my_large_file | split -b 1024MiB - myfile_split.gz_If the folder has already been compressed, here's the command for splitting it:
split -b 1024m "file.tar.gz" "file.tar.gz.part-"Apparently, recombining is a good use for the cat command. Pipe that output to gunzip and you won't have to create an intermediary archive file before decompression.
cat myfile_split.gz_* | gunzip -c > my_large_fileBasically, by using the pipes you avoid ever letting the unsplit archive sit on your drive.
I found the answer here.
No comments:
Post a Comment