Skip to content

Instantly share code, notes, and snippets.

@bandwidthcrunch
Created September 23, 2013 12:13
Show Gist options
  • Save bandwidthcrunch/6669636 to your computer and use it in GitHub Desktop.
Save bandwidthcrunch/6669636 to your computer and use it in GitHub Desktop.
split tar
tar -czf /dev/stdout $(DIRECTORY_OR_FILE_TO_COMPRESS) | split -d -b $(CHUNK_SIZE_IN_BYTES) - $(FILE_NAME_PREFIX)
To extract the contents:
cat $(FILE_NAME_PREFIX)* >> /dev/stdout | tar -xzf /dev/stdin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment