From 00180b839135766d9a60bb788d14d724937b63c7 Mon Sep 17 00:00:00 2001 From: slerena Date: Fri, 27 Dec 2013 17:26:36 +0000 Subject: [PATCH] 2013-12-27 Sancho Lerena * util/pandora_backup.sh: Added parameter to ensure max_allowed_packet is limited to 32M on SQL Dump. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@9267 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 5 +++++ pandora_server/util/pandora_backup.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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