This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Simple script to backup MySQL databases | |
| # Parent backup directory | |
| backup_parent_dir="/var/dbdumps/mysql" | |
| # MySQL settings | |
| mysql_user="root" | |
| mysql_password="" | |
| #name of database which you want to backup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tar cv path_to_dump.sql | xz -9 > filename.tar.xz |
NewerOlder