phpMyBackup Version 1.01updated 24 March 2003 - 16 April 2003
Original code © 2002 by Audun Larsen last updated on 16 April 2003 by Martin Norman -- http://www.normsland.co.uk/
The author cannot be held liable for any loss of data caused by using this software. Please use at your own risk. Please see the "QPL.txt" included in this archive for more information.
The company I work for has a database running on mySQL on our intranet webserver and I needed a script that could run off a few tables and not the entire database. Then upload them to our webserver and import them via a batch job.
If you've used phpMyBackup you'll know that it can two of the three things e.g. export the database and ftp it to another server but what it can't do is export individual tables from the database and then import the newest version automatically them via the command line (for a cron/batch job). That is why I have modified the original code to do this and more. Please see the changes section for more details.
I don't intend to update this version anymore than this. Feel free to use and reuse this code as outlined under the QPL license.
When exporting a database or tables phpMyBackup AUTOMATICALLY adds DROP TABLE sql commands for tables. This is different from how the conventional version of phpMyBackup works. If you don't want it dropping database tables before importing them then stick to the original version of phpMyBackup.
Click below to download the zip file.Downloads: 8172
Simply copy the files contained in this archive over the original files in to your phpMyBackup directory. If upgrading from a previous version of phpMyBackup remember to backup your existing phpMyBackup directory before installing this version.
Via the web
To backup individual tables use:
To restore a database simply use
phpMyBackup will automatically go through the "export" directory and import the newest backup for the corresponding database.
Last updated on June 02, 2003