Skip to content

Instantly share code, notes, and snippets.

@dylanroy
Last active June 17, 2016 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dylanroy/4144abb99c88d1fe57d6135ebcd09bb5 to your computer and use it in GitHub Desktop.
Save dylanroy/4144abb99c88d1fe57d6135ebcd09bb5 to your computer and use it in GitHub Desktop.
Splits up a file into multiple 1gb archives.
# Make sure you zip up the file first
echo "Splitting up archive $1"
tar -cvzf $1.tar.gz $1
split -b 1024mb $1.tar.gz $1.tar.gz.
@dylanroy
Copy link
Author

TODO: Create a file that will unzip these later.

@dylanroy
Copy link
Author

cat $1.tar.gz.* > $1.tar.gz to combine again.

@dylanroy
Copy link
Author

Just splitting up the file, not actually a multi-file archiver that is aware of all of its parts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment