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-23-2008, 02:07 AM
Active Member
 
Posts: 45
Question Folder Backup - How to get a clean list of all folders but the shared ones

I try to write a simple backup script to be able to restore just the data of all folders of a user with rest urls.

The idea is to:
---
1. get all user
(This is simple zmprov -a gaa)

2. get the list of folders for each user
(This is where my problem starts! I know i can get the folders with "zmmailbox -z -m $account gaf" but this list is not really easy to work on later in the script. &recursive=1 is still not working on REST Urls as far as i know and even if it was working i dont think i could tell the REST Url to just export the local user folders and not the shared ones also?!?)

3. Create REST Urls for all folders and export each with wget as a zip
---

Is there a simple way to get a clean list of all folders of a user from a special type like message or appointment but just those which are not shared folders?!?

Because the last step would be to create rest urls with this folders and get a zip for every rest url. I could even create the folder structure on my backupdrive for each account (zimbrauser) and save this zipfiles there. In case that some messages appointments or whatever get lost for a single user it sould be very easy to restore those date.

I would not be perfect since tags and other meta data would be lost but for most of my recovery tasks it would be enough and i don't have to do a full restore of my full backup on another zimbra server just to get some lost data out without overwriting all days data since my last full backup on my live zimbra install.

Thanks for anything which points me in the right direction!
Reply With Quote
  #2 (permalink)  
Old 09-15-2011, 11:01 PM
Starter Member
 
Posts: 1
Default Listing folders in an account, excluding shares, using zmmailbox command

zmmailbox -z -m somebody@something.org.au gaf | egrep '^.*(appo|mess)[^()]*$' | cut -d'/' -f2
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.