1 Attachment(s)
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
1 Attachment(s)
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:
with your source zimbra server
and
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:
(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