Menu

automysqlbackup: line 679: [: 1: unary operat

Blurg Aap
2011-02-14
2013-05-29
  • Blurg Aap

    Blurg Aap - 2011-02-14

    After a while the script stops with this error:

    ###### WARNING ######
    Errors reported during AutoMySQLBackup execution.. Backup failed
    Error log below..
    automysqlbackup: line 679: [: 1: unary operator expected

    679:  if ; then
    680:                ${ECHO} Weekly Backup of Databases \( ${DBNAMES} \)
    681:                ${ECHO}
                    ${ECHO}
                            dbdump "${DBNAMES}" "${BACKUPDIR}/weekly/week.${W}.${DATE}.sql"
                             && {
                                    ${ECHO} Rotating 5 weeks Backups…
                                    ${FIND} "${BACKUPDIR}/weekly/" -mtime +35 -type f -exec ${RM} -v {} \;
                            }

    anyone had this error ?

     
  • Kyle Hall

    Kyle Hall - 2011-03-10

    I am also getting this error. I've sent a message to the mailing list but have not gotten a reply yet.

     
  • Blurg Aap

    Blurg Aap - 2011-03-23

    I just replaced the ${DOWEEKLY} var for the default value "6"  (with quotes) and now it works.
    I didn't find the real solution yet but for me this is okay now.

     

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.