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 #44

Closed mjo09a closed 10 years ago

mjo09a commented 11 years ago

When running zmbkpose -f I keep getting curl: (6) Couldn't resolve host ' '

liandros commented 11 years ago

There are 2 main branchs : master, and rewrite_proposal_v2.0
Please. Can you tell me what branch are you using?

neotheonce commented 10 years ago

Me too having same error, but the log shows backup completed for all accounts I am using Version 2.0 Beta - By William Felipe Welter 24/05/2012

neotheonce commented 10 years ago

Forgot to mention that I am using master branch

liandros commented 10 years ago

Apparently, in the master branch (I'm not a developer of master branch), a possible cause about it, is that an account does not have configured the ldap attribute "zimbraMailHost" . You can list the zimbraMailDeliveryAddress , and zimbraMailHost attributes by each user using :

source /etc/zmbkpose/zmbkpose.conf && $(which ldapsearch) -x -H $LDAPMASTERSERVER -D $LDAPZIMBRADN -w $LDAPZIMBRAPASS -b '' -LLL "(objectclass=zimbraAccount)" zimbraMailDeliveryAddress zimbraMailHost | awk '/dn/ { if (length(ent) > 0) print ent; ent=""} /^zimbra/ {ent=(ent " " $2)'}

if any account without a corresponding attribute zimbraMailHost (second column), then that is the problem email account ~

dagazz commented 10 years ago

Hi, do you fix this issue? I'm having the same problem, with ldapsearch i get mail.example.com raphael@example.com mail.example.com sidney@example.com mail.example.com carina@example.com

I think the problem is sidney's account, but, i get the attribute zimbraMailHost dn: uid=sidney,ou=people,dc=example,dc=com zimbraMailHost: mail.example.com zimbraMailDeliveryAddress: sidney@example.com

Can you give me a help?? Thanks a lot.

neotheonce commented 10 years ago

I changed the branch. to rewrite_proposal_v2.0. This code is more robust. Still one issue with this branch is, it does not detect auth failure for admin account and just creates all zip files.