On 11/08/06, <b class="gmail_sendername">Foeh Mannay</b> <<a href="mailto:swlug@wormtail.co.uk">swlug@wormtail.co.uk</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Jonathan Wright wrote:<br>> You could try something like:<br>><br>> find ~/Maildir -type f -mmin -60 > /tmp/$(date +%Y%m%d%H)<br>> rsync --archive --files-from=/tmp/$(date +%Y%m%d%H) from:/path to:/path<br>
><br>> (-mmin means include only those that have been modified within the<br>> last 60 minutes)<br>><br>Hi,<br><br>I thought about doing that, and only synching if the files were younger<br>than an hour, but:<br>
<br>a) It won't remove mails from one server when they are deleted on the other<br><br>and<br><br>b) If a synch gets missed due to prolonged outage, the files that would<br>have been synched up get ignored in the later passes.
<br><br>Cheers,<br><br>Foeh<br></blockquote></div><br>You could try something like unison instead of rsync. It uses rsync under the hood IIRC, but it will cope with things like deleting in one place, etc.<br><br>I'm not sure if it can be run from a cron job, since when I used it last it needed console input, but I vaguely recall command-line options to supply answers to these questions.
<br><br>HTH<br><br>Cheers,<br>Neil.<br>