From 0e42554740e2256eb9bf33bfb2f91788a99a1348 Mon Sep 17 00:00:00 2001
From: admin Permits you to backup your full database or individual tables. The backup data can be compressed in either Zip or Gzip format,
and it can be downloaded to your desktop, archived to your
-server, returned as a string, or simply displayed. Example:
Note: Due to the limited execution time and memory available to PHP, backing up very large +databases may not be possible. If your database is very large you might need to backup directly from your SQL server +via the command line, or have your server admin do it for you if you do not have root privileges.
+ +Usage example:
$this->dbutil->backup();
// When no parameters are passed the full database is backed up and downloaded to your desktop as a Gzip file.
@@ -267,6 +273,13 @@ server, returned as a string, or simply displayed. Example:
$this->dbutil->backup($prefs);
+
+VERY IMPORTANT: If you are using the download action to send the file to your desktop, +DO NOT display any data in the controller in which you are triggering the backup. Since Code Igniter buffers all output, any data +sent to the browser will be included in your export file. This issue ONLY applies to downloads. If you are using any other action +you can display data in your controller.
+ +VERY IMPORTANT: If you are using the download action to send the file to your desktop, -DO NOT display any data in the controller in which you are triggering the backup. Since Code Igniter buffers all output, any data -sent to the browser will be included in your export file. This issue ONLY applies to downloads. If you are using any other action -you can display data in your controller.
- -- cgit v1.2.3-24-g4f1b