[SOLVED] Zimbra to Zimbra Migration Script

Looking to migrate to ZCS? Ask here. Got a great tip or script that helped you migrate? Post it here.
hinyinlam
Posts: 20
Joined: Fri Sep 12, 2014 11:46 pm

[SOLVED] Zimbra to Zimbra Migration Script

Postby hinyinlam » Fri Oct 17, 2008 2:11 am

if you would like to migrate all account information, why not setup a LDAP slave on the target server and it will replicate all account information.

Then use the script to copy all things


hinyinlam
Posts: 20
Joined: Fri Sep 12, 2014 11:46 pm

[SOLVED] Zimbra to Zimbra Migration Script

Postby hinyinlam » Fri Oct 24, 2008 10:37 am

Fix bug of incorrect permission in /opt/zimbra/store

causing messages unable to delivery
I don't want to release new file, just download version 2.02 and in


=========FROM=============================

sudo -u zimbra /opt/zimbra/bin/zmcontrol stop

ionice -n 7 -c 3 /opt/zimbra/libexec/zmfixperms

sudo -u zimbra /opt/zimbra/bin/zmcontrol start

=========FROM=============================
=========TO=============================

sudo -u zimbra /opt/zimbra/bin/zmcontrol stop

chown -R zimbra:zimbra /opt/zimbra/store

ionice -n 7 -c 3 /opt/zimbra/libexec/zmfixperms

sudo -u zimbra /opt/zimbra/bin/zmcontrol start

=========TO=============================
newmember
Advanced member
Advanced member
Posts: 60
Joined: Fri Sep 12, 2014 10:35 pm

[SOLVED] Zimbra to Zimbra Migration Script

Postby newmember » Tue Jan 06, 2009 10:31 pm

Does this copy the users to the new server?
If it doesn't, how would I transfer the users and passwords to the new server?
I am just migrating zimbra from centos4 to ubuntu8.
Thanks
hinyinlam
Posts: 20
Joined: Fri Sep 12, 2014 11:46 pm

[SOLVED] Zimbra to Zimbra Migration Script

Postby hinyinlam » Wed Jan 07, 2009 4:03 am

The script does not copy users nor their password.

You have to create the users in the target server(their are plenty of scripts available!)
xtasls
Posts: 6
Joined: Sat Sep 13, 2014 12:24 am

[SOLVED] Zimbra to Zimbra Migration Script

Postby xtasls » Tue May 12, 2009 7:07 am

Hello, im trying to backup a Ne Zimbra on a Zimbra Open Source.
I unzip the files

modify target_adress and chmod +x the files

I run the Zimbra2Zimbra.sh and i see this:

bash: ./Zimbra2Zimbra.sh: /bin/bash^M: bad interpreter: No such file or directory
im trying to found my error, any idea?

thx!
phoenix
Ambassador
Ambassador
Posts: 26618
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

[SOLVED] Zimbra to Zimbra Migration Script

Postby phoenix » Tue May 12, 2009 7:20 am

[quote user="xtasls"]Hello, im trying to backup a Ne Zimbra on a Zimbra Open Source.[/QUOTE]You should not do that as the product are different, use the backup facility in NE to backup your accounts etc.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
xtasls
Posts: 6
Joined: Sat Sep 13, 2014 12:24 am

[SOLVED] Zimbra to Zimbra Migration Script

Postby xtasls » Tue May 12, 2009 8:37 am

[quote user="10330phoenix"]You should not do that as the product are different, use the backup facility in NE to backup your accounts etc.[/QUOTE]
I have backups of this zimbra ne, but zimbra open source dont have a restore option.

hinyinlam says that his script can do that.
I try to do the commands one per one in the console and i have no erros until this command:

/usr/bin/ionice -n 7 -c 3 /opt/zimbra/bin/mysql --protocol=socket --socket=/opt/zimbra/db/mysql.sock
The error:

Ignoring given class data for idle class

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/zimbra/db/mysql.sock' (2)
This command is in Target.sh and I run on the open source Zimbra server
thx!
phoenix
Ambassador
Ambassador
Posts: 26618
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

[SOLVED] Zimbra to Zimbra Migration Script

Postby phoenix » Tue May 12, 2009 8:46 am

[quote user="xtasls"]I have backups of this zimbra ne, but zimbra open source dont have a restore option. [/QUOTE]I think I already know the the OSS version has no restore function. ;) What, exactly, are you trying to achieve?
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
xtasls
Posts: 6
Joined: Sat Sep 13, 2014 12:24 am

[SOLVED] Zimbra to Zimbra Migration Script

Postby xtasls » Tue May 12, 2009 11:49 am

I have a working demo of Zimbra NE with a few accounts (20 to 25) the demo was 60 days which was more or less the time needed to evaluate the product and try to implement it with other systems. The operation will extend more than expected and wanted to continue operating with the same accounts. migrating calendars, tasks and emails to the open version. We need to move to the open version, because now do not approve the expenditure of the NE version.
Sorry for my english, my first languaje is spanish.

Thx!
phoenix
Ambassador
Ambassador
Posts: 26618
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

[SOLVED] Zimbra to Zimbra Migration Script

Postby phoenix » Tue May 12, 2009 12:04 pm

All you need to do in that case is to run the Zimbra OSS installer on your NE server and it will 'upgrade' to the OSS version, no need for a migration. Block incoming mail on port 25 and make a backup using NE backup tool and a copy of the /opt/zimbra directory structure (you should shutdown Zimbra for this) before the upgrade. When you've run the upgrade script unblock port 25.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra

Return to “Migration”

Who is online

Users browsing this forum: No registered users and 1 guest