Skip to content

Instantly share code, notes, and snippets.

@m5lil
Created October 15, 2018 22:50
Show Gist options
  • Save m5lil/c7dbe369e571c71374abfa4c23938fce to your computer and use it in GitHub Desktop.
Save m5lil/c7dbe369e571c71374abfa4c23938fce to your computer and use it in GitHub Desktop.
rsync -av -e ssh SOURCE/ USERNAME@NEW_SERVER.COM:/PATH/TO/DESTINATION/
mysqldump --allow-keywords --opt -uMySQL_USERNAME -pPASSWORD DATABASE | ssh USER@DOMAIN "mysql -uMySQL_USERNAME -pPASSWORD DATABASE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment