![]() |
Export backup database in gzip file format - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Export backup database in gzip file format (/showthread.php?tid=56563) |
Export backup database in gzip file format - El Forum - 01-02-2013 [eluser]Vadorequest[/eluser] Hi, I'm reading http://ellislab.com/codeigniter/user-guide/database/utilities.html#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. Export backup database in gzip file format - El Forum - 01-02-2013 [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; Export backup database in gzip file format - El Forum - 01-02-2013 [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 ? Export backup database in gzip file format - El Forum - 01-02-2013 [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; Export backup database in gzip file format - El Forum - 01-02-2013 [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. |