Hi .. Am using rsync to mirror all mailboxes to a backup server. I have configured rsync to run every 1 min. we have around 50 mailboxws for now. Plz advise if ok to run rsync every 1 min. Thanks CoolAtt _________________________________________________________________ Hotmail: Free, trusted and rich email service. https://signup.live.com/signup.aspx?id=60969 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20100204/6eeac009/attachment.html>
On Thu, Feb 4, 2010 at 1:25 AM, CoolAtt NNA <coolatt at live.com> wrote:> Hi .. > > Am using rsync to mirror all mailboxes to a backup server. > I have configured rsync to run every 1 min. we have around 50 mailboxws for > now. > Plz advise if ok to run rsync every 1 min.It depends on the mailbnox size, your hardware, the network, and the other loads on the systems incolved. Does and rsync job even finish in 1 minute on your setup? A better solution is probably to run rsync in an infinite loop with a sleep call in-between runs, so you can be sure that the previous run is finished before starting again. Something like: while [ 1 ] do rsync <with options> sleep 60 done Clearly you would want to have some clean error handling and shut-down logic in this script as well. You can then adjust the sleep time to system load so rsync doesn't impact normal operations. -- RPM
> > Am using rsync to mirror all mailboxes to a backup server. > I have configured rsync to run every 1 min. we have around 50 mailboxws for now.You may want to consider that (depending on the systems) the rsync process may take more than 1 minute to finish. Rayn had a good suggestion regarding a loop. An alternative approach would be to consider the use of a lock file. --------------------------------------------------------------------- This email is protected by LBackup, an open source backup solution. LBackup is licensed under the GNU GPL http://www.lbackup.org