Skip to content
This repository was archived by the owner on Mar 28, 2025. It is now read-only.

Conversation

@saurookadook
Copy link
Contributor

Description

Add scripts for use with new Craft config, that allow for stashing and popping local databases to stash.sql.gz file

Related issues

project.yaml (I think that's all I need to say 🙃 )

How to test

  • make sure your ./backups directory doesn't have a stash.sql.gz file in it
  • make some things (entries, categories, etc.) and run ./bin/stash-db, which should result in a stash.sql.gz file being created in the ./backups directory
  • restart Docker containers (./bin/start) and you none of those entries, categories, etc. should have persisted
  • stop containers, run ./bin/pop-db and ./bin/start, and then check for the entries, categories, etc. that you created (which should now be present)

Copy link
Member

@mgburns mgburns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, @saurookadook! Can you add some documentation detailing this new functionality in the README?

@saurookadook
Copy link
Contributor Author

Thanks for the PR, @saurookadook! Can you add some documentation detailing this new functionality in the README?

@mgburns Lost track of this but I'll make a note to update the README soon!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants