Mention how to restore backup data dumped with 'ldapsearch'.
This commit is contained in:
parent
d1043cb42f
commit
90bb03d979
|
@ -10,6 +10,7 @@ to backup SQL/LDAP databases, you can find them in downloaded iRedMail release,
|
||||||
or find them in [iRedMail source code repository](https://bitbucket.org/zhb/iredmail/src/default/iRedMail/tools/):
|
or find them in [iRedMail source code repository](https://bitbucket.org/zhb/iredmail/src/default/iRedMail/tools/):
|
||||||
|
|
||||||
* `iRedMail-[VERSION]/tools/backup_openldap.sh`: used to backup OpenLDAP data.
|
* `iRedMail-[VERSION]/tools/backup_openldap.sh`: used to backup OpenLDAP data.
|
||||||
|
* `iRedMail-[VERSION]/tools/backup_ldapd.sh`: used to backup OpenBSD ldapd(8).
|
||||||
* `iRedMail-[VERSION]/tools/backup_mysql.sh`: used to backup MySQL/MariaDB databases.
|
* `iRedMail-[VERSION]/tools/backup_mysql.sh`: used to backup MySQL/MariaDB databases.
|
||||||
* `iRedMail-[VERSION]/tools/backup_pgsql.sh`: used to backup PostgreSQL databases.
|
* `iRedMail-[VERSION]/tools/backup_pgsql.sh`: used to backup PostgreSQL databases.
|
||||||
|
|
||||||
|
@ -69,6 +70,14 @@ You can simply restore plain SQL files backed up by above backup scripts.
|
||||||
> SQL credentials.
|
> SQL credentials.
|
||||||
|
|
||||||
### LDAP
|
### LDAP
|
||||||
|
|
||||||
|
!!! attention
|
||||||
|
|
||||||
|
* If you backup with `slapcat` command, you must restore the backup with
|
||||||
|
`slapadd` command.
|
||||||
|
* If you backup with `ldapsearch` command or phpLDAPadmin, you must restore
|
||||||
|
the backup with `ldapadd` command.
|
||||||
|
|
||||||
#### How to restore OpenLDAP backup
|
#### How to restore OpenLDAP backup
|
||||||
|
|
||||||
Backup script runs command `slapcat` to dump whole LDAP tree as a backup, it
|
Backup script runs command `slapcat` to dump whole LDAP tree as a backup, it
|
||||||
|
|
|
@ -45,6 +45,7 @@ to backup SQL/LDAP databases, you can find them in downloaded iRedMail release,
|
||||||
or find them in <a href="https://bitbucket.org/zhb/iredmail/src/default/iRedMail/tools/">iRedMail source code repository</a>:</p>
|
or find them in <a href="https://bitbucket.org/zhb/iredmail/src/default/iRedMail/tools/">iRedMail source code repository</a>:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>iRedMail-[VERSION]/tools/backup_openldap.sh</code>: used to backup OpenLDAP data.</li>
|
<li><code>iRedMail-[VERSION]/tools/backup_openldap.sh</code>: used to backup OpenLDAP data.</li>
|
||||||
|
<li><code>iRedMail-[VERSION]/tools/backup_ldapd.sh</code>: used to backup OpenBSD ldapd(8).</li>
|
||||||
<li><code>iRedMail-[VERSION]/tools/backup_mysql.sh</code>: used to backup MySQL/MariaDB databases.</li>
|
<li><code>iRedMail-[VERSION]/tools/backup_mysql.sh</code>: used to backup MySQL/MariaDB databases.</li>
|
||||||
<li><code>iRedMail-[VERSION]/tools/backup_pgsql.sh</code>: used to backup PostgreSQL databases.</li>
|
<li><code>iRedMail-[VERSION]/tools/backup_pgsql.sh</code>: used to backup PostgreSQL databases.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -102,6 +103,15 @@ the same SQL accounts with different passwords, so please do not restore
|
||||||
SQL credentials.</p>
|
SQL credentials.</p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<h3 id="ldap">LDAP</h3>
|
<h3 id="ldap">LDAP</h3>
|
||||||
|
<div class="admonition attention">
|
||||||
|
<p class="admonition-title">Attention</p>
|
||||||
|
<ul>
|
||||||
|
<li>If you backup with <code>slapcat</code> command, you must restore the backup with
|
||||||
|
<code>slapadd</code> command.</li>
|
||||||
|
<li>If you backup with <code>ldapsearch</code> command or phpLDAPadmin, you must restore
|
||||||
|
the backup with <code>ldapadd</code> command.</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
<h4 id="how-to-restore-openldap-backup">How to restore OpenLDAP backup</h4>
|
<h4 id="how-to-restore-openldap-backup">How to restore OpenLDAP backup</h4>
|
||||||
<p>Backup script runs command <code>slapcat</code> to dump whole LDAP tree as a backup, it
|
<p>Backup script runs command <code>slapcat</code> to dump whole LDAP tree as a backup, it
|
||||||
must be so restored with command <code>slapadd</code>.</p>
|
must be so restored with command <code>slapadd</code>.</p>
|
||||||
|
|
Loading…
Reference in New Issue