shithub: sirjofri_de

ref: b6d4d738faa60f9a0b6df3590693bd23e143dbc6
dir: /changeblog/1593621046.ms/

View raw version
.HTML Guided Replica
.TL
Guided Replica
.LP
Today I installed
.IR replica (1)
on my VPS. I noticed that I can write some helper scripts around it
and here they are.
.LP
You can download them from
.CW https://sirjofri.de/files/guidedreplica .
.LP
You can install it like that:
.LP
.CW
# bind your client $home to /n/rclient
.br
# bind your server $home to /n/rserver
.br
hget https://sirjofri.de/files/guidedreplica/guidedreplica.rc | rc
.br
# follow the prompts
.LP
This will also install two helper scripts to
.CW $home/bin/rc/replica/ .
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).
.LP
.B Update:
.IR 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.
.LP
Many people use
.IR mkfs (8),
which does not overwrite changed files. At some point I will build some scripts around it and use that instead of
.IR replica (1).
.LP
(Files:
.CW https://sirjofri.de/files/guidedreplica/README
.CW https://sirjofri.de/files/guidedreplica/guidedreplica.rc )