Added split's notes to the knowledge base

This commit is contained in:
Michele Cereda
2022-05-05 23:55:37 +02:00
parent d3e6a853a3
commit b65dbf0dc2

22
knowledge base/split.md Normal file
View File

@@ -0,0 +1,22 @@
# Split
## TL;DR
```shell
# Break the 'home.tar.bz2' archive file into small blocks.
# Each block up to 10MB (10\*1000\*1000) in size.
# Prefix each chunk with 'home.tar.bz2.part'.
split -b 10M home.tar.bz2 "home.tar.bz2.part"
# Break the 'logs.tgz' file into 2M (2\*1024\*1024) bytes blocks.
# Number them in the suffix.
split -b 2M -d logs.tgz "logs.tgz."
```
## Sources
- [split large tar into multiple files of certain size]
- [create a tar archive split into blocks of a maximum size]
[create a tar archive split into blocks of a maximum size]: https://unix.stackexchange.com/questions/61774/create-a-tar-archive-split-into-blocks-of-a-maximum-size
[split large tar into multiple files of certain size]: https://www.tecmint.com/split-large-tar-into-multiple-files-of-certain-size/