View Poll Results: Is the script of any use to you ?

Voters
6. You may not vote on this poll
  • 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%
Results 1 to 8 of 8

Thread: Complete Migration Script

  1. #1
    Join Date
    Sep 2006
    Location
    Space station 101
    Posts
    182
    Rep Power
    9

    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 Attached Files
    Last edited by Costa-101; 07-16-2007 at 11:13 AM.
    ------------------------------
    http://www.lcrm.co.uk

  2. #2
    Join Date
    Sep 2006
    Location
    Space station 101
    Posts
    182
    Rep Power
    9

    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 Attached Files
    Last edited by Costa-101; 07-16-2007 at 11:45 AM.
    ------------------------------
    http://www.lcrm.co.uk

  3. #3
    Join Date
    Feb 2006
    Location
    middle of a corn field, IL
    Posts
    111
    Rep Power
    9

    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

  4. #4
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    Try it now.

    Great job Costa!

  5. #5
    Join Date
    Sep 2006
    Location
    Space station 101
    Posts
    182
    Rep Power
    9

    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

    Last edited by Costa-101; 07-16-2007 at 12:21 PM.
    ------------------------------
    http://www.lcrm.co.uk

  6. #6
    Join Date
    Feb 2006
    Location
    middle of a corn field, IL
    Posts
    111
    Rep Power
    9

    Default Post on wiki

    Can you create a wiki entry for them? That way we can start many different scripts for people to use.

  7. #7
    Join Date
    Sep 2006
    Location
    Space station 101
    Posts
    182
    Rep Power
    9

    Question Wiki Section

    Ok I will go and see what I can do.

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

  8. #8
    Join Date
    Sep 2006
    Location
    Space station 101
    Posts
    182
    Rep Power
    9

    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

Similar Threads

  1. Replies: 210
    Last Post: 01-17-2012, 12:19 AM
  2. mail migration usermail size
    By kmuralidharan in forum Migration
    Replies: 0
    Last Post: 07-10-2007, 08:16 AM
  3. Complete Guide for migration
    By misztick in forum Migration
    Replies: 1
    Last Post: 06-11-2007, 11:10 PM
  4. My migration from GroupWise - any suggestions?
    By stuartg.orion in forum Migration
    Replies: 3
    Last Post: 06-11-2007, 05:34 PM
  5. Warning: Unresponsive script
    By yetdog in forum Administrators
    Replies: 5
    Last Post: 04-03-2006, 12:15 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
  •