How to migrate distribution list between two servers: Difference between revisions
(Created page with "=How to migrate distribution list between two servers= {{KB|{{ZC}}|{{ZCS 8.6}}|{{ZCS 8.5}}|{{ZCS 8.0}}|}} This article explains how to export a distribution list from one se...") |
|||
Line 13: | Line 13: | ||
2. Then we move the file to the other server (using scp | 2. Then we move the file to the other server (using scp for example) and run: | ||
for i in `cat distlist.txt | egrep -v '#|members'`;do zmprov adlm dist_list2@domain.com $i;done | for i in `cat distlist.txt | egrep -v '#|members'`;do zmprov adlm dist_list2@domain.com $i;done |
Latest revision as of 16:48, 10 February 2017
How to migrate distribution list between two servers
This article explains how to export a distribution list from one server, and import it to a different server.
Resolution
1. First we export&save all members from distribution list called "dist_list1" to a text file:
zmprov gdlm dist_list1@domain.com > distlist.txt
2. Then we move the file to the other server (using scp for example) and run:
for i in `cat distlist.txt | egrep -v '#|members'`;do zmprov adlm dist_list2@domain.com $i;done
The above command imports all members from the "dist_list1" distribution list, into the "dist_list2" distribution list on the second server.