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.

View Poll Results: Is the script of any use to you ?
Yes, just what i needed thanks ! 6 100.00%
Sort-of, but I had to edit it a bit. 0 0%
Not really, but it inspired me to write my own ! 0 0%
Nope. 0 0%
Voters: 6. You may not vote on this poll

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-10-2007, 06:30 AM
Project Contributor
 
Posts: 182
Lightbulb Complete Migration Script

Hello,

I happily run Zimbra OpenSource Edition on a server in a remote data centre.

I have been running a backup email server at home where I sync all domains, accounts and emails.

As many others can relate I am sure, I frequently reinstall and mess about with different distros at home - on various machines.

Everytime I install a new linux distro I go through the procedure of downloading and installing the latest Zimbra version - then creating all the domains - then creating all the users - then installing imapsync - then syncing all users emails.

To save myself some time I wrote a script that will read in domains, user accounts and their passwords - and create the lot on-the-fly.

N.B. - you must have a working copy of zimbra and imapsync running and of course access to your remote source Zimbra server.

The files must stay in the same folder, but of course you are more than welcome to edit or do whatever you like with them.

Cheers and have fun

Costa
Attached Files
File Type: tgz zimbra_scripts.tgz (401 Bytes, 118 views)
__________________
------------------------------
http://www.lcrm.co.uk

Last edited by Costa-101; 07-16-2007 at 12:13 PM..
Reply With Quote
  #2 (permalink)  
Old 07-10-2007, 06:57 AM
Project Contributor
 
Posts: 182
Lightbulb Imapsync Crontab Script to compliment.

Hello again,

Once my backup server was complete - I needed to backup my users emails on a regular basis.

For that I wrote a script that I wanted to run as a cron job.

The outcome was a script that users the already completed list of users and their passwords.

The imapsync_crontab script requires editing, simply replace:

Code:
zimbra.server.com
with your source zimbra server
and
Code:
backup.server.com
with your backup zimbra server

Ensure this file is in the same directory as your imap_users file.

The Cron Job

The cron job is fairly straight forward, assuming the files from the previous posting and this file are all residing in /opt/zimbra_scripts, the following should set it up nicely:

Code:
crontab -e
(probably best as root)

this brings up your editor to insert the cron job

Code:
0 * * * * /opt/zimbra_scripts/imapsync_crontab
this tells the system to run the imapsync_crontab script on the hour, every hour.

Of course, I am open for suggestions to improve this as you are to amend it yourself.

Cheers and have fun

Costa
Attached Files
File Type: tgz imapsync_crontab.tgz (444 Bytes, 64 views)
__________________
------------------------------
http://www.lcrm.co.uk

Last edited by Costa-101; 07-16-2007 at 12:45 PM..
Reply With Quote
  #3 (permalink)  
Old 07-16-2007, 11:02 AM
Special Member
 
Posts: 104
Default Reattach scripts

Can you please reattach the scripts or else put them on the wiki? (Maybe we need to have a section on useful scripts)
It is only showing up as 401 bytes and nothing is in the .tgz file.
Thanks
Reply With Quote
  #4 (permalink)  
Old 07-16-2007, 12:17 PM
Former Zimbran
 
Posts: 5,606
Default

Try it now.

Great job Costa!
Reply With Quote
  #5 (permalink)  
Old 07-16-2007, 12:47 PM
Project Contributor
 
Posts: 182
Lightbulb All fixed

Hello,

I have re-uploaded the files, however i think it may be an issue with the file permissions on the website forum directory.

I have informed jholder who will no-doubt rectify this issue soon.

Please feel free to contact me directly if you need me to send them directly to you, or you have any questions - always happy to get involved with Zimbra setups.

Have fun !!

Big thanks to Zimbra once again for a great product, can't wait for version 5 in the autumn.

Costa

__________________
------------------------------
http://www.lcrm.co.uk

Last edited by Costa-101; 07-16-2007 at 01:21 PM..
Reply With Quote
  #6 (permalink)  
Old 07-16-2007, 01:28 PM
Special Member
 
Posts: 104
Default Post on wiki

Can you create a wiki entry for them? That way we can start many different scripts for people to use.
Reply With Quote
  #7 (permalink)  
Old 07-16-2007, 01:33 PM
Project Contributor
 
Posts: 182
Question Wiki Section

Ok I will go and see what I can do.

Costa
__________________
------------------------------
http://www.lcrm.co.uk
Reply With Quote
  #8 (permalink)  
Old 07-16-2007, 06:32 PM
Project Contributor
 
Posts: 182
Arrow Wiki Entry Now Active

I have created a Wiki entry to assist in implementing the scripts previously posted.

There is a lot more detail, explanation and examples on the Wiki page:

Link to Wiki page

Hope it helps and enjoy!!

__________________
------------------------------
http://www.lcrm.co.uk
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.