Restore distribution list
Results 1 to 4 of 4

Thread: Restore distribution list

  1. #1
    Junior Member
    Join Date
    Dec 2019
    Posts
    2

    Restore distribution list

    Hi,

    I have some distribution lists missing users and I would like to restore it to a certain time in the past. The problem I encounter is when I go to distribution lists, right-click one and press "Restore" nothing happens. Same behavior happens on another server with zimbra + zextras.

    Does anyone know how can I fix the problem I have or another way I can restore a distribution list?

  2. #2
    Gil
    Gil is offline
    Moderator Participant
    Join Date
    Sep 2019
    Posts
    13
    Hello Emilian,

    since distribution lists are configuration items you can recover the settings from the command running this as the zimbra user:

    zxsuite backup getServerConfig standard date "05/12/2019 13:51:07" query /distributionsList/$distributionlistname

    where date format is "dd/MM/yyyy HH:mm:ss" and $distributionlistname is just the distribution list name (without the domain part)
    Last edited by Gil; 12-05-2019 at 05:31 PM.
    Gil - Zextras Technical Support Engineering
    https://support.zextras.com

  3. #3
    Junior Member
    Join Date
    Dec 2019
    Posts
    2
    Thanks for your answer. I see the command you provided is a query and provides me the data I need, but is there a command that restores that data instead of just displaying it? I have to many lists to do it manually and if you already know the command it would save me the time of searching for it.

  4. #4
    Gil
    Gil is offline
    Moderator Participant
    Join Date
    Sep 2019
    Posts
    13
    Hello Emilian,

    i apologize for the spelling error in my previous reply.

    At the moment it is not possible to restore it since it's not really an address but a configuration item.
    It can be done quickly via command line using the zmprov command https://wiki.zimbra.com/wiki/Zmprov_...ribution_Lists

    It is not difficult to script, something like this should return the correct list of addresses
    Code:
    zxsuite backup getServerConfig standard date "05/12/2019 13:51:07" query /distributionsList/$yourdistributionlist| cut -d" " -f3|grep @
    if the output is correct you can then insert them with this
    Code:
    zxsuite backup getServerConfig standard date "05/12/2019 13:51:07" query /distributionsList/$yourdistributionlist| cut -d" " -f3|grep @|sed -e 's/^/ adlm $yourdistributionlistaddress /' |xargs -l zmprov
    probably a bit slow but effective.
    Last edited by Gil; 12-05-2019 at 05:14 PM.
    Gil - Zextras Technical Support Engineering
    https://support.zextras.com

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
  •