Skip to content

Instantly share code, notes, and snippets.

@amslezak
Last active May 1, 2020 20:16
Show Gist options
  • Save amslezak/94c404d0641de33e207c3eb3e89fb668 to your computer and use it in GitHub Desktop.
Save amslezak/94c404d0641de33e207c3eb3e89fb668 to your computer and use it in GitHub Desktop.
dumps just structure. useful for rds dumps
/usr/local/mysql/bin/mysqldump --host=${hostname} --port=${port} --user=${dbuser} --password=${dbpass} --lock-tables=false --no-data --routines=true --verbose --set-gtid-purged=OFF --skip-tz-utc ${dbname} > ../dumps/AWS_${dbname}_${dt}.dump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment