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 06-10-2009, 01:29 PM
Active Member
 
Posts: 37
Default Full User Backup (OSS 5.0.16)

Hi folks,

Sorry if this has already been answered, but searching for "user backup" just gives results that seems to deal at a lower level than I think I need...

What I am looking for is a way to backup a users data -- mailbox folders, address book, calendar, briefcase, etc. from the command line on a per-user basis.

I found one command that I think will give me all of the users mail folders:

zmmailbox -z -m user@domain.com getRestURL "//?fmt=tgz" > /tmp/account-mailfolders.tgz

(what does getRestURL "//?fmt=tgz" mean anyway?)

But I haven't found the respective commands for the other components of a users environment (address book, calendar, mail/folders, tasks, etc).

I'm not so much worried about an entire account being wiped out as much as I am a user accidentally deleting their own stuff. I think I can cover the larger disasters with my full-system backups. I just dont want to have to recover all users when only one may have accidentally erased their address book.

Anyone have any tips on how I might be able to do this?

Thanks,
Michael
Reply With Quote
  #2 (permalink)  
Old 06-11-2009, 12:43 AM
Special Member
 
Posts: 167
Default

The command you posted will backup the whole environment - emails, folders, contacts, tags, calendar etc. You can see this by extracting the resulting .tgz compressed archive.

The //?fmt=tgz part tells Zimbra you want a compressed archive of everything to do with that user. It has several different options, but this is an example on how to retrieve just the contacts folder in CSV format:

/Contacts?fmt=csv
__________________
Craig Rodway » Flickr | Last.fm | Del.icio.us | Twitter
Reply With Quote
  #3 (permalink)  
Old 06-11-2009, 02:51 AM
Active Member
 
Posts: 37
Default

Where is this stuff documented?

I have looked in the Admin Guide for this stuff and just don't see it. A search for getRestURL doesn't turn up anything. The sections on zmmailbox are very limited in what they explain. Documentation seems a bit lacking... unless, of course, I just don't have the documents that I need.

Thanks
-Michael
Reply With Quote
  #4 (permalink)  
Old 06-11-2009, 03:00 AM
Special Member
 
Posts: 167
Default

getRestURL is sort-of "documented" in a 2008 blog post ZCS-to-ZCS Migrations.
__________________
Craig Rodway » Flickr | Last.fm | Del.icio.us | Twitter
Reply With Quote
  #5 (permalink)  
Old 06-11-2009, 03:01 AM
Zimbra Consultant & Moderator
 
Posts: 20,313
Default

For further information search the wiki for the word 'rest'.
__________________
Regards


Bill
Reply With Quote
  #6 (permalink)  
Old 07-08-2009, 06:22 PM
Active Member
 
Posts: 37
Default

Is there a way to do the full backup with an exception? Meaning, for example, if I wanted to backup a users full environment except for one folder in particular?

Thanks,
Michael
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.