ref: eb07ec1213e2552c1bcf79a9615fc7e646ba82a7
dir: /changeblog/1593621046.ht/
<article> <header> <h2>Guided Replica</h2> <b>Wed, 01 Jul 2020 18:30:46 +0200</b> </header> <p style="margin-top: 0; margin-bottom: 0.50in"></p> <p style="margin-top: 0; margin-bottom: 0.21in"></p> <p style="line-height: 1.4em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: center;"> <span style="font-size: 12pt"><b>Guided Replica</b></span></p> <p style="margin-top: 0; margin-bottom: 0.21in"></p> <p style="margin-top: 0; margin-bottom: 0.21in"></p> <p style="margin-top: 0; margin-bottom: 0.42in"></p> <p style="margin-top: 0; margin-bottom: 0.21in"></p> <p style="margin-top: 0; margin-bottom: 0.05in"></p> <p style="margin-top: 0; margin-bottom: 0.50in"></p> <p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;"> <span style="font-size: 10pt">Today I installed on my VPS. I noticed that I can write some helper scripts around it and here they are. </span></p><p style="margin-top: 0; margin-bottom: 0.05in"></p> <p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;"> <span style="font-size: 10pt">You can download them from </span><span style="font-size: 10pt"><tt>https://sirjofri.de/files/guidedreplica</tt></span><span style="font-size: 10pt">. </span></p><p style="margin-top: 0; margin-bottom: 0.05in"></p> <p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;"> <span style="font-size: 10pt">You can install it like that: </span></p><p style="margin-top: 0; margin-bottom: 0.05in"></p> <p style="margin-top: 0; margin-bottom: 0.08in"></p> <p style="line-height: 1.1em; margin-left: 1.28in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;"> <span style="font-size: 9pt"><tt># bind your client $home to /n/rclient</tt></span></p> <p style="line-height: 1.1em; margin-left: 1.28in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;"> <span style="font-size: 9pt"><tt># bind your server $home to /n/rserver</tt></span></p> <p style="line-height: 1.1em; margin-left: 1.28in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;"> <span style="font-size: 9pt"><tt>hget https://sirjofri.de/files/guidedreplica/guidedreplica.rc | rc</tt></span></p> <p style="line-height: 1.1em; margin-left: 1.28in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;"> <span style="font-size: 9pt"><tt># follow the prompts</tt></span></p> <p style="margin-top: 0; margin-bottom: 0.17in"></p> <p style="margin-top: 0; margin-bottom: 0.08in"></p> <p style="margin-top: 0; margin-bottom: 0.05in"></p> <p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;"> <span style="font-size: 10pt">This will also install two helper scripts to </span><span style="font-size: 10pt"><tt>$home/bin/rc/replica/</tt></span><span style="font-size: 10pt">. Reproto copies one proto over the other. You can choose which one you want to keep. Reupdate is helpful if there are update-update errors. It should automatically solve them (untested, but should work). </span></p><p style="margin-top: 0; margin-bottom: 0.05in"></p> <p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;"> <span style="font-size: 10pt"></span><span style="font-size: 10pt"><b>Update:</b></span><span style="font-size: 10pt"> </span><span style="font-size: 10pt"><i>replica</i></span><span style="font-size: 10pt">(1) has issues. Often it does a bad job tracking changes, leaving removed files there and vice versa. I never encountered data loss, only inconsistencies in the copies. </span></p><p style="margin-top: 0; margin-bottom: 0.05in"></p> <p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;"> <span style="font-size: 10pt">Many people use </span><span style="font-size: 10pt"><i>mkfs</i></span><span style="font-size: 10pt">(8), which does not overwrite changed files. At some point I will build some scripts around it and use that instead of </span><span style="font-size: 10pt"><i>replica</i></span><span style="font-size: 10pt">(1). </span></p><p style="margin-top: 0; margin-bottom: 0.05in"></p> <p style="line-height: 1.2em; margin-left: 1.00in; text-indent: 0.00in; margin-right: 1.00in; margin-top: 0; margin-bottom: 0; text-align: justify;"> <span style="font-size: 10pt">(Files: </span><span style="font-size: 10pt"><tt>https://sirjofri.de/files/guidedreplica/README</tt></span><span style="font-size: 10pt"> </span><span style="font-size: 10pt"><tt>https://sirjofri.de/files/guidedreplica/guidedreplica.rc</tt></span><span style="font-size: 10pt">) </span></p><p style="margin-top: 0; margin-bottom: 0.50in"></p> </article>