I would like to propose a new feature that enables running a MySQL backup job as part of the deployment process. This could be implemented similarly to the existing {RUN_SCRIPT [1,2]} functionality, but with a backup ID.


git pull origin {BRANCH}
npm install
# Run a MySQL backup here and continue when done.
npm run create-snapshot
npx directus database migrate:latest

By integrating a MySQL backup job into the deployment script, users can ensure that their database is backed up before proceeding with any migrations or updates. This provides an additional layer of safety and can help prevent data loss during the deployment process.




Yes this is exactly what I need!

no votes yet

You may use @ to mention someone.

Integrate MySQL Backup Job into Deployment Script

13 total votes
  • Dennis moved item to board Planned

    10 months ago
  • Dennis moved item to board Under review

    1 year ago
  • SMIT. moved item to project Site Level Requests

    1 year ago
  • SMIT. created the item

    1 year ago