Menu

#5 Error in script

Unstable (example)
open
nobody
None
5
2024-11-23
2024-11-23
No

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...

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.