forked from openedx-unsupported/devstack
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The LMS and Studio (CMS) are now part of devstack! ECOM-6560
- Loading branch information
Showing
12 changed files
with
13,806 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Dump the specified database to a file of the same name. | ||
# | ||
# Example: | ||
# $ dump-db edxapp | ||
# | ||
# This will dump the edxapp database to a file named exapp.sql. | ||
|
||
if [ -z "$1" ] | ||
then | ||
echo "You must supply a database name!" | ||
exit 1 | ||
fi | ||
|
||
echo "Dumping the $1 database..." | ||
docker exec -i edx.devstack.mysql mysqldump --skip-add-drop-table -B $1 > $1.sql | ||
echo "Finished dumping the $1 database!" |
Oops, something went wrong.