File | Date | Author | Commit |
---|---|---|---|
backup | 2011-11-15 |
![]() |
[4d8c3d] Restore feature |
config | 2015-02-03 |
![]() |
[0f39a5] Added explicit TIMEZONE declaration *required* ... |
lib | 2015-02-03 |
![]() |
[600c34] Added note on AWS SDK version |
.gitignore | 2013-03-17 |
![]() |
[ae9f38] Added .gitignore file |
README.md | 2015-02-03 |
![]() |
[14f420] README file updated |
TestBackup.php | 2015-02-03 |
![]() |
[83ca3f] Fixes in require call order in test files |
phpBackup4MySQL.class.php | 2015-02-03 |
![]() |
[17be71] Upgarde AWS SDK to v2.7.17 |
testRestore.php | 2015-02-03 |
![]() |
[83ca3f] Fixes in require call order in test files |
PhpBackup4MySQL is a very easy to use, lightweight Php class to handle MySQL
backups.
This class may be really usefull when direct exec of SQL dump is not an option
(i.e. on most shared hosting).
Despite being simple to use, this class has advanced capabilities like foreign
key constraints handling.
PLEASE NOTE FIRST THAT THIS CLASS IS STILL UNDER DEVELOPMENT STATUS, SO YOU
SHOULD NOT USE IT "OUT OF THE BOX" FOR PRODUCTION UNLESS YOU HAVE DONE PROPER
TESTING. THIS RESPONSIBILITY SOLELY RELIES ON YOU.
FOR THAT MATTER, IT IS REMINDED HERE THAT THIS SOFTWARE IS PROVIDED "AS IS"
WITHOUT WARRANTY OF ANY KIND (PLEASE REFER TO THE LICENSE FOR FULL CONDITIONS
OF USE)
"phpBackup4MySQL" is a php class meant to easily handle SQL backup using php.
Database connexion can be setup through the config.php file.
This class holds a few functions that can be used for that purpose but the
basics are as simple as the example that is supplied in the "TestBackup.php"
file, that is:
Similarly, restoring a backup is as simple as the following (see example
code in "testRestore.php" file):
Some basic documentation can be found in the config and class comments.
Different parameters can be accessed through the config file namely:
Copyright (c) 2011-2014, Yves BOURVON. <groovyprog at="" gmail="" dot="" com="">
All rights reserved.</groovyprog>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
END OF TERMS OF PhpBackup4MySQL LICENSE
This software makes use of following third party library:
AWS SDK for PHP, Licensed under the Apache 2.0 license.