Subversion Repositories oZimbraBackup

Compare Revisions

Ignore whitespace Rev 4 → Rev 3

/branches/1.0.x/changelog.txt
1,9 → 1,3
2015-12-14 Marcus Uddenhed <marcus@osource.se>
 
* oZimbraBackup.sh (core): Modified path to zmcontrol for startup and shutdown.
* oZimbraBackup.sh (core): Removed obsolete code.
 
2014-05-18 Marcus Uddenhed <marcus@osource.se>
 
* oZimbraBackup.sh (core): Changed information regarding contact ways.
/branches/1.0.x/readme.txt
1,4 → 1,4
oZimBackup v1.0.7 2015-12-14
oZimBackup v1.0.6 2012-09-30
----------------------------
 
Overview:
24,7 → 24,7
 
The script is pre-configured with some basic options. Open up the script in a text editor of your choice and change the options to suite your needs.
 
Has been tested with version 8.0.x of Zimbra Collaboration Suite - OSE but should even work with the latest 5.x, 6.x & 7.x OSE branch.
Has been tested with version 7.1.1 of Zimbra Collaboration Suite - OSE but should even work with the latest 5.x and 6.x OSE branch.
 
Disclaimer:
-----------
/branches/1.0.x/oZimbraBackup.sh
23,8 → 23,8
#
# Developer: oSource Development(as of 2009-07-01)
# DevTeam: Marcus Uddenhed
# Version: 1.0.7
# Updated: 2015-12-14 22:17
# Version: 1.0.6
# Updated: 2014-05-18 16:00
#
 
#### Global Settings ####
517,7 → 517,7
echo "`date "+%Y-%m-%d %H:%M:%S"` - Zimbra services starting..." >> $ZimLogFile
 
# Starting Zimbra
su zimbra -c -l "$ZimInstPath/$ZimHome/bin/zmcontrol start" >> $ZimLogFile
su zimbra -c -l "zmcontrol start" >> $ZimLogFile
 
# Send task stop time to log
echo "`date "+%Y-%m-%d %H:%M:%S"` - Zimbra services started." >> $ZimLogFile
525,7 → 525,7
else
 
# Starting Zimbra
su zimbra -c -l "$ZimInstPath/$ZimHome/bin/zmcontrol start"
su zimbra -c -l "zmcontrol start"
 
fi
fi
540,7 → 540,7
echo "`date "+%Y-%m-%d %H:%M:%S"` - Zimbra services stopping..." >> $ZimLogFile
 
# Stopping Zimbra
su zimbra -c -l "$ZimInstPath/$ZimHome/bin/zmcontrol stop" >> $ZimLogFile
su zimbra -c -l "zmcontrol stop" >> $ZimLogFile
 
# Sending task stop time to log
echo "`date "+%Y-%m-%d %H:%M:%S"` - Zimbra services stopped." >> $ZimLogFile
551,7 → 551,7
else
 
# Stopping Zimbra
su zimbra -c -l "$ZimInstPath/$ZimHome/bin/zmcontrol stop"
su zimbra -c -l "zmcontrol stop"
 
# Sleep for 10 seconds to give shutdown some extra time before backup starts
sleep 10
659,6 → 659,10
mkdir -p $ZimMsgDiffTmpPath
}
 
restore_guide() {
echo "Restore Guide"
}
 
script_help() {
# Show help for script
echo "oZimBackup.sh Usage:"
669,6 → 673,9
echo "--msg-diff For differential message backup (Hot)"
echo "--check Check if needed software is installed, depends"
echo " on script configuration"
echo "--restore-guide Shows a short guide on how to restore Zimbra"
#echo "--full-restore Does a complete restore"
#echo "--diff-restore Restores a differential backup"
echo "--help Shows this help"
echo ""
echo "--no-start Tells Zimbra to stay offline after backup"
677,6 → 684,9
echo "Ex. Full backup:"
echo " oZimBackup.sh --full"
echo ""
#echo "Ex. Complete restore:"
#echo " oZimBackup.sh --full-restore /path/to/file/zimbackup.tar.gz"
echo ""
echo "Ex. Full differential backup leaving Zimbra in offline mode:"
echo " oZimBackup.sh --diff --no-start"
echo ""
715,6 → 725,15
file_transfer
log_end
;;
--full-restore)
full_restore
;;
--diff-restore)
diff_restore
;;
--restore-guide)
restore_guide
;;
--check)
pre_check
;;
724,4 → 743,4
*)
script_help
;;
esac
esac