SQL-Backup by administrator

Wish to see a specific feature/change in future releases? Feel free to post it here, and if it gets enough "likes", we'd definitely include it in future releases!
Post Reply
User avatar
RonP
Veteran Member
Posts: 258
Joined: 2013-08-27 13:36
Location: Heiloo, The Netherlands
Contact:

SQL-Backup by administrator

Post by RonP » 2013-12-15 14:32

Hi,
Wouldn’t it be nice to have a backup function (Structure and or data ). This when you are a member in the Administatorgroup.

Now you have to go to PhPAdmin and make a backup from there. So if it is possible within your application it should be nice.

Ron

KSan
AppGini Super Hero
AppGini Super Hero
Posts: 252
Joined: 2013-01-08 20:17

Re: SQL-Backup by administrator

Post by KSan » 2013-12-21 20:59

Here's an idea. You can create a table only Admin can see. In this table you can keep a date / time etc record of when a backup is requested. Then you can attach a PHP script initiating a backup to the after_insert hook. This way you go in and create a new record and trigger a backup request. See the following for how you can use PHP code to trigger backups. Hope this helps.

http://www.php-mysql-tutorial.com/wikis ... bases.aspx

Post Reply