Skip to content

Add backup and restore script for ShopDB databases#157

Open
Baranotik15 wants to merge 1 commit into
mate-academy:mainfrom
Baranotik15:main
Open

Add backup and restore script for ShopDB databases#157
Baranotik15 wants to merge 1 commit into
mate-academy:mainfrom
Baranotik15:main

Conversation

@Baranotik15

Copy link
Copy Markdown

No description provided.

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Review Summary

Your task.sh script correctly implements all required functionality. The script properly reads DB_USER and DB_PASSWORD from environment variables, creates a full backup of ShopDB and restores it to ShopDBReserve, and creates a data-only backup (excluding schema) to ShopDBDevelopment using the --no-create-info flag. All checklist items are satisfied: the script uses mysqldump for backup operations, connects with the provided credentials via -u and -p flags, and is designed for cron job execution without requiring arguments. No critical issues were identified.


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Footnotes

  1. Rate AI review example

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants