Skip to content

Instantly share code, notes, and snippets.

@kirkegaard
Created December 20, 2010 11:33
Show Gist options
  • Star 14 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save kirkegaard/748277 to your computer and use it in GitHub Desktop.
Save kirkegaard/748277 to your computer and use it in GitHub Desktop.
pipe a mysql dump through gzip and send it over ssh
mysqldump -u MYSQL_USERNAME -p YOUR_DATABASE | gzip -c | ssh USERNAME@YOUR_TO_HOST 'cat > ~/dump.sql.gz'
@DanAmt
Copy link

DanAmt commented Feb 4, 2022

can use that right now, since I am out of space on the server :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment