*note* I have the script stored in /usr/local/etc/. Does it matter where the script is stored and run?
This is the configuration
#--- Directories ---#
ZM_HOME=/opt/zimbra/
SYNC_DIR=/srv/zimbackup/sync/
ARCHIVEDIR=/srv/backup/zimbackup/
TO_MEDIA_DIR=/srv/backup/burn/
#--- PROGRAM OPTIONS ---#
RSYNC_OPTS="-aHK --delete --exclude=*.pid" # leave these unless you are sure you need something else
#--- ARCHIVE NAMES ---#
BACKUPNAME="Zimbra_Backup" # what you want your backups called
FULL_PREFIX="FULL" # prefix used for full backups
DIFF_PREFIX="DIFF" # prefix used for differential backups
BACKUPDATE=`date +%d-%B-%Y` # date format used in archive names
BACKUPWEEK=`date +%W` # Week prefix used for backup weekly rotation and naming
#--- ARCHIVE SIZE ---#
ARCHIVESIZE="4395M" # storage media size, for full-backup archiving
COMPRESS="9" # valid answers are 1 - 9 ( 9 = best )
#--- Encryption Options ---#
CRYPT="yes" # valid answers are "yes" or "no"
PASSDIR=/etc/ # the directory the encryption hash is stored in.
PASSFILE="passwd" # the file containing the password hash
#--- Log Settings ---#
EMAIL="admin@test.com" # the address to send logs to
EMAILCC="" # another address to send to
LOG="/var/log/zim_backup.log" # log location
#--- SSH REMOTE DR COPY ---#
DRCP="yes" # valid answers are "yes" or "no"
SSHUSER="admin" # recommend creating a user on the remote machine just for transferring backups
SSHKEY="rsa" # recommended answers are "rsa" or "dsa" but "rsa1" is also valid.
REMOTEHOST="remote.test.com" # can use IP too
REMOTEDIR="/tmp/" # where you want your backups saved.
#--- Use Hacks? ---#
# Built in hacks to fix common problems
#Hack to start Stats, even run zmlogprocess if needed
STATHACK="yes" # valid answers are "yes" or "no" |