Last active
October 9, 2018 07:19
-
-
Save davdenic/ac14dad07f6464b68dd86b9b7d19f806 to your computer and use it in GitHub Desktop.
DDEV TYPO3 DB remote export / local import using typo3 console
This file contains hidden or 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
#!/usr/bin/env bash | |
#replace user server and your-server-www-path | |
USER=your-ssh-remote-user | |
SERVER=your-remote-server | |
SERVERWWWPATH=your-server-absolute-path-www-htdoc | |
ssh $USER@$SERVER "source ~/.profile; $SERVERWWWPATH/typo3cms database:export -e cf_* -e cache_* -e [bf]e_sessions -e sys_log -e sys_history -e sys_domain -e tx_realurl_*" | ddev exec ../typo3cms database:import && ddev exec ../typo3cms database:updateschema * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment