ref: 0cb9bfb07b43408ee73b55f768e24b92fb9dbe8c
dir: /changeblog/1593621046.txt/
Guided Replica Today I installed ‥replica‥(1) on my VPS. I noticed that I can write some helper scripts around it and here they are. You can download them from [[[ms .CW https://sirjofri.de/files/guidedreplica . ]]] [[[ebook <code>https://sirjofri.de/files/guidedreplica</code>. ]]] You can install it like that: [[[ms .P1 # bind your client $home to /n/rclient # bind your server $home to /n/rserver hget https://sirjofri.de/files/guidedreplica/guidedreplica.rc | rc # follow the prompts .P2 ]]] [[[ebook <code><pre> # bind your client $home to /n/rclient # bind your server $home to /n/rserver hget https://sirjofri.de/files/guidedreplica/guidedreplica.rc | rc # follow the prompts </pre></code> ]]] This will also install two helper scripts to [[[ms .CW $home/bin/rc/replica/ . ]]] [[[ebook <code>$home/bin/rc/replica/</code>. ]]] 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). ‥‥Update:‥‥ ‥replica‥(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. Many people use ‥mkfs‥(8), which does not overwrite changed files. At some point I will build some scripts around it and use that instead of ‥replica‥(1). (Files: [[[ms .CW https://sirjofri.de/files/guidedreplica/README .CW https://sirjofri.de/files/guidedreplica/guidedreplica.rc ) ]]] [[[ebook <code>https://sirjofri.de/files/guidedreplica/README</code>, <code>https://sirjofri.de/files/guidedreplica/guidedreplica.rc</code>) ]]]