Skip to content

Instantly share code, notes, and snippets.

@BenSlabbert
Created January 3, 2019 12:50
Show Gist options
  • Save BenSlabbert/94dd680722105fc6d804c236640c1b21 to your computer and use it in GitHub Desktop.
Save BenSlabbert/94dd680722105fc6d804c236640c1b21 to your computer and use it in GitHub Desktop.
RDS Dump Download
Dumping from RDS:
Below the command to get the dump from the RDS instance to EC2
mysqldump -C -K -h {{rds instance}} -P {{rds port}} -u {{user}} -p {{schema}} | zip > dump.zip
SFTP this zip archive to my local machine (I used FileZilla)
Then push this dump to local:
unzip -p dump.zip | mysql -h 127.0.0.1 -P 3307 -u {{user}} -p {{schema}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment