Error in script
Brought to you by:
infyquest
There is an error message using the script. Looks like missing quotes to me.
This should work:
--- autobackupmysql.sh.org 2024-11-23 05:18:24.964097000 +0100
+++ autobackupmysql.sh 2024-11-23 05:17:40.138071000 +0100
@@ -553,7 +553,7 @@
fi
# Weekly Backup
- if [ $DNOW = $DOWEEKLY ]; then
+ if [ "$DNOW" = "$DOWEEKLY" ]; then
echo Weekly Backup of Databases \( $DBNAMES \)
echo
echo Rotating 5 weeks Backups...