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

9 total votes
  • Dennis moved item to board Planned

    6 months ago
  • Dennis moved item to board Under review

    9 months ago
  • SMIT. moved item to project Site Level Requests

    9 months ago
  • SMIT. created the item

    9 months ago