automysqlbackup文件为空

我最近在Ubuntu服务器上设置了automysqlbackup。

脚本运行良好,不会报告任何错误 – 它会按预期创buildtar.gz文件。 但是,当我从档案中提取实际的sql文件时,它是一个零长度的文件。

有没有什么明显的,我在configuration丢失?

以下是我修改的configuration文件的唯一部分:

# Username to access the MySQL server eg dbuser USERNAME=myusername # Username to access the MySQL server eg password PASSWORD=mypass # Host name (or IP address) of MySQL server eg localhost DBHOST=mysql.remotehost.com # List of DBNAMES for Daily/Weekly Backup eg "DB1 DB2 DB3" # Note that it's absolutely normal that the db named "mysql" is not in this # list, as it's added later by the script. See the MDBNAMES directives below # in this file (advanced options). # This is ONLY a convenient default, if you don't like it, don't complain # and write your own. # The following is a quick hack that will find the names of the databases by # reading the mysql folder content. Feel free to replace by something else. # This one does a list of dbs using a MySQL statement. DBNAMES='mydbname' # Backup directory location eg /backups # Folders inside this one will be created (daily, weekly, etc.), and the # subfolders will be database names. Note that backups will be owned by # root, with Unix rights 0600. BACKUPDIR='/home/myuser/automysqlbackup' 

D'哦。 用户错误。 我的主机不接受我的IP连接,但由于某种原因没有返回任何错误,所以脚本只是挂起。

奇怪的是,automysqlbackup在显然超时后没有报告任何问题,但现在已经解决了。