This file contains 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 | |
# This script will backup all mysql databases into | |
# compressed file named after date, ie: /var/backup/mysql/2024-05-09_07:00.zip | |
# Setup variables used later | |
# Create date suffix with "F"ull date format and add hour:time | |
suffix=$(date +%F_%H:%M) | |
# Create temporary directory with "-d" option |
This file contains 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 | |
# Authors: | |
# - https://stackoverflow.com/users/5444623/peterm (original script) | |
# - https://github.com/PassiHD2004 (improvements) | |
# This script will backup all mysql databases into | |
# compressed file named after date, ie: /var/backup/mysql/2024-05-09_07:00.zip | |
# Setup variables used later |