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-28-2011, 06:41 PM
Active Member
 
Posts: 29
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
Reply With Quote
  #2 (permalink)  
Old 06-28-2011, 10:18 PM
Special Member
 
Posts: 149
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
Reply With Quote
  #3 (permalink)  
Old 06-29-2011, 02:40 AM
Active Member
 
Posts: 29
Default

thanks for you information.
im using release 7.0.1 FOSS edition
Reply With Quote
  #4 (permalink)  
Old 06-29-2011, 02:44 PM
Active Member
 
Posts: 38
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
Reply With Quote
  #5 (permalink)  
Old 06-29-2011, 08:14 PM
Active Member
 
Posts: 29
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
Reply With Quote
  #6 (permalink)  
Old 06-30-2011, 12:47 AM
Trained Alumni
 
Posts: 160
Default

Hi,

maybe you can take a look at this one:

ZeXtras Backup for Zimbra Open

Regards
Reply With Quote
  #7 (permalink)  
Old 06-30-2011, 07:02 PM
Active Member
 
Posts: 29
Default

Hi gvillari,

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

thanks
Reply With Quote
  #8 (permalink)  
Old 07-14-2011, 05:42 AM
nyu nyu is offline
Member
 
Posts: 12
Default

Hi all,

Any solution for zimbra zcs 7.1.1??

I looking for...

Thanks
Reply With Quote
  #9 (permalink)  
Old 09-20-2011, 12:06 PM
Starter Member
 
Posts: 1
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
Reply With Quote
  #10 (permalink)  
Old 09-20-2011, 01:56 PM
Advanced Member
 
Posts: 213
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.
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.