Good day,
We are finalizing our migration from one O/S to another and found an oddity within the process that I am hoping someone can shed light on. Version of Zimbra is 5.0.4 on OpenSuse 10.2
For our backups of Zimbra, we rsync the entire /opt/zimbra directory to the backup server with the following options: rsync -avHK. While testing our migration, we rsynced (rsync -avH) the /index, /store, /db/data and /logger/db directories from our backups to a separate hard drive then used this information to restore Zimbra with a script we came up with. The script will rsync the data again into the new installation of Zimbra (rsync -avH --delete) This all works fine except for one issue.
Last month, we had the entire company go through a password change. When we do the migration/restore on a test box, we end up with a working server, but using the old passwords. Backups run nightly and the four directories were rsynced (several times) from the backups after the password change so we would have expected our backups to contain the correct information.
The backup script is more defined here:
MAX_ROTATIONS=20
ROOT_DIR=/backup
SSH_KEY=/root/.ssh/id_dsa_backup.key
doitLinux () {
local LOG_FILE=$ROOT_DIR/${HOSTNAME}.${SHARE}.log
rm -rf $ROOT_DIR/$HOSTNAME/$SHARE.$MAX_ROTATIONS
for c in $( seq $MAX_ROTATIONS -1 2 ); do
mv -f $ROOT_DIR/$HOSTNAME/$SHARE.$((c-1)) $ROOT_DIR/$HOSTNAME/$SHARE.$((c)) 2> /dev/null
done
# Create the initial backup and difference directories if they don't exist.
mkdir -p $ROOT_DIR/$HOSTNAME/$SHARE
mkdir -p $ROOT_DIR/$HOSTNAME/$SHARE.1
echo "#########################################" > $LOG_FILE
echo "# Backup started for $HOSTNAME on `date` " >> $LOG_FILE
echo "#########################################" >> $LOG_FILE
rsync -avH $OPTIONS \
--partial \
--delete \
--backup --backup-dir=$ROOT_DIR/$HOSTNAME/$SHARE.1 \
-e "ssh -i $SSH_KEY" \
$SOURCE_DIR \
$ROOT_DIR/$HOSTNAME/$SHARE \
>> $LOG_FILE
############################
# ZIMBRA
############################
HOSTNAME=ZIMBRA
SHARE=zimbra
SOURCE_DIR=10.2.32.8::zimbra
OPTIONS=-K
doitLinux
So, what are we missing? Is the issue with how we are backing up the data?
Sir Bob
