Skip to content

Instantly share code, notes, and snippets.

@plembo
Created July 31, 2019 20:05
Show Gist options
  • Save plembo/9beabd691d393f42baac782adc8c252b to your computer and use it in GitHub Desktop.
Save plembo/9beabd691d393f42baac782adc8c252b to your computer and use it in GitHub Desktop.
Split large tar file and recombine

Split a large tar file and recombine

Really large backup files, over 100 M, can be difficult to transfer across networks.

One solution is to split the file up into many smaller files and then recombine.

Example uses a 7.8 GB tar.gz file.

$ split -b 100M wordpress-site.tgz “wordpress-site.tgz.part”

This will create 80 files of 100 MB each for transport.

To recombine after transport:

$ cat wordpress-site.tgz.part* > wordpress-site.tgz.joined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment