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 | |
| # save password for db user "backup" in "~/.mylogin.cnf": | |
| # mysql_config_editor set --login-path=local --host=localhost --user=backup --password | |
| # permisions for backup user: Select table data, Show databases, Lock tables, Show View | |
| # Base folder with backups | |
| BASE_BACKUP_DIR="$HOME/.backup" | |
| # Current date for folder name |