Creating multiple zip files based on the zip file size limit

Hello Friends,

I have a DB daily backup file which comes to around 45GB after zip. It is difficult to handle (download to local and push it to cloud). We frequently face disconnect issues when we upload it to remote environment.

So, I would like to split it into multiple files (ex: 10GB per zip).

Please help me to achieve this.

Thanks,
Dilip

இந்த சிக்கல் தொடர்கின்றதா என்று கூறவும்.

இந்த தலைப்பில் விவாதம் தொடராததால் விடை கிடைக்கவில்லை என்று முடிக்கிறோம்.

split command can be used here

For example

split -b 5M largefile.txt

will split a large file to multiple 5M chunks.

explore about csplit too

1 Like

However, I have more than 1400 zip files (for example, 2GB, 1.7GB, 22GB, 0.7GB, 400MB, etc.). The overall amount of backup that we generate from the terminal is between 42 and 47 GB. The file is difficult for us to transfer from the server to our external storage space. We occasionally experience problems with connectivity as well.

I brought up a clarification in the Forum for this reason.

Thanks,
Dilip