Results 1 to 2 of 2

Thread: zmslapcat: LDAP Backup in one file

  1. #1
    bruno.galindro is offline New Member
    Join Date
    Feb 2011
    Posts
    4
    Rep Power
    4

    Question zmslapcat: LDAP Backup in one file

    Hi all!

    Is it possible to join the ldap.bak and ldap-config.bak, generated by /opt/zimbra/libexec/zmslapcat, in only one file preserving the backup integrity?

    e.g.:

    Backup:
    Code:
    root@z1:~# /opt/zimbra/libexec/zmslapcat -c /opt/zimbra/backup/
    
    root@z1:~# /opt/zimbra/libexec/zmslapcat /opt/zimbra/backup/
    
    root@z1:~# ls -l /opt/zimbra/backup/
    total 1288
    -rw-r----- 1 zimbra zimbra 190853 2011-02-14 15:28 ldap.bak
    -rw-r----- 1 zimbra zimbra 190853 2011-02-14 15:28 ldap.bak.20110214152804
    -rw-r----- 1 zimbra zimbra 457962 2011-02-14 15:28 ldap-config.bak
    -rw-r----- 1 zimbra zimbra 457962 2011-02-14 15:28 ldap-config.bak.20110214152829
    
    root@z1:~# cat /opt/zimbra/backup/ldap-config.bak >> /opt/zimbra/backup/ldap.bak
    Restore:
    Code:
    root@z1:~# /opt/zimbra/openldap/sbin/slapadd -q -b "" -F /opt/zimbra/data/ldap/config -l /opt/zimbra/backup/ldap.bak

  2. #2
    bruno.galindro is offline New Member
    Join Date
    Feb 2011
    Posts
    4
    Rep Power
    4

    Exclamation

    /opt/zimbra/libexec/zmslapcat is a bash script...

    Reading it, I got these two lines:

    Code:
    ${zimbra_home}/openldap/sbin/slapcat -F ${zimbra_home}/data/ldap/config -n 0 -l ${DEST}/${FILE}
    
    ${zimbra_home}/openldap/sbin/slapcat -F ${zimbra_home}/data/ldap/config -b "" -l ${DEST}/${FILE}
    The second command creates a full backup of zimbra´s ldap database (including config database)? Which means, the output of the second command contains the output of the first command?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. speed up the net
    By mcesari in forum Administrators
    Replies: 10
    Last Post: 04-25-2008, 11:24 AM
  2. centos 5 zimbra 4.5.6 no statistics
    By rutman286 in forum Installation
    Replies: 9
    Last Post: 08-14-2007, 09:30 AM
  3. Opensource backup Question.
    By nfear24 in forum Administrators
    Replies: 3
    Last Post: 03-31-2007, 11:47 PM
  4. Traslation SVN tree status
    By meikka in forum I18N/L10N - Translations
    Replies: 7
    Last Post: 02-13-2007, 11:13 AM
  5. M3 problem with shares
    By titangears in forum Users
    Replies: 4
    Last Post: 01-12-2006, 01:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •