Creating a spanned GZ file

Post date: Jun 29, 2013 12:53:35 AM

I need to backup a large file from Linux to a VFAT file system, which has a file size limitation of 4 GB. So, I'm taking this note for future reference in case I need to restore the compressed file later.

Snatched from StackOverflow:

# create archives $ gzip -c my_large_file | split -b 1024MiB - myfile_split.gz_ # uncompress $ cat myfile_split.gz_* | gunzip -c > my_large_file