<meta charset="utf-8"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: medium; "><table class="Bs nH iY" cellpadding="0" style="position: relative; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; border-collapse: collapse; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(255, 255, 255); width: 975px; background-position: initial initial; background-repeat: initial initial; ">
<tbody><tr><td class="Bu" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: arial, sans-serif; vertical-align: top; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
<div class="nH if" style="padding-top: 0px; padding-right: 0px; padding-bottom: 1px; padding-left: 0px; "><div class="nH"><div class="nH hx" style="color: rgb(0, 0, 0); padding-top: 4px; padding-right: 8px; padding-bottom: 4px; padding-left: 8px; ">
<div class="nH"><div class="nH"><div class="h7  ie" style="clear: both; padding-bottom: 0px; "><div class="Bk" style="position: relative; margin-bottom: 10px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(239, 239, 239); border-right-color: rgb(239, 239, 239); border-left-color: rgb(239, 239, 239); border-bottom-color: rgb(226, 226, 226); border-top-width: 0px; border-top-left-radius: 7px 7px; border-top-right-radius: 7px 7px; border-bottom-right-radius: 7px 7px; border-bottom-left-radius: 7px 7px; width: 726px; ">
<div class="G3 G2" style="padding-top: 3px; background-color: rgb(255, 255, 255); border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-right-color: rgb(188, 188, 188); border-bottom-color: rgb(188, 188, 188); border-left-color: rgb(188, 188, 188); border-top-width: 1px; border-top-style: solid; border-top-color: rgb(188, 188, 188); border-top-left-radius: 7px 7px; border-top-right-radius: 7px 7px; border-bottom-right-radius: 7px 7px; border-bottom-left-radius: 7px 7px; ">
<div class="nH"><div id=":1cb"><div class="HprMsc"><div class="gs"><div id=":1dk" class="ii gt" style="font-size: 13px; margin-top: 5px; margin-right: 15px; margin-bottom: 5px; margin-left: 15px; padding-bottom: 20px; position: relative; z-index: 2; ">
<div id=":1cc">On UNIX, I am  executing an rsync command, from within a script. The command goes something like this:<div><br></div><div>/usr/bin/rsync --verbose  --progress --stats --compress --recursive --times --perms --links  --safe-links source_dir/ user@target_machine:/parent_path/source_dir  </div>
<div><br></div><div>In other words, I am replicating source_dir on a remote machine. It ends up next to a lot of sibling, directories, like this:</div><div><br></div><div>On target_machine</div><div><br></div><div>/parent_path/source_dir</div>
<div>/parent_path/source_dir2</div><div>....</div><div>/parrent_path/source_dirn</div><div><br></div><div>Here's my issue. I'd like to use the --delete option in the command above. However, I wake up in a cold sweat worrying about supplying the empty </div>
<div>string for source_dir, and thus removing souce_dir, and all it's siblings on target_machine.</div><div><br></div><div>Now I realize, I can just be extra careful that the variable pointing to source_string is never empty, but I would like to have other fail safe mechanisms in place.</div>
<div><br></div><div>I hope I have been sufficiently specific to elicit some suggestions. I guess I am looking for the software equivalent of lots of padlocks on the apartment door.</div><div><br></div><div>Thanks,</div><div>
<br></div><div>Ted Gilchrist<br clear="all"></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></td></tr></tbody></table></span><br>-- <br>"Speech, not just for humans"<br>
<br><a href="http://www.google.com/profiles/egilchri" target="_blank">http://www.google.com/profiles/egilchri</a><br><div><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse"><a href="http://about.me/" style="color:rgb(20, 125, 186)" target="_blank">about.me/</a><span style="font-weight:bold">ted.gilchrist</span></span></div>
<br>