bggo / Zmbkpose

The zmbkpose tool is a shell script that does hot backup and hot restore of ZCS Opensource accounts, GPL(OPENSOURCE). It can run from any host in the net, which means that it can be set on a backup server already existent.
http://wiki.zimbra.com/wiki/HOT_Backup_and_HOT_Restore
GNU General Public License v3.0
79 stars 56 forks source link

curl couldn't resolve host #59

Open mateusguilhermedasilva opened 9 years ago

mateusguilhermedasilva commented 9 years ago

run command ./zmbkpose -f

.. .. .. .. curl (6) couldn't resolve host

What is the solution ?

ancientz commented 9 years ago

My zmbkpose is quite old and is also showing this error, I'll be updating it soon and check if It is solved.

scristopher commented 9 years ago

I am getting this error as well. Not sure if its just cosmetic as of yet, backups complete and I can restore from a user backup so all appears well...

krokodilerian commented 9 years ago

I have the same issue, the problem is that ldapsearch doesn't sort in the results it gets, so for some results you have

dn: uid=user.1,ou=people,dc=example,dc=org zimbraMailHost: mail.example.com zimbraMailDeliveryAddress: user.1@example.com

and for others dn: uid=user.2,ou=people,dc=example,dc=org zimbraMailDeliveryAddress: user.2@example.com zimbraMailHost: mail.example.com

This confuses the script and it can't find the proper mail host.

I've done a very quick hack, I added the MAILHOST variable to the config and removed its calculation (for me, it was on lines 191 and 208, for the full backup), which seems to solve the issue.

mrdsh commented 5 years ago

If you have multiple domains how to mention it? And I am also getting below error.

curl: (6) Couldn't resolve host '' curl: (6) Couldn't resolve host '' curl: (6) Couldn't resolve host ''