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
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
this tells the system to run the imapsync_crontab script on the hour, every hour.
0 * * * * /opt/zimbra_scripts/imapsync_crontab
Of course, I am open for suggestions to improve this as you are to amend it yourself.
Cheers and have fun