Skip to content

Instantly share code, notes, and snippets.

@davdenic
Last active October 9, 2018 07:19
Show Gist options
  • Save davdenic/ac14dad07f6464b68dd86b9b7d19f806 to your computer and use it in GitHub Desktop.
Save davdenic/ac14dad07f6464b68dd86b9b7d19f806 to your computer and use it in GitHub Desktop.
DDEV TYPO3 DB remote export / local import using typo3 console
#!/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