URGENT Import: How to re-attach user's archive account?
Results 1 to 5 of 5

Thread: URGENT Import: How to re-attach user's archive account?

  1. #1
    Member
    Join Date
    Jun 2017
    Location
    Cape Town, South Africa
    Posts
    22

    URGENT Import: How to re-attach user's archive account?

    I have the following scenario in old system:



    In the new system:
    • user@domain.com has archiving enabled, but it does not work.
    • user-20170524@domain.com-archive has a GREEN STAR next to the account.



    Question:
    How do I re-attach the archive account onto the user's account?

    kind regards
    aubrey
    if you fart in the woods and nobody hears you, does it count?

  2. #2
    Member
    Join Date
    Jun 2017
    Location
    Cape Town, South Africa
    Posts
    22
    Actually, after some testing I fixed it with:


    and then go into the user@domain.com account archiving option, selecting "user-20170524@domain.com-archive".

    Hope this helps someone else

    kind regards
    aubrey
    if you fart in the woods and nobody hears you, does it count?

  3. #3
    Zextras employee Known ZeXtras Reseller
    Participant

    Join Date
    Aug 2016
    Posts
    72
    Hi, Cyber7.

    Yes, restoring an archived account doesn't take care of some LDAP attributes, and you have to manually set those.
    Some functionality of the NE could be not fully covered, and we could give you specific support within our Support Portal.

    Feel free to open a ticket and explain all your questions!
    IT Support Team Contact Form
    Sales Team Contact Form

    ZeXtras Website
    # ZeXtras Wiki # ZeXtras Store

    Have ZeXtras Suite or ZeXtras Migration Tool been helpful to you?
    Share your experience in the Zimbra Gallery!

    ZeXtras Suite on the Zimbra Gallery
    ZeXtras Migration Tool on the Zimbra Gallery

  4. #4
    Member
    Join Date
    Jun 2017
    Location
    Cape Town, South Africa
    Posts
    22
    Quote Originally Posted by cyber7 View Post
    Actually, after some testing I fixed it with:


    and then go into the user@domain.com account archiving option, selecting "user-20170524@domain.com-archive".

    Hope this helps someone else

    kind regards
    aubrey
    Just a last note, I only had to do the 2 ZMPROV commands above, nothing else!

    ZeXtras restore is working AWESOMELY!
    if you fart in the woods and nobody hears you, does it count?

  5. #5
    Member
    Join Date
    Jun 2017
    Location
    Cape Town, South Africa
    Posts
    22
    After some more testing I found that the above does not quite work. What you need to do is the following:

    1. Create all your accounts with this: zxsuite backup doExternalRestore /path/for/the/data/ provisioning_only TRUE
    2. Then find all your Archive Account with: zmprov ga user@domain.com | grep ArchiveAccount:
    3. Then create your Archive Account with: zmarchiveconfig enable user@domain.com archive-address user-1234@domain.com.archive


    Here is a script I wrote to do all of this. Remember, this server is blank, only the accounts and domains have been created:
    AS ZIMBRA:
    Code:
    accounts=`zmprov -l gaa <domain>`
    echo $accounts
    for ac in $accounts; do
    
            zmprov ga $ac | grep ArchiveAccount: | awk '{print "zmarchiveconfig enable " "'$ac'" " archive-address " $2}' | bash;
    
    ### To add archiving use:
    ### zmarchiveconfig enable <user>@<domain> archive-address <user>-<number>@<domain>.archive
    
    ### to delete archiving use:
    ### su - zimbra -c "zmprov ma <user> -zimbraArchiveAccount <user>-<number>@<domain>.archive"
    done
    Once you have created all your accounts and archive accounts you can start with your restore.

    I had to do this, else Zimbra runs out of licenses with a normal restore.

    kind regards
    aubrey
    Last edited by cyber7; 07-04-2017 at 07:44 PM.
    if you fart in the woods and nobody hears you, does it count?

Bookmarks

Posting Permissions

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