Created
December 24, 2015 06:50
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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