Results 1 to 3 of 3

Thread: Backup/Restore Calendar & Address books for a single user from CLI

Hybrid View

  1. #1
    Join Date
    Apr 2011
    Posts
    28
    Rep Power
    4

    Default Backup/Restore Calendar & Address books for a single user from CLI

    I know I can backup a full account (mail + address books + Calendar) for a single user using:
    /opt/zimbra/bin/zmmailbox -z -m user@domain.com getRestURL “//?fmt=tgz” > /tmp/account.tgz

    and restore it with:
    /opt/zimbra/bin/zmmailbox -z -m user@domain.com postRestURL “//?fmt=tgz&resolve=skip” /tmp/account.tgz

    Which would be the correct lines for calendar or address backups/restores?

    thanks!

  2. #2
    Join Date
    Dec 2009
    Location
    Michigan
    Posts
    454
    Rep Power
    6

    Default

    I'm not aware of any.

    I've always just logged into the user's account and used the Web Portal's 'Import/Export' option to backup just conacts and calendar.

    Doug
    Ben Franklin quote:

    "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."

  3. #3
    Join Date
    Jun 2011
    Location
    Caracas Venezuela
    Posts
    476
    Rep Power
    4

    Default

    Quote Originally Posted by jorge_s View Post
    I know I can backup a full account (mail + address books + Calendar) for a single user using:
    /opt/zimbra/bin/zmmailbox -z -m user@domain.com getRestURL “//?fmt=tgz” > /tmp/account.tgz

    and restore it with:
    /opt/zimbra/bin/zmmailbox -z -m user@domain.com postRestURL “//?fmt=tgz&resolve=skip” /tmp/account.tgz

    Which would be the correct lines for calendar or address backups/restores?

    thanks!

    Hi, you have to specify folder.

    For export Calendar:
    Code:
    /opt/zimbra/bin/zmmailbox -z -m user@domain.com getRestURL "/Calendar/?fmt=tgz" > /tmp/account-calendar.tgz
    For Contacts:
    Code:
    /opt/zimbra/bin/zmmailbox -z -m user@domain.com getRestURL "/Contacts/?fmt=tgz" > /tmp/account-contacts.tgz
    To restore:
    Code:
    /opt/zimbra/bin/zmmailbox -z -m user@domain.com postRestURL "/?fmt=tgz&resolve=skip" /tmp/account-calendar.tgz
    You can use the same restore command for contacts just change the file.

    ccelis

Similar Threads

  1. backup/restore a single domain
    By juanpablo in forum Administrators
    Replies: 4
    Last Post: 12-20-2012, 01:44 PM
  2. Zimbra Backup/Restore- Single Mailbox
    By nmsalert10 in forum Administrators
    Replies: 1
    Last Post: 12-21-2011, 01:04 AM
  3. [SOLVED] Restore single account from backup
    By batfastad in forum Administrators
    Replies: 4
    Last Post: 08-18-2010, 11:08 AM
  4. User address books storage?
    By butzkies in forum Users
    Replies: 0
    Last Post: 01-17-2010, 04:58 AM
  5. Single mail backup & restore
    By giorg in forum Administrators
    Replies: 1
    Last Post: 10-13-2009, 10:15 AM

Tags for this Thread

Posting Permissions

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