[prev in list] [next in list] [prev in thread] [next in thread] 

List:       unison-users
Subject:    RE: [unison-users] Re: Master-Master Replication - Deletion of Files
From:       Scott Bohler <sbohler () springsted ! com>
Date:       2008-06-02 14:54:45
Message-ID: 8CFA2FBEF17F4F46AF1E10D2A5578C88022631074B () exchange07 ! Springsted ! local
[Download RAW message or body]

Hi Brian,

Regarding cron jobs:  Check the -repeat switch in the Unison manual.  Uniso=
n can do this for you without additional scripting/cron jobs.

Scott



________________________________
From: unison-users@yahoogroups.com [mailto:unison-users@yahoogroups.com] On=
 Behalf Of Brian
Sent: Monday, June 02, 2008 9:43 AM
To: unison-users@yahoogroups.com
Subject: [unison-users] Re: Master-Master Replication - Deletion of Files


Thank you, Alan.

I did some testing with Unison on one system shortly after putting in
this e-mail, and it does indeed remember and can tell when files were
deleted or created. I just made a root location on the same server,
synced it with an e-mail folder, and then I created a new e-mail.
Unison synced the new e-mail to the other root folder. I then went to
the replicated root folder, and deleted the e-mail there. Ran Unison
and it then deleted the e-mail in the actual e-mail folder and
disappeared.

I guess it would have helped if I did some testing first. Unison
definitely is a solution to a master-master replication for servers.
Although it is not real-time, real-time isn't needed with e-mail and
web site updates. I plan to set this up on a cron job that runs every
five minutes.

Then, for PHP session data, I will have a cron job that runs every
minute - but loop it inside that script to run every 10 seconds.
Session data is mission-critical when it comes to logging into
websites - especially if a user pulls the next page from the other
server. If the session file doesn't exist there, then the session
will look to have 'timed out'.

Brian S.

--- In unison-users@yahoogroups.com<mailto:unison-users%40yahoogroups.com>,=
 Alan Schmitt <alan.schmitt@...>
wrote:
>
> On 1 juin 08, at 19:49, Brian wrote:
>
> > So since Unison is two-way, would it see that the file was deleted
> > from Server B and then delete it from Server A? Or would it do the
> > same as rsync and copy the deleted e-mail back from Server A to
> > Server B? I know there is something called preference, but I can't
> > exactly set that to delete or write either; because if the e-mail
> > comes in on one server, it would be immediately deleted upon the
> > next Unison job and not replicated if I understand correctly.
>
> Unison would deleted the email from Server A. It works by remembering
> the state of things at last synchronization, and is thus able to
> detect changes in the file content, creation of files, or deletion of
> files, and propagate them.
>
> Hope this helps,
>
> Alan
>




[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" \
"http://www.w3.org/TR/html4/strict.dtd"> <html>
<head>
</head>




<body style="background-color: #ffffff;">

<!--~-|**|PrettyHtmlStartT|**|-~-->
<div id="ygrp-mlmsg" style="width:655px; position:relative;">
<div id="ygrp-msg" style="width: 470px; margin:0; padding:0 25px 0 0; float:left; \
z-index:1;"> <!--~-|**|PrettyHtmlEndT|**|-~-->

    <div id="ygrp-text">
            <p><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" \
"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">


<DIV dir="ltr" align="left"><SPAN class="707335314-02062008"><FONT face="Arial \
Narrow" color="#0000ff">Hi Brian,</FONT></SPAN></DIV> <DIV dir="ltr" \
align="left"><SPAN class="707335314-02062008"><FONT face="Arial Narrow" \
color="#0000ff"></FONT></SPAN>&nbsp;</DIV> <DIV dir="ltr" align="left"><SPAN \
class="707335314-02062008"><FONT face="Arial Narrow" \
color="#0000ff">Regarding&nbsp;cron jobs:&nbsp; Check the -repeat switch in the  \
Unison manual.&nbsp; Unison can do this for you without additional  scripting/cron \
jobs.</FONT></SPAN></DIV> <DIV dir="ltr" align="left"><SPAN \
class="707335314-02062008"><FONT face="Arial Narrow" \
color="#0000ff"></FONT></SPAN>&nbsp;</DIV> <DIV dir="ltr" align="left"><SPAN \
class="707335314-02062008"><FONT face="Arial Narrow" \
color="#0000ff">Scott</FONT></SPAN></DIV> <DIV><SPAN \
class="707335314-02062008"></SPAN><FONT face="Arial Narrow" \
color="#0000ff"></FONT>&nbsp;</DIV> <DIV><FONT face="Arial Narrow" \
color="#0000ff"></FONT>&nbsp;</DIV> <DIV dir="ltr" align="left"><BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: #0000ff 2px solid;">
  <DIV class="OutlookMessageHeader" lang="en-us" dir="ltr" align="left">
  <HR tabIndex="-1">
  <FONT face="Tahoma" size="2"><B>From:</B> unison-users@<wbr>yahoogroups.<wbr>com 
  [mailto:unison-<wbr>users@yahoogroup<wbr>s.com] <B>On Behalf Of 
  </B>Brian<BR><B>Sent:</B> Monday, June 02, 2008 9:43 AM<BR><B>To:</B> 
  unison-users@<wbr>yahoogroups.<wbr>com<BR><B>Subject:</B> [unison-users] Re: 
  Master-Master Replication - Deletion of Files<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV id="ygrp-text">
  <P>Thank you, Alan.<BR><BR>I did some testing with Unison on one system 
  shortly after putting in<BR>this e-mail, and it does indeed remember and can 
  tell when files were<BR>deleted or created. I just made a root location on the 
  same server,<BR>synced it with an e-mail folder, and then I created a new 
  e-mail. <BR>Unison synced the new e-mail to the other root folder. I then went 
  to<BR>the replicated root folder, and deleted the e-mail there. Ran 
  Unison<BR>and it then deleted the e-mail in the actual e-mail folder 
  and<BR>disappeared.<BR><BR>I guess it would have helped if I did some testing 
  first. Unison<BR>definitely is a solution to a master-master replication for 
  servers. <BR>Although it is not real-time, real-time isn't needed with e-mail 
  and<BR>web site updates. I plan to set this up on a cron job that runs 
  every<BR>five minutes.<BR><BR>Then, for PHP session data, I will have a cron 
  job that runs every<BR>minute - but loop it inside that script to run every 10 
  seconds. <BR>Session data is mission-critical when it comes to logging 
  into<BR>websites - especially if a user pulls the next page from the 
  other<BR>server. If the session file doesn't exist there, then the 
  session<BR>will look to have 'timed out'.<BR><BR>Brian S.<BR><BR>--- In <A \
href="mailto:unison-users%40yahoogroups.com">unison-users@<WBR>yahoogroups.<WBR>com</A>, \
  Alan Schmitt &lt;alan.schmitt@<WBR>...&gt;<BR>wrote:<BR>&gt;<BR>&gt; On 1 juin 
  08, at 19:49, Brian wrote:<BR>&gt; <BR>&gt; &gt; So since Unison is two-way, 
  would it see that the file was deleted<BR>&gt; &gt; from Server B and then 
  delete it from Server A? Or would it do the<BR>&gt; &gt; same as rsync and 
  copy the deleted e-mail back from Server A to<BR>&gt; &gt; Server B? I know 
  there is something called preference, but I can't<BR>&gt; &gt; exactly set 
  that to delete or write either; because if the e-mail<BR>&gt; &gt; comes in on 
  one server, it would be immediately deleted upon the <BR>&gt; &gt; next Unison 
  job and not replicated if I understand correctly.<BR>&gt; <BR>&gt; Unison 
  would deleted the email from Server A. It works by remembering <BR>&gt; the 
  state of things at last synchronization, and is thus able to <BR>&gt; detect 
  changes in the file content, creation of files, or deletion of <BR>&gt; files, 
  and propagate them.<BR>&gt; <BR>&gt; Hope this helps,<BR>&gt; <BR>&gt; 
  Alan<BR>&gt;<BR><BR></P></DIV><!--End group email --></BLOCKQUOTE>
</p>
    </div>  

    <!--~-|**|PrettyHtmlStart|**|-~-->
    <span width="1" style="color: white;">__._,_.___</span>
    <!-- Start the section with Message In topic -->
    <div id="ygrp-actbar">
              <span class="left">
          <a href="http://groups.yahoo.com/group/unison-users/message/7292;_ylc=X3oDMT \
MzZXZ1YXB1BF9TAzk3MzU5NzE0BGdycElkAzQ3OTc2NwRncnBzcElkAzE3MDUwMDQ3MjYEbXNnSWQDNzI5OARzZWMDZnRyBHNsawN2dHBjBHN0aW1lAzEyMTI0MTkxNjAEdHBjSWQDNzI5Mg--">
                
            Messages in this topic          </a> (<span class="bld">4</span>)
        </span>
        <a href="http://groups.yahoo.com/group/unison-users/post;_ylc=X3oDMTJvMmFlMjFy \
BF9TAzk3MzU5NzE0BGdycElkAzQ3OTc2NwRncnBzcElkAzE3MDUwMDQ3MjYEbXNnSWQDNzI5OARzZWMDZnRyBHNsawNycGx5BHN0aW1lAzEyMTI0MTkxNjA-?act=reply&messageNum=7298">
  <span class="bld">
            Reply          </span> (via web post)
        </a>  | 
        <a href="http://groups.yahoo.com/group/unison-users/post;_ylc=X3oDMTJkMDVxOGE4 \
BF9TAzk3MzU5NzE0BGdycElkAzQ3OTc2NwRncnBzcElkAzE3MDUwMDQ3MjYEc2VjA2Z0cgRzbGsDbnRwYwRzdGltZQMxMjEyNDE5MTYw" \
class="bld">  Start a new topic        </a>
          </div> 
    <!-------     Start Nav Bar  ------>
    <!-- |**|begin egp html banner|**| -->
    <div id="ygrp-vitnav">
                <a href="http://groups.yahoo.com/group/unison-users/messages;_ylc=X3oD \
MTJkam5jZjNrBF9TAzk3MzU5NzE0BGdycElkAzQ3OTc2NwRncnBzcElkAzE3MDUwMDQ3MjYEc2VjA2Z0cgRzbGsDbXNncwRzdGltZQMxMjEyNDE5MTYw">Messages</a> \
  
        
        
            |    <a href="http://groups.yahoo.com/group/unison-users/database;_ylc=X3o \
DMTJicXF1ZDdxBF9TAzk3MzU5NzE0BGdycElkAzQ3OTc2NwRncnBzcElkAzE3MDUwMDQ3MjYEc2VjA2Z0cgRzbGsDZGIEc3RpbWUDMTIxMjQxOTE2MA--">Database</a> \
  
        
        
    </div>  
    <!-- |**|end egp html banner|**| -->

                
                  <div id="ygrp-mkp">
      <div id="hd">MARKETPLACE</div>
      <div id="ads">
                  <div class="ad">
            <a href="http://us.ard.yahoo.com/SIG=13resus5c/M=624381.12730922.13032918. \
10835568/D=groups/S=1705004726:MKP1/Y=YAHOO/EXP=1212426360/L=/B=8VXuAkJe5tU-/J=1212419 \
160410086/A=5368226/R=0/SIG=14erof5si/*http://media.adrevolver.com/adrevolver/href?ban \
ner=189161&place=26143&url_=http://tc.deals.yahoo.com/tc/blockbuster/display.com?cid=bbi00028">You \
rock! Blockbuster wants to give you a complimentary trial of Blockbuster Total \
Access.</a>          </div>  </div>
    </div>
      
    <!-- yahoo logo -->
    <!-- |**|begin egp html banner|**| -->
    <div id="ygrp-ft">
      <a href="http://groups.yahoo.com/;_ylc=X3oDMTJjM2xrN2RzBF9TAzk3NDc2NTkwBGdycElkA \
                zQ3OTc2NwRncnBzcElkAzE3MDUwMDQ3MjYEc2VjA2Z0cgRzbGsDZ2ZwBHN0aW1lAzEyMTI0MTkxNjA-">
                
      <img src="http://us.i1.yimg.com/us.yimg.com/i/yg/img/logo/ma_grp_160.gif" \
height="15" width="106" border="0" alt="Yahoo! Groups"></a> <br>  <a \
href="http://groups.yahoo.com/group/unison-users/join;_ylc=X3oDMTJlcnYwczlpBF9TAzk3NDc \
2NTkwBGdycElkAzQ3OTc2NwRncnBzcElkAzE3MDUwMDQ3MjYEc2VjA2Z0cgRzbGsDc3RuZ3MEc3RpbWUDMTIxMjQxOTE2MA--">Change \
settings via the Web</a> (Yahoo! ID required) <br>  Change settings via email: <a \
href="mailto:unison-users-digest@yahoogroups.com?subject=Email Delivery: \
Digest">Switch delivery to Daily Digest</a> | <a href = \
"mailto:unison-users-traditional@yahoogroups.com?subject=Change Delivery Format: \
Traditional">Switch format to Traditional</a> <br>

      <a href="http://groups.yahoo.com/group/unison-users;_ylc=X3oDMTJjaWpwNzZqBF9TAzk \
3NDc2NTkwBGdycElkAzQ3OTc2NwRncnBzcElkAzE3MDUwMDQ3MjYEc2VjA2Z0cgRzbGsDaHBmBHN0aW1lAzEyMTI0MTkxNjA-">
  Visit Your Group 
      </a> |
      <a href="http://docs.yahoo.com/info/terms/">
        Yahoo! Groups Terms of Use      </a> |
      <a href="mailto:unison-users-unsubscribe@yahoogroups.com?subject=">
        Unsubscribe      </a> 
    </div>     <!-- |**|end egp html banner|**| -->
  </div> <!-- ygrp-msg -->

  
  <!-- Sponsor -->
  <!-- |**|begin egp html banner|**| -->
  <div id="ygrp-sponsor" style="width:160px; float:right; clear:none; margin:0 0 25px \
0; background:white;">  <!-- Network content -->
    
<!-- Start Recommendations -->
<div id="ygrp-reco">
     </div>
<!-- End Recommendations -->

	    <!-- Start vitality -->
	    <div id="ygrp-vital">
	      		<div id="vithd">Recent Activity</div>
		<ul style="list-style-type:none; padding: 0; margin: 2px 0;">
		        <li style="clear: both;">
      <div class="ct" style="float: right;"><span \
style="display:none">&nbsp;</span>9</div>  <div class="cat"><a \
href="http://groups.yahoo.com/group/unison-users/members;_ylc=X3oDMTJlNzBnbG9qBF9TAzk3 \
MzU5NzE0BGdycElkAzQ3OTc2NwRncnBzcElkAzE3MDUwMDQ3MjYEc2VjA3Z0bARzbGsDdm1icnMEc3RpbWUDMTIxMjQxOTE2MA--">New \
Members</a></div>  </li>
  
		    
		    
		    
		    
		    
		</ul>
	      	      <a href="http://groups.yahoo.com/group/unison-users;_ylc=X3oDMTJkZDFtbzJ \
qBF9TAzk3MzU5NzE0BGdycElkAzQ3OTc2NwRncnBzcElkAzE3MDUwMDQ3MjYEc2VjA3Z0bARzbGsDdmdocARzdGltZQMxMjEyNDE5MTYw">
  Visit Your Group	      </a>
	    </div> 
	    	    	      
	    <!-- Network content -->
	    	          <div id="nc">
              <div class="ad">
                      <div id="hd1">Yahoo! Finance</div> 
<p><a href="http://us.ard.yahoo.com/SIG=13oht21gr/M=493064.12016257.12445664.8674578/D \
=groups/S=1705004726:NC/Y=YAHOO/EXP=1212426360/L=/B=8lXuAkJe5tU-/J=1212419160410086/A= \
4507179/R=0/SIG=12de4rskk/*http://us.rd.yahoo.com/evt=50284/*http://finance.yahoo.com/personal-finance">It's \
Now Personal</a></p>  <p>Guides, news,</p> 
<p>advice & more.</p>                   </div>
                    <div class="ad">
                      <div id="hd1">Need traffic?</div> 
<p><a href="http://us.ard.yahoo.com/SIG=13okcku3q/M=493064.12016308.12445700.8674578/D \
=groups/S=1705004726:NC/Y=YAHOO/EXP=1212426360/L=/B=81XuAkJe5tU-/J=1212419160410086/A= \
3848644/R=0/SIG=131l83flq/*http://searchmarketing.yahoo.com/arp/srchv2.php?o=US2006&cmp=Yahoo&ctv=Groups5&s=Y&s2=&s3=&b=50">Drive \
customers</a></p>  <p>With search ads</p> 
<p>on Yahoo!</p>                  </div>
                    <div class="ad">
                      <div id="hd1">Y! Messenger</div> 
<p><a href="http://us.ard.yahoo.com/SIG=13onl3jsj/M=493064.12016274.12445679.8674578/D \
=groups/S=1705004726:NC/Y=YAHOO/EXP=1212426360/L=/B=9FXuAkJe5tU-/J=1212419160410086/A= \
3848586/R=0/SIG=12dds2hov/*http://us.rd.yahoo.com/evt=42403/*http://messenger.yahoo.com/feat_voice.php">PC-to-PC \
calls</a></p>  <p>Call your friends</p> 
<p>worldwide - free!</p>                  </div>
          </div>
	    
	  </div> 	  <!-- |**|end egp html banner|**| -->
	  <div style="clear:both; color: #FFF; font-size:1px;">.</div>
	</div> 		  <img src="http://geo.yahoo.com/serv?s=97359714/grpId=479767/grpspId=1705004726/msgId=7298/stime=1212419160/nc1=4507179/nc2=3848644/nc3=3848586" \
width="1" height="1"> <br>  
	<span  style="color: white;">__,_._,___</span>
	<!--~-|**|PrettyHtmlEnd|**|-~-->
	</body>
	<!--~-|**|PrettyHtmlStart|**|-~-->
	<head>
<style type="text/css">
<!--
#ygrp-mkp{
  border: 1px solid #d8d8d8;
  font-family: Arial;
  margin: 14px 0px;
  padding: 0px 14px;
}
#ygrp-mkp hr{
  border: 1px solid #d8d8d8;
}
#ygrp-mkp #hd{
  color: #628c2a;
  font-size: 85%;
  font-weight: bold;
  line-height: 122%;
  margin: 10px 0px;
}
#ygrp-mkp #ads{
  margin-bottom: 10px;
}
#ygrp-mkp .ad{
  padding: 0 0;
}
#ygrp-mkp .ad a{
  color: #0000ff;
  text-decoration: none;
}
-->
</style>
</head>
	<head>
<style type="text/css">
<!--
#ygrp-sponsor #ygrp-lc{
  font-family: Arial;
}
#ygrp-sponsor #ygrp-lc #hd{
  margin: 10px 0px;
  font-weight: bold;
  font-size: 78%;
  line-height: 122%;
}
#ygrp-sponsor #ygrp-lc .ad{
  margin-bottom: 10px;
  padding: 0 0;
}
-->
</style>
</head>
	<head>
	<style type="text/css">
	<!--
	#ygrp-mlmsg {font-size:13px; font-family: \
arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}  #ygrp-mlmsg table \
{font-size:inherit;font:100%;}  #ygrp-mlmsg select, input, textarea {font:99% \
arial,helvetica,clean,sans-serif;}  #ygrp-mlmsg pre, code {font:115% \
monospace;*font-size:100%;}  #ygrp-mlmsg * {line-height:1.22em;}
	#ygrp-text{
	    font-family: Georgia;	
	}
	#ygrp-text p{
	    margin: 0 0 1em 0;
	}
	#ygrp-tpmsgs{
	    font-family: Arial;	
	    clear: both;
	}
	#ygrp-vitnav{
		padding-top: 10px;
		font-family: Verdana;
		font-size: 77%;
		margin: 0;
	}
	#ygrp-vitnav a{
		padding: 0 1px;
	}
	#ygrp-actbar{
		clear: both;
		margin: 25px 0;
		white-space:nowrap;
		color: #666;
		text-align: right;
	}
	#ygrp-actbar .left{
		float: left;
		white-space:nowrap;
	}
	.bld{font-weight:bold;}
	#ygrp-grft{
		font-family: Verdana;
		font-size: 77%;
		padding: 15px 0;
	}
	#ygrp-ft{
	  font-family: verdana;
	  font-size: 77%;
	  border-top: 1px solid #666; 
	  padding: 5px 0; 
	}
	#ygrp-mlmsg #logo{
	  padding-bottom: 10px;
	}

	#ygrp-reco {
	margin-bottom: 20px;
	padding: 0px;
	}
	#ygrp-reco #reco-head {
		font-weight: bold;
		color: #ff7900;
	}

	#reco-grpname{
        font-weight: bold;
        margin-top: 10px;
  	}
	#reco-category{
        	font-size: 77%;
	}
	#reco-desc{
        	font-size: 77%;
	}

	#ygrp-vital{
		background-color: #e0ecee;
		margin-bottom: 20px;
		padding: 2px 0 8px 8px;
	}
	#ygrp-vital #vithd{
		font-size: 77%;
		font-family: Verdana;
		font-weight: bold;
		color: #333;
		text-transform: uppercase;
	}
	#ygrp-vital ul{
		padding: 0;
		margin: 2px 0;
	}
	#ygrp-vital ul li{
	  list-style-type: none;
	  clear: both;
	  border: 1px solid #e0ecee;  
	}
	#ygrp-vital ul li .ct{
	  font-weight: bold;
	  color: #ff7900;
	  float: right;
	  width: 2em;
	  text-align:right;
	  padding-right: .5em;
	}
	#ygrp-vital ul li .cat{
	  font-weight: bold;
	}
	#ygrp-vital a{
		text-decoration: none;
	}

	#ygrp-vital a:hover{
	  text-decoration: underline;
	}

	#ygrp-sponsor #hd{
		color: #999;
		font-size: 77%;
	}
	#ygrp-sponsor #ov{
		padding: 6px 13px;
		background-color: #e0ecee;
		margin-bottom: 20px;
	}
	#ygrp-sponsor #ov ul{
		padding: 0 0 0 8px;
		margin: 0;
	}
	#ygrp-sponsor #ov li{
		list-style-type: square;
		padding: 6px 0;
		font-size: 77%;
	}
	#ygrp-sponsor #ov li a{
		text-decoration: none;
		font-size: 130%;
	}
	#ygrp-sponsor #nc{
	  background-color: #eee;
	  margin-bottom: 20px;
	  padding: 0 8px;
	}
	#ygrp-sponsor .ad{
		padding: 8px 0;
	}
	#ygrp-sponsor .ad #hd1{
		font-family: Arial;
		font-weight: bold;
		color: #628c2a;
		font-size: 100%;
		line-height: 122%;
	}
	#ygrp-sponsor .ad a{
		text-decoration: none;
	}
	#ygrp-sponsor .ad a:hover{
		text-decoration: underline;
	}
	#ygrp-sponsor .ad p{
		margin: 0;
	}
	o{font-size: 0; }
	.MsoNormal{
	   margin: 0 0 0 0;
	}
	#ygrp-text tt{
	  font-size: 120%;
	}
	blockquote{margin: 0 0 0 4px;}
	.replbq{margin:4}
	-->
	</style>
	</head>
	<!--~-|**|PrettyHtmlEnd|**|-~-->
	</html><!--End group email -->



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic