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
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
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
# source this code in a Bash shell ($ . django-csrftoken-login-demo.bash), | |
# and run with a DB name as parameter (e.g. $ django-csrftoken-login-demo demo) | |
django-csrftoken-login-demo() { | |
# -- CHANGE THESE VALUES TO MATCH YOUR ACCOUNT -- | |
local HOSTING_USERID=9988 | |
local HOSTING_PANEL_USER='[email protected]' | |
local HOSTING_PANEL_PASS='my secret login password' | |
local HOSTING_DB_PREFIX='username_' | |
local DB_NAME=$HOSTING_DB_PREFIX$1 |