SourceForge has been redesigned. Learn more.
Close

#16 script stopped working

open
nobody
None
5
2012-10-29
2012-10-29
bertys
No

This past week my backup has been failing. I've tried to find the cause but can't.
As far as i'm aware, no changes have been made to the server so it seems that this has started out of nowhere.

when run, script now outputs a load of the following:

/etc/automysqlbackup/myserver.conf: line 11:
: command not found
/etc/automysqlbackup/myserver.conf: line 14:
: command not found
/etc/automysqlbackup/myserver.conf: line 16:
: command not found
/etc/automysqlbackup/myserver.conf: line 19:
: command not found
/etc/automysqlbackup/myserver.conf: line 22:
: command not found
/etc/automysqlbackup/myserver.conf: line 25:
: command not found
/etc/automysqlbackup/myserver.conf: line 29:
: command not found
/etc/automysqlbackup/myserver.conf: line 32:
: command not found
/etc/automysqlbackup/myserver.conf: line 40:
: command not found
/etc/automysqlbackup/myserver.conf: line 49:
: command not found

all of which seem to be pointing to the empty lines in the conf file. putting a '#' on each of the empty lines, gets rid of those messages but I never used to get them.

on top of that, im getting the following error which seems to be what's causing the backup to fail:

# Parsing databases ... Note: Parsed config file /etc/automysqlbackup/myserver.conf.
Error: The mysql server is empty, i.e. no databases found. Check if something is wrong. Exiting.

###### WARNING ######
Errors reported during AutoMySQLBackup execution.. Backup failed
Error log below..
ERROR 2005 (HY000): Unknown MySQL server host 'localhost' (1)

any help would be appreciated, thanks

Discussion

  • bertys

    bertys - 2012-10-29

    script is also creating a folder named "MFAGL9~F" in my backup dir inside which all the proper folders 'daily', 'weekly'.... etc are also created but remain empty when backup fails.

     
  • bertys

    bertys - 2012-10-29

    SOLVED:

    totally my own fault, seems that it was all caused by my editing the conf and somehow saving it in dos format.

     

Log in to post a comment.