Hello,

I'm trying to back up the Zimbra server, but it still fails. I tested several backup scripts, but the restore errors happen.

I'm following these steps:

zimbrabackup

Code:
#!/bin/bash

/etc/init.d/zimbra stop

rm -Rf /opt/backup/dados/*

mkdir /opt/backup/dados/
mkdir /opt/backup/dados/zimbra
mkdir /opt/backup/dados/zimbra/data
mkdir /opt/backup/dados/zimbra/db

cp -Rp /opt/zimbra/db/data /opt/backup/dados/zimbra/db
cp -Rp /opt/zimbra/index /opt/backup/dados/zimbra
cp -Rp /opt/zimbra/store /opt/backup/dados/zimbra
cp -Rp /opt/zimbra/data/ldap /opt/backup/dados/zimbra/data

/etc/init.d/zimbra start

cd /opt/backup/dados/
tar -cf zimbra.tar zimbra/
gzip -9 zimbra.tar
AND zimbrarestore


Code:
/etc/init.d/zimbra stop

mv /opt/zimbra/db/data/mysql /opt/zimbra/db/
rm -Rf /opt/zimbra/db/data
rm -Rf /opt/zimbra/index
rm -Rf /opt/zimbra/store
rm -Rf /opt/zimbra/data/ldap

cp -Rp /opt/backup/dados/zimbra/index /opt/zimbra
chown -R zimbra:zimbra /opt/zimbra/index/
cp -Rp /opt/backup/dados/zimbra/store /opt/zimbra
chown -R zimbra:zimbra /opt/zimbra/store/
cp -Rp /opt/backup/dados/zimbra/db/data /opt/zimbra/db
chown -R zimbra:zimbra /opt/zimbra/db/data/
cp -Rp /opt/backup/dados/zimbra/data/ldap /opt/zimbra/data
chown -R zimbra:zimbra /opt/zimbra/data/ldap/

rm -Rf /opt/zimbra/db/data/mysql
mv /opt/zimbra/db/mysql /opt/zimbra/db/data
chown -R zimbra:zimbra /opt/zimbra/db/

/opt/zimbra/libexec/zmfixperms

/etc/init.d/zimbra start
Erro in ldap starting.
Code:
Unable to determine enabled services from ldap.
Enabled services read from cache. Service list may be inaccurate.
Something wrong?