CodeIgniter Forums

Full Version: How often do you use the backup() method of the database drivers?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
The Mysql driver in CodeIgniter (I think that's the only one) has a backup feature. Do you ever use this feature? Thinking of dropping it from CI4.
Never used it, our hoster has his own backup plan / solution.
This is the one we use when we need it Smile
Never use it my hosting provider backs up my database every night for me.
I think that dropping the backup feature is a good idea.
Never used it. I'm backing it up manually with mysqldump, phpmyadmin or using a automatic cron script.
(02-07-2019, 01:04 PM)jreklund Wrote: [ -> ]Never used it. I'm backing it up manually with mysqldump, phpmyadmin or using a automatic cron script.

I didn't know that this feature exist!!, but I think It may be very helpful, our app is hosted in private network with crazy security policy, always nothing installed on the server only wamp with phpmyadmin, no ftp, no software, no remote sql, I do phpmyadmin to do backup, and If CodeIgniter has already this feature, It may very helpful for us.

Thanks.
I used a cron script to call the backup from a CLI controller.. it would not be a big deal to write a better solution instead of being lazy.
I've used it.
It came in handy when a client of mine asked for the option to manually download the database.

If you are in an evironment where you can't modify php settings, you may have trouble with large backups, and end up calling this function multiple times for different tables.

Just saying there's room for improvement, maybe making it a class of its own or moving it to the database forge class.
I'm sorry I don't know if these exist in CI4.
never used it. i'm using hosting daily backup.
php exec + mysqldump + Dropbox API on a cron works for me.
Pages: 1 2 3 4