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-01-2008, 05:47 AM
lkj lkj is offline
Intermediate Member
 
Posts: 22
Default which one is faster? better?

Hi Zimbra(i)ns,

We are going to import several thousands of .ics files into Zimbra. Which one of the folowing would be a faster way to achieve that?

Thx. in advance.
lkj

create folder:
[zimbra@huron ~]$ zmmailbox -z -m user@domain.com createFolder --view contact /'New Calendar'


[A]
import calendar:
[zimbra@huron ~]$ zmprov sm user@domain.com pru /'New%20Calendar' /tmp/user.ics

OR

[B]
curl -k -u admin:zimbra --data-binary @/tmp/user.ics 'https://domain.com/service/home/user@domain.com/'New%20Calendar?fmt=ics'
Reply With Quote
  #2 (permalink)  
Old 07-01-2008, 07:56 AM
Moderator
 
Posts: 441
Default

You'll have to have the user's account (or that folder/calendar) shared to the admin account to use option [b]. I do this by script when I create my accounts, but if you haven't done (or don't want to) that I'd recommend [a].
Reply With Quote
  #3 (permalink)  
Old 07-01-2008, 08:41 AM
lkj lkj is offline
Intermediate Member
 
Posts: 22
Default

We are interested in learning which command would run faster regardless, as we are importing thosands of accounts. Thx. jkl
Reply With Quote
  #4 (permalink)  
Old 07-01-2008, 09:01 AM
Moderator
 
Posts: 441
Default

In that case, you should run the command against 'time' to see how long it takes to run.

Code:
time zmprov...
time curl...
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.