I want to create small tar.gz files (10 MB each)
I tried the split command tar cvzf - /dir | split --bytes=10MB - backup.tar.gz
Split splits a file. That works just fine. However gzip needs all the information. So you would need to concattenate all previous files again in order to uncompress.
What you could do it create tars of about 20 MB, then gzip each of these. Vary the size until they get down the 10 MB compressed.
Since compression varies with the contents this is trail and error.
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.
Best solution I can thing of: Select about 20MB of files. Then tar them into one undle, then compress (with with -z for gzip) or any other program.
And that assumes all files are small enough that you can select wisely from them.
- - , .
.
Recent Questions...
ما را در سایت Recent Questions دنبال میکنید
برچسب:
نویسنده: استخدام کار
بازدید: 242
تاريخ: چهارشنبه
23 تير
1395 ساعت: 16:37