Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Migration

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
  #191 (permalink)  
Old 06-03-2009, 08:22 AM
Member
 
Posts: 10
Default Erro restore with restore.sh

I installed two servers
virtual.dominio.local 192.168.100.231
I ran backup.sh and copy all


When I try to run restore.sh in
virtual.dominio.local 192.168.100.231

[zimbra@virtual tmp]$ ./restore.sh marcos reset
Start to restore => *** Mai 29 11:55:50 BRT 2009
Check account [marcos] ==> NO, [marcos] not exist
[zimbra@virtual tmp]$

What is the problem ???
Reply With Quote
  #192 (permalink)  
Old 06-03-2009, 08:49 PM
Elite Member
 
Posts: 296
Default

actually, I'm not sure if i understand your question.

but i guess you don't have "macros" account in second machine. these backup scripts don't handle the account creation if it's not existing.

therefour, you can create the account manually , or add "zmprov ca xxxx@domain pass1111" in my restore.sh script when account is not there.
Reply With Quote
  #193 (permalink)  
Old 06-04-2009, 05:56 AM
Member
 
Posts: 10
Default Problems with restore.sh

Yes, I created, but don't work.
Would be the unique account id ?
For example:
marcos in server 1 don`t is the same marcos in server 2. Because it have different id`s ( like active directory for example).
Reply With Quote
  #194 (permalink)  
Old 06-04-2009, 07:09 PM
Elite Member
 
Posts: 296
Default

did these two server with same domain name?

if you read my script and you will find actually i'm just checking whether system has this account or not by : zmprov ga <account@domain> . so if you are backup in A.domain and restore to B.domain, that will not work.
Reply With Quote
  #195 (permalink)  
Old 06-04-2009, 08:30 PM
Member
 
Posts: 10
Question Problems with restore.sh

Yes, Of course.
The same domain, same user name and I saw your script.

I will try again.

I can to restore in same server, but I can`t in second server.

Thanks a lot.
Reply With Quote
  #196 (permalink)  
Old 06-04-2009, 10:12 PM
Intermediate Member
 
Posts: 19
Default

I've not read through each of the posts, but I found the easiest way to backup the opensource version of Zimbra is:
1) Shutting it down for a minute.
2) Doing a snapshot of the LVM partition.
3) Starting Zimbra again.
4) rsynching that snapshot I made to the backup server.
5) deleting LVM snapshot once completed.

This pretty much means if I need restore from backup, all I need to do is rsync it back, no reimporting of data to MySQL/ldap etc.

A minute of downtime at 3AM isn't really going to effect anyone here. If you're running a mission critical setup that needs to be up 24/7, non-stop. One wonders why you aren't running a grid setup (or using the commerical versions) that would easilly allow you to turn one server off for a 'clean' back up without interupting the service since the other servers are still online.
Reply With Quote
  #197 (permalink)  
Old 06-09-2009, 01:37 PM
Member
 
Posts: 10
Default Question

What mean ?

Doing a snapshot of the LVM partition.


????????????????????????????????
Reply With Quote
  #198 (permalink)  
Old 06-09-2009, 03:08 PM
Intermediate Member
 
Posts: 19
Default

Quote:
Originally Posted by marcos.gw View Post
What mean ?

Doing a snapshot of the LVM partition.


????????????????????????????????
Means something like

lvcreate -L592M -s -n dbbackup /dev/ops/databases
mkdir /mnt/ops/dbbackup
mount /dev/ops/dbbackup /mnt/ops/dbbackup
rsync username@host /mnt/ops/dbbackup --delete -a
Reply With Quote
  #199 (permalink)  
Old 07-15-2009, 05:20 AM
New Member
 
Posts: 3
Default

Hi all,

I don't manage to use the backup.sh script to backup one account (the script to backup ALL accounts is working perfectly).

I have entered my domain name in the backup.sh script (ie i have replaced the domain="@my.domain" with my real domain name) but when i launch "backup.sh admin@domain.com" i receive the "cat: admin@domain.com: No such file or directory" message.
Any clue ?
Thanks a lot
Guillaume
Reply With Quote
  #200 (permalink)  
Old 07-16-2009, 12:37 AM
Elite Member
 
Posts: 296
Default

guillaume142,
backup.sh is going to read accounts from one file, thus backup.sh needs filename as parameter (not the account name).

fyi.
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.