error line 408: $2: ambiguous redirect

Help
Gonzalo
2007-01-17
2013-05-29
  • Gonzalo
    Gonzalo
    2007-01-17

    hi there just upgraded to version 2.5 and I'm getting the following on stdout:

    ###### WARNING ######
    Errors reported during AutoMySQLBackup execution.. Backup failed
    Error log below..
    rm: /Users/gonzalo/Backup/MySQL/daily/: is a directory
    /usr/local/bin/automysqlbackup: line 408: $2: ambiguous redirect
    gzip: /Users/gonzalo/Backup/MySQL/daily/ xbow_data/ xbow_data_2007-01-17_14h10m.Wednesday.sql: No such file or directory
    gzip: /Users/gonzalo/Backup/MySQL/daily/ xbow_data/ xbow_data_2007-01-17_14h10m.Wednesday.sql.gz: No such file or directory
    cp: xbow_data_2007-01-17_14h10m.Wednesday.sql.gz: No such file or directory
    cp: xbow_data/: No such file or directory
    cp: /Users/gonzalo/Backup/MySQL/daily/ is a directory (not copied).

    it only happens with the db xbow_data which contains quite large tables, I have set the MAX_ALLOWED_PACKET=50MB the script is running on localhost

    any clues would be greatly appreciated.