Database Backup Class
Created originally on Bitbucket by lambjs (Josh Lamb)
In repo SGT.Hudson.BurtHudson.com, there is a class for database backups located in private/class.MysqlBackup.php. I'd like this moved into the SGT.Sterling.Database library to make it easily reusable in other projects.
- Create a branch in SGT.Sterling.Database library off of the default branch called 1-database-backups
- Copy the class from the burthudson library as-is to src/Sterling/Database/Utils/DatabaseBackup.php.
- Rename the class and set it to be in the appropriate PSR-4 namespace based on it's filepath
- Remove user, host, pass class variables. The db variable will now be a QDB database object. Change the constructor to typehint for this ie __construct(QDB_Interface $qdb. ...) and make sure you include the appropriate namespace def at the top Sterling/Database/QDB/QDB_Interface
- Replace all functionality that makes use of the old mysql library with qdb calls instead.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information