diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index 609ebfd8bc..61f8c4bc77 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,8 @@ +2013-12-27 Sancho Lerena + + * util/pandora_backup.sh: Added parameter to ensure max_allowed_packet + is limited to 32M on SQL Dump. + 2013-12-26 Junichi Satoh * lib/PandoraFMS/Core.pm: Fixed wrong time comparison in planned diff --git a/pandora_server/util/pandora_backup.sh b/pandora_server/util/pandora_backup.sh index e101a1eb62..c42a1d56d8 100755 --- a/pandora_server/util/pandora_backup.sh +++ b/pandora_server/util/pandora_backup.sh @@ -96,7 +96,7 @@ then if [ $DATABASE == 1 ] then - mysqldump -u $DBUSER -p$DBPASS -h $DBHOST $DBNAME > pandorafms_backup_$TIMESTAMP.sql + mysqldump -u $DBUSER -p$DBPASS --max_allowed_packet=32M -h $DBHOST $DBNAME > pandorafms_backup_$TIMESTAMP.sql tar cvzfh pandorafms_backup_$TIMESTAMP.tar.gz pandorafms_backup_$TIMESTAMP.sql $PANDORAPATH/* /etc/pandora /var/spool/pandora/data_in --exclude .data 2> /dev/null > /dev/null else tar cvzhf pandorafms_backup_$TIMESTAMP.tar.gz $PANDORAPATH/* /etc/pandora /var/spool/pandora/data_in --exclude .data 2> /dev/null > /dev/null