I have a folder with about 50 files. I want to create small tar.gz files (10 mb each) out of these 50 files.
I tried the split command
tar cvzf - /dir | split --bytes=10MB - backup.tar.gz
This does split the files into smaller tar.gz files, but they are no longer extractible. (backup.tar.gzaa, backup.tar.gzab etc)
How can I split them into multiple tar.gz files where each one is self-extractible ?
I would like to have something like backup.tar.gz, backup1.tar.gz so that I can copy individual files to windows machine as and when required.
Thanks in advance.