From eb1cb9d41ad8a7c4ed4cba58f0f231ffe42818ab Mon Sep 17 00:00:00 2001 From: mattf Date: Fri, 28 Mar 2008 05:36:49 +0000 Subject: [PATCH] Fixed ADMIN_backup.pl to not archive my.cnf if --without-db is set git-svn-id: svn://192.168.202.10@815 3d104415-ff17-0410-8863-d5cf3c621b8a --- agc_2-X/trunk/bin/ADMIN_backup.pl | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/agc_2-X/trunk/bin/ADMIN_backup.pl b/agc_2-X/trunk/bin/ADMIN_backup.pl index af206898..a5bc9b8c 100644 --- a/agc_2-X/trunk/bin/ADMIN_backup.pl +++ b/agc_2-X/trunk/bin/ADMIN_backup.pl @@ -11,6 +11,7 @@ # # 80316-2211 - First Build # 80317-1609 - Added Sangoma conf file backup and changed FTP settings +# 80328-0135 - Do not attempt to archive /etc/my.cnf is --without-db flag is set # @@ -255,8 +256,16 @@ if ( ($without_conf < 1) && ($db_only < 1) ) `$tarbin cf $ARCHIVEpath/temp/$VARserver_ip$sangoma$wday$tar $sgSTRING`; } - ### BACKUP OTHER CONF FILES ON THE SERVER ### - `$tarbin cf $ARCHIVEpath/temp/$VARserver_ip$linux$wday$tar /etc/my.cnf /etc/hosts /etc/rc.d/rc.local /etc/resolv.conf`; + if ($without_db < 1) + { + ### BACKUP OTHER CONF FILES ON THE SERVER ### + `$tarbin cf $ARCHIVEpath/temp/$VARserver_ip$linux$wday$tar /etc/my.cnf /etc/hosts /etc/rc.d/rc.local /etc/resolv.conf`; + } + else + { + ### BACKUP OTHER CONF FILES ON THE SERVER ### + `$tarbin cf $ARCHIVEpath/temp/$VARserver_ip$linux$wday$tar /etc/hosts /etc/rc.d/rc.local /etc/resolv.conf`; + } } if ( ($conf_only < 1) && ($db_only < 1) && ($without_web < 1) )