Created
October 16, 2013 18:55
-
-
Save LubosRemplik/7012852 to your computer and use it in GitHub Desktop.
Split tar files and cat them together again.
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
You can use split for this: | |
tar czpvf - /path/to/archive | split -d -b 100M - tardisk | |
This tells tar to send the data to stdout, and split to pick it from stdin - additionally using a numeric prefix (`-d`), a chunk size (`-b`) of 100M and using 'disk' as the base for the resulting filenames (tardisk00, tardisk01, etc.). | |
To extract the data afterwards you can use this: | |
cat tardisk* | tar xzpvf - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment