Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-26-2011, 12:27 PM
Starter Member
 
Posts: 1
Default Backup for message folder with spaces in name

Hello

I trying to do a bash script that make a user messages backup, folder by folder (some folders has 1Gb).
But some message folders has space in name, like:

/pessoal/amigos/ana carolina

In prompt I use:

zmmailbox -z -m mone@dominio.com.br GRU "//?fmt=tgz& query=in:/pessoal/amigos/ana" %20"carolina" > teste.tgz

And works well. But in bash script doesn work:

pasta='/pessoal/amigos/ana carolina'
query=$(echo $pasta | sed -e 's/ /\" \%20\"/g')

zmmailbox -z -m mone@dominio.com.br GRU '//?fmt=tgz&query=in:'"$query" > teste.tgz

ERROR: service.FAILURE (system failure: GET from http://mercurio.dominio.com.br:81/ho...520%22carolina failed, status=500. system failure: tgz formatter failure)

I tried some different combinations and always the error is similar. When $query is passed to zmmailbox command, the " %20" become %22%20%2520%22

Somebody can help me?

Thanks
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.