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

Rewrite proposal v2.0 #34

Closed richardsonlima closed 11 years ago

richardsonlima commented 11 years ago

Proposed rewriting for include compatibility for ZCS 8...

bggo commented 11 years ago

liandros, could you check this pull request? Good to know that we may have more help for zmbkpose...

Kind Regards?

liandros commented 11 years ago

Hello richardsonlima . In a initial test, of rewrite_proposal_v2.0, It is running ok on zimbra 8.0.1_GA_5438 . Do you have any error ? Can you show me ?

uthen commented 11 years ago

I found error after the day i do full backup. If i delete this account backup folder and use zmbkpose -i it work properly.

zmbkpose -i -t

2013-05-06 11:16:31 DEBUG: Geting accounts in order of need backup. 2013-05-06 11:16:32 DEBUG: Testing ldapserver ldap://172.16.0.241:389, using user uid=zimbra,cn=admins,cn=zimbra 2013-05-06 11:16:32 DEBUG: Analizing 310 accounts 2013-05-06 11:16:32 DEBUG: virus-quarantine.8khvxx8d@domain.com - No previous inc. backup. Doing FULL... 2013-05-06 11:16:32 DEBUG: virus-quarantine.8khvxx8d@domain.com - START FULL backup ... 2013-05-06 11:16:32 DEBUG: virus-quarantine.8khvxx8d@domain.com - Doing ldap backup ... Invalid DN syntax (34) Additional information: invalid DN

Now i can't do full backup and it show same error.

zmbkpose -f

2013-05-06 11:42:19 DEBUG: Geting accounts in order of need backup. 2013-05-06 11:42:20 DEBUG: Testing ldapserver ldap://172.16.0.241:389, using user uid=zimbra,cn=admins,cn=zimbra 2013-05-06 11:42:20 DEBUG: Analizing 310 accounts 2013-05-06 11:42:20 DEBUG: virus-quarantine.8khvxx8d@domain.com - START FULL backup ... 2013-05-06 11:42:20 DEBUG: virus-quarantine.8khvxx8d@domain.com - Doing ldap backup ... Invalid DN syntax (34) Additional information: invalid DN

Can i skip backup this account?

liandros commented 11 years ago

Hello uthen.
Is your error related to this pull (compatibility for ZCS 8) ? Please, if not, then create a new "Issue" I do not understand the error description. Can you execute it with xtrace and show me?. Example : env SHELLOPTS=$SHELLOPTS:xtrace zmbkpose -f

richardsonlima commented 11 years ago

dumping call stack

2013/5/7 Leandro Santinelli notifications@github.com

Hello uthen.

Is your error related to this pull (compatibility for ZCS 8) ? Please, if not, then create a new "Issue" I do not understand the error description. Can you execute it with xtrace and show me?. Example : env SHELLOPTS=$SHELLOPTS:xtrace zmbkpose -f

— Reply to this email directly or view it on GitHubhttps://github.com/bggo/Zmbkpose/pull/34#issuecomment-17561714 .

[]´s

Richardson Lima - http://br.linkedin.com/in/richardsonlima Administrador de Redes e Sistemas / IT network and systems administrator

Cel.: +55 81 8555-4638 (oi) +55 81 9687-1061 (tim)

"Presta atenção em seus pensamentos, pois eles se tornarão palavras. Presta atenção em tuas palavras, pois elas se tornarão atos. Presta atenção em teus atos, pois eles se tornarão hábitos. Presta atenção em teus hábitos, pois eles se tornarão seu caráter. Presta atenção em teu caráter, pois ele determinará seu destino."

uthen commented 11 years ago

Hi I use ZCS 8 on Ubuntu 12.04 and use Rewrite proposal v2.0

This is log.

liandros commented 11 years ago

Is strange. In the ldap search, the server return: quarantine.8khvxx8d,ou=people,dc=mail,dc=example,dc=co,dc watch the end of line : ....=co,dc It is a line in ldif format, and is posible than it continue in next line. If true, then zmbkpose has a bug, because it does not support "folded lines" in ldif format. Working in the bug.

liandros commented 11 years ago

Hello uthen. Please... try to download and use the branch titled "issue34". Get me a feedback if it works

uthen commented 11 years ago

Hello Liandros. I try issue34 already and it work now. Thank you. :)