copy email forwards from one server to another

ca2236

Well-Known Member
Feb 2, 2018
228
22
18
Nebraska
cPanel Access Level
DataCenter Provider
Hi,
I have about 2K email forwards I have to copy from one server to another. Since I can't bulk download email forwards, I tried to rsync from server1:/etc/avalias to server2:/etc/valiases

But they don't show up. Is there is anyway to copy all of these on the command line to get these to show up?
 

ca2236

Well-Known Member
Feb 2, 2018
228
22
18
Nebraska
cPanel Access Level
DataCenter Provider
They were the same name, but not likely the same UID:GUID. I didn't check that.

Similarly, there is a question on being able to bulk export subdomains and re-import. We did end up being able to use API to do bulk import, but it would be great to be able to easily export/re-import a lot of cpanel settings from server to server without having to use the transfer too as that would require setting up a trust relationship between the two servers :)