Ubuntu 5.10 + Open-XChange 0.8.0-6 Tools, scripts and more documentation

by Diego Fantoma (diego_AT_fantoma.it - http://www.fantoma.it), march 2006


Data backup and restore

LDAP Backup

su -
slapcat > backup.ldif

LDAP Restore

su -
/etc/init.d/slapd stop
cd /var/lib/ldap
rm -rf *
/etc/init.d/slapd start
slapadd -l < backup.ldif

PostGRESQL Backup

su -
pg_dump -U openexchange openexchange > backup.sql

PostGRESQL Restore

su - postgres
dropdb openexchange
createdb -O openexchange -E UNICODE openexchange
psql openexchange < backup.sql
exit

Please note that this procedures goes well for migration!