Welcome Guest, Not a member yet? Register   Sign In
Poll: Do you use the database backup feature?
You do not have permission to vote in this poll.
Yes
41.49%
39 41.49%
No
58.51%
55 58.51%
Total 94 vote(s) 100%
* You voted for this item. [Show Results]

How often do you use the backup() method of the database drivers?
#1

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.
Reply
#2

Never used it, our hoster has his own backup plan / solution.
This is the one we use when we need it Smile
Reply
#3

Never use it my hosting provider backs up my database every night for me.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#4

I think that dropping the backup feature is a good idea.
Reply
#5

Never used it. I'm backing it up manually with mysqldump, phpmyadmin or using a automatic cron script.
Reply
#6

(02-07-2019, 12: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.
Reply
#7

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.
Reply
#8

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.
Reply
#9

never used it. i'm using hosting daily backup.
Reply
#10

php exec + mysqldump + Dropbox API on a cron works for me.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB