CodeIgniter Forums
Database Backup - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: Database Backup (/showthread.php?tid=83612)



Database Backup - SubrataJ - 10-10-2022

Is there any way we can take a full backup of the current database(table and views) using CI4?


RE: Database Backup - demyr - 10-10-2022

Can this help you? github


RE: Database Backup - SubrataJ - 10-10-2022

(10-10-2022, 12:27 PM)demyr Wrote: Can this help you? github

will give it a shot and let you know.


RE: Database Backup - Frigg - 02-02-2023

(10-10-2022, 12:27 PM)demyr Wrote: Can this help you? github

Seems to work. But unfortunately only for the default-DB. Is there a hidden Error ?!


RE: Database Backup - Frigg - 02-03-2023

(10-10-2022, 09:56 PM)SubrataJ Wrote:
(10-10-2022, 12:27 PM)demyr Wrote: Can this help you? github

will give it a shot and let you know.

ok, got it: in Utils.php Line 53
replace $db = \Config\Database::connect(); by $db = $this->db;

Works fine, but some difficulties/errors with ' and ".

Utils.php seems to need some Rework.

By and large: good work. Thank you guys!