Backup Zimbra to NAS

Backup Zimbra to NAS

NFS shared access method in Linux server

Backup Zimbra to NAS,backup zimbra open source

Command to check how many LUNs offered from NAS to particular Linux server. If NAS ip is 172.19.11.10
#showmount -e 172.19.11.10 
Get such a below output
Export list for 172.19.11.10:
/raid0/data/zimbra 172.19.10.10/19
Command to create a folder
#mkdir External_backup
Command to Mount NFS folder in Linux machine.
# mount.nfs 172.19.11.10:/raid0/data/zimbra /external_backup/

Above process is manual on every server. After that all process will done through Linux shell scripts.

 

#/bin/bash
#Author: Vikas kushwaha(admin@sahara.in)
#Date: 14-Aug-2015
DATE=`date "+%b %d, %Y"`
LOG=/tmp/run_time.log
PATH=/external_backup/mailstore2
NFS="172.19.11.10" #chnage nfs server ip
#check server is live or not
TEST1=`/usr/sbin/fping $NFS`
#echo $TEST1
HOLD1=$(echo $TEST1 | /bin/cut -d " " -f3)
#echo $HOLD1
if [ "$HOLD1" = "alive" ]
then
#check NFS is mount or not
if [ ! -d $PATH ]
then
echo "IP $NFS Not mounted from zimbra
Use below command to mount it manually
showmount -e 172.19.11.10
mount.nfs 172.19.11.10:/raid0/data/zimbra /external_backup"
#" | mail -s "Zimbra backup failure" admin@sahara.in
exit 0
fi
for (( i = 1; i <= 3; i++ ))
do
 /usr/bin/rsync -ar /opt/Zimbra/backup/* $PATH
 if test $? -eq 0
 then
 echo "zimbra Backup sync to NAS $PATH: Successfull" > $LOG
 Subject="Successfully Sync zimbra backup to NAS ( $i ) :: $DATE"
 i=5
 else
 echo "zimbra Backup sync to NAS $PATH: Error" > $LOG
 Subject="Error in Sync zimbra backup to NAS ( $i ) :: $DATE"
 fi
done
#@@@@
echo $Subject
#cat $LOG | mail -s "$Subject" admin@sahara.in,network@sahara.in
else
#@@@@
echo "IP $NFS Not pingable from zimbra"
#echo "IP $NFS Not pingable from zimbra" | mail -s "Zimbra backup failure" admin@sahara.in
fi

More link about zimbra large level configuration.

http://www.knowledgelinux.com/?p=508

http://www.knowledgelinux.com/how-to-manage-zimbra-server/

How to Earn 11 Dollars Per Day from AdSense

Backup Zimbra to NAS,backup zimbra open source,