Results 1 to 10 of 10

Thread: zcs 7 per user backup and restore scripts

  1. #1
    bhangki is offline Active Member
    Join Date
    Mar 2011
    Location
    Philippines
    Posts
    39
    Rep Power
    4

    Question zcs 7 per user backup and restore scripts

    hi zimbra users,

    good day to all. is there a per user back-up and restore script for zcs 7?
    my apology if theres a post similar to this.
    if theres, kindly point me to the thread.


    thanks

  2. #2
    dipeshmehta is offline Special Member
    Join Date
    Jun 2010
    Location
    Rajkot, India
    Posts
    159
    Rep Power
    4

    Default

    First of all you please update your forum profile with details on which version/edition of ZCS you have been using.

    For your query, search wiki and forums, you shall find a lot stuffs. If you are on ZCS FOSS, you may check this too: Per User Backup for FOSS edition

    Dipesh

  3. #3
    bhangki is offline Active Member
    Join Date
    Mar 2011
    Location
    Philippines
    Posts
    39
    Rep Power
    4

    Default

    thanks for you information.
    im using release 7.0.1 FOSS edition

  4. #4
    Yves Pires is offline Active Member
    Join Date
    Jun 2011
    Posts
    48
    Rep Power
    3

    Default

    Backup:

    sudo -u zimbra /opt/zimbra/bin/zmmailbox -z -m user@domain.com getRestURL "//?fmt=tgz" > /root/bkpzimbra/mbox/user@domain.com.tgz

    Restore:

    sudo -u zimbra /opt/zimbra/bin/zmmailbox -z -m user@domain.com postRestURL "//?fmt=tgz&resolve=modify" /root/bkpzimbra/mbox/user@domain.com.tgz

  5. #5
    bhangki is offline Active Member
    Join Date
    Mar 2011
    Location
    Philippines
    Posts
    39
    Rep Power
    4

    Default

    hi yves,

    thanks a lot for your help and information.
    notice that the command doesn't restore the calendar.
    Is there a way to include to backup and restore a calendar?
    How about script to backup and restore all users?

    thanks again

  6. #6
    gvillari is offline Trained Alumni
    Join Date
    Apr 2010
    Location
    Italy
    Posts
    160
    Rep Power
    5

    Default

    Hi,

    maybe you can take a look at this one:

    ZeXtras Backup for Zimbra Open

    Regards

  7. #7
    bhangki is offline Active Member
    Join Date
    Mar 2011
    Location
    Philippines
    Posts
    39
    Rep Power
    4

    Default

    Hi gvillari,

    thanks for your suggestion but the Zextras require a license .
    Any more suggestion ?

    thanks

  8. #8
    nyu
    nyu is offline Member
    Join Date
    Oct 2010
    Posts
    14
    Rep Power
    4

    Default

    Hi all,

    Any solution for zimbra zcs 7.1.1??

    I looking for...

    Thanks

  9. #9
    j1pereira is offline Starter Member
    Join Date
    Jun 2011
    Posts
    1
    Rep Power
    3

    Default

    Here is a script I wrote to backup all mailboxes and scp to remove server will need to be run as zimbra user and you will need to setup id_rsa.pub keys on remove machine for password-less scp transfer

    #!/bin/bash
    #################################
    # Zimbra Mailbox Backup #
    # By: Jason Pereira #
    # Date: 9-20-2011 #
    #################################
    rm -rf /tmp/boxbackup/*
    zmaccts | grep "@" | awk '{print $1}' > /tmp/user.txt
    user=( `cat "/tmp/user.txt" ` )
    date=`date -I`
    for i in "${user[@]}"
    do
    eval "zmmailbox -z -m $i getRestURL "//?fmt=tgz" > /tmp/boxbackup/$date.$i.tgz"
    wait
    done
    scp /tmp/boxbackup/* 192.168.2.200:/home/zimbra

  10. #10
    LaFong is offline Advanced Member
    Join Date
    Nov 2008
    Location
    Denver, CO
    Posts
    221
    Rep Power
    6

    Default

    If you want to back up both your /opt/zimbra directory _and_ have per-user backups, without duplicating data store backup in each, you can use [SOLVED] Yet Another Backup Script for Community Version. This script uses the script at the start of that thread to rsync /opt/zimbra, then creates LDAP and MySQL dumps for individual users.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Per User Backup for FOSS edition
    By fdsadmin in forum Developers
    Replies: 33
    Last Post: 03-14-2013, 09:16 AM
  2. Backup and restore mail filters on a new ZCS
    By desport in forum Administrators
    Replies: 0
    Last Post: 02-03-2011, 08:35 AM
  3. Replies: 6
    Last Post: 03-28-2008, 11:51 AM
  4. Restore single account failed from full backup
    By fmodola in forum Administrators
    Replies: 4
    Last Post: 06-20-2007, 05:27 AM
  5. User Accounts Backup & Restore
    By chanck in forum Administrators
    Replies: 1
    Last Post: 03-12-2006, 10:27 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
  •