Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
S sgt-sterling-database
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • SGT - Public
  • sgt-sterling-database
  • Issues
  • #1

Closed
Open
Created May 27, 2016 by Administrator@rootOwner

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.

  1. Create a branch in SGT.Sterling.Database library off of the default branch called 1-database-backups
  2. Copy the class from the burthudson library as-is to src/Sterling/Database/Utils/DatabaseBackup.php.
  3. Rename the class and set it to be in the appropriate PSR-4 namespace based on it's filepath
  4. 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
  5. 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
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking