1 (edited by neozimpi@gmail.com 2015-05-28 21:13:55)

Topic: backup issue openldap

==== Required information ====
- iRedMail version:      v0.4.2 (LDAP)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache2
- Linux/BSD distribution name and version: Debian 7 Wheezy x64
- Related log if you're reporting an issue:
====

Hello team,

i want to test the backup system and therefore checked if the scripts are actualy working.
They do. So far.
I ran the backup scripts manualy for the check on mysql it gave me the message:
* Backup completed (Success? yes).
But for openldap i got a no.
* Backup completed (Success? NO).
I checked the target folder. the files are there. Is this a glitch or did i miss something?

openldap backup log:

* Starting backup at 2015.05.28.15.00.41
* Backup directory: /var/vmail/backup/ldap/2015/05.
* Dumping LDAP data into file: /var/vmail/backup/ldap/2015/05/2015.05.28.15.00.41.ldif...
* File size:
=================
92K     /var/vmail/backup/ldap/2015/05/2015.05.28.15.00.41.ldif
=================
* Backup completed (Success? NO).

I hope the backup is working and maybe the script is only bugy. wink

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: backup issue openldap

ok figured it out. i checkd with "sh" an the error for oldap occoured if i use /bin/bash its working.
Could you explain why it is not working with sh?

Thx

3

Re: backup issue openldap

These backup scripts are written in bash shell scripting language, if /bin/sh is not a symbol link to /bin/bash, it may not fully support bash syntax.

This usually happens on Ubuntu, because /bin/sh is dash, not bash.

4

Re: backup issue openldap

Thanks for the explanation.

No everything is working great.

Thanks you very much.