Skip to content

Instantly share code, notes, and snippets.

View psyklopz's full-sized avatar

Eric Wright psyklopz

View GitHub Profile
@pugsley
pugsley / mysql-backup.md
Last active July 30, 2022 22:36
MySQL dump > compress > encrypt

Generate openssl keys:

openssl req -x509 -nodes -newkey rsa:2048 -keyout mysqldump-key.priv.pem -out mysqldump-key.pub.pem

Create a mysql default file:

# ~/.mysqldump
[mysqldump]
host = host.here.com