Skip to content

Commit

Permalink
Task 1 - add '--events' tag to suppress warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
yeungegs committed Oct 5, 2017
1 parent eae0a72 commit 36b6e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 0x1A-mysql/1-mysql_backup
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bash
# shell script to generate a MySQL dump of all databases and create a compressed tar.gz archive from it
mysqldump -user=root --password="$1" --all-databases > backuptest.sql
mysqldump --user=root --password="$1" --all-databases --events > backup.sql
tar -cvzf "$(date +%d-%m-%Y).tar.gz" ./backup.sql

0 comments on commit 36b6e71

Please sign in to comment.