How to use multi-core CPU to acclerate the tar
1 |
|
for each dir create a tar file
1 |
|
Ref: https://stackoverflow.com/questions/15936003/for-each-dir-create-a-tar-file
78
The script that you wrote will not work if you have some spaces in a directory name, because the name will be split, and also it will tar files if they exist on this level.
You can use this command to list directories not recursively:
1 |
|
and this one to perform a tar on each one:
1 |
|