Export backup database in gzip file format |
[eluser]Vadorequest[/eluser]
Hi, I'm reading http://ellislab.com/codeigniter/user-gui...tml#backup for backup my database. Now, I have this script: Code: $this->load->dbutil(); But I want use gzip file format, not txt format for the write are more speedly. How I can do this ? Thanks for your help.
[eluser]InsiteFX[/eluser]
Code: 'format' => 'gzip', // gzip, zip, txt Make sure that you turn on gzip in php.ini and ./application/config/config.php Code: $config['compress_output'] = TRUE;
[eluser]Vadorequest[/eluser]
Thanks. But when I config to TRUE, my website don't works. Quote:Page Web inaccessible For the moment I'm using txt format, it's works perfectly and it's very speedly. Use gzip will be really better or it's not very useful ?
[eluser]Rowan Wilson[/eluser]
Depends how big your tables are, how many backups you plan to store and also if you plan to download the backups. It comes down to what you need and what your server can accomodate: smaller file sizes or extra CPU cycles to create the zipped file. FYI: Your code works for me just by setting the format to gzip and without setting: Code: $config['compress_output'] = TRUE;
[eluser]Vadorequest[/eluser]
I use a mutualised OVH server so... Thanks for your help, for the moment I don't need gzip file so I will try without for the moment. Good evening. |
Welcome Guest, Not a member yet? Register Sign In |