Skip to content

Instantly share code, notes, and snippets.

@dasegn
Created December 24, 2015 06:50
Show Gist options
  • Save dasegn/397f080957989b65e40a to your computer and use it in GitHub Desktop.
Save dasegn/397f080957989b65e40a to your computer and use it in GitHub Desktop.
Split one big TAR file in little parts / join back all in original file
# Create and split file (4GB parts)
sudo tar -zcf - directory_or_file | split -b 4000m - part.tar.gz.
# Join all parts in one file
cat part.tar.gz.* > big-file.tar.gz
# Join all parts and extract (actual path)
cat part.tar.gz.* | tar xzf -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment