Compress MySql Backup

How To Compress MySQL Backup

On this video I will show you on how to compress MySQL backup. On our previous videos we already created a MySQL database backup and restore function. We will make a few changes to the backup function so that we can compress MySQL backup. To compress MySQL backup we will be using 7-zip application.

7-Zip is an open source file archiver, an application used primarily to compress files. 7-Zip uses its own 7z archive format, but can read and write several other archive formats. The program can be used from a command line interface, graphical user interface, or with a window-based shell integration. 7-Zip began in 1999 and is developed by Igor Pavlov. The cross-platform version of the command line utility, p7zip, is also available.

We will be using our project for Modern UI tutorial. If you don’t have a copy please check out the download section of this site.

In order to use 7-zip as an archiving tool for our project we need to grab a copy of its installer at Once we have the copy of the installer just install it on your PC and get a copy of 7z.exe and 7z.dll. Add 7z.exe and 7z.dll under Resources folder of our project just like what we did in mysqldump.exe and mysql.exe.

Liked it? Take a second to support denricdenise on Patreon!

You may also like...