Cms: [REQUEST] Add control over compression to the backup systems

Created on 20 Mar 2020  Â·  3Comments  Â·  Source: craftcms/cms

Currently the only way to get the DB backups compressed is to select "Download backup" in the backend (or, obviously, to DIY it). But that doesn't affect the file saved on the server, and with MySQL backups often taking up ~10x more space uncompressed than compressed, it would make a huge difference if the admin could elect to have them stored in compressed format server-side:

image

For the backend, another checkbox would do it:

image

And for the terminal, something like ./craft backup/db-tar or ./craft backup/db-zip, perhaps?

enhancement system administration

Most helpful comment

Honestly this probably shouldn’t even be a setting. Craft should probably just be compressing all backups on save.

All 3 comments

Honestly this probably shouldn’t even be a setting. Craft should probably just be compressing all backups on save.

Works for me. ¯_(ツ)_/¯

Done for Craft 3.5!

Was this page helpful?
0 / 5 - 0 ratings