Results 1 to 6 of 6

Thread: Full User Backup (OSS 5.0.16)

  1. #1
    Join Date
    May 2009
    Posts
    59
    Rep Power
    6

    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

  2. #2
    Join Date
    Oct 2007
    Location
    North East England
    Posts
    167
    Rep Power
    8

    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

  3. #3
    Join Date
    May 2009
    Posts
    59
    Rep Power
    6

    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

  4. #4
    Join Date
    Oct 2007
    Location
    North East England
    Posts
    167
    Rep Power
    8

    Default

    getRestURL is sort-of "documented" in a 2008 blog post ZCS-to-ZCS Migrations.
    Craig Rodway » Flickr | Last.fm | Del.icio.us | Twitter

  5. #5
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    Default

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


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

  6. #6
    Join Date
    May 2009
    Posts
    59
    Rep Power
    6

    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

Similar Threads

  1. [SOLVED] Zimbra logwatch.
    By nishith in forum Administrators
    Replies: 5
    Last Post: 06-10-2009, 05:42 PM
  2. Issue with full backup
    By riccadus in forum Administrators
    Replies: 8
    Last Post: 05-13-2008, 11:28 PM
  3. Zimbra Install Problem - getDirectContext
    By bsimzer in forum Installation
    Replies: 27
    Last Post: 07-19-2007, 11:12 AM
  4. Fedora Core 3, Clean Install - Not working!
    By pcjackson in forum Installation
    Replies: 17
    Last Post: 03-05-2006, 07:38 PM
  5. Network edition - strange behavior
    By goetzi in forum Installation
    Replies: 6
    Last Post: 11-16-2005, 03:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •