henesyinit from lsubb0c8bdb6 years agoHistory
140 lines · 2.8 KB · Text
RawDownload
.TH REPL 1.SH NAMEnew, sync, scan \- peer to peer replica management.SH SYNOPSIS.B repl/new.I repl.I id.I dir[.IR excldir ...].br.B repl/sync[.B -N][.B -12lrn].I repl1.I repl2[.IR dir ...].br.B repl/scan.I repl.SH DESCRIPTIONThese programs provide a simplified user interface tothe peer-to-peer replica management system described in.IR repl (8).Each peer is called a replica and holds areplicated file tree.Any number of replicas can be defined andany pair can be synchronized at any time. There is no centralizedserver nor there is a synchronization order required to detectconflicts..PPEach replica is described by asimple.IR rc (1)script that identifies the file tree and related.IR repl (8)information. The programs try to find configuration filesat.B $home/lib/repland.B /lib/replunless a path is supplied..PP.I Newdefines a new replica.I replfor the given directory,using the given identifier. The identifier must be alower case letter and must be unique for each peer of areplicated tree. The file.I replcreated by the script is used later as an argumentfor .I syncand.IR scan .The optional.I excldirargumentsare directories excluded from.I dirfor replication purposes. See the examples below..PP.I Syncsynchronizes changes between replicas.Replicas are identified by the configurationfiles created by.IR new .Before synchronizing,.I syncscans both file trees for changes unlessflag.B -Nis given.Scan can be performed separately by using the.I scanscript.If any.I diris supplied, relative to the top-dir of a replica,synchronization applies only to it..PP.I Syncflag.B -nperforms a dry run to report changes between both replicaswithout synchronizing them (scan is still performed for both).The flag.B -lcan be used to synchronize just the left replica (in command lineorder) with respect to the other. Flag.B -rdoes the same for the right replica..PPFlags.B -1and.B -2can be used to resolve conflicts in favor of the first replica (the left one)and in favor of the second one (the right one).When there are different conflicts to be gained by different replicas,one replica can be updated by hand, and then used as the prefered tosettle down all the conflicts..SH EXAMPLEThis defines for the system file tree, excluding.B /usrand.BR /dist ,a replica called.BR a .Then we define another replica called.B bfor a laptop..EX	; repl/new /dist/sys a /root /usr /dist	replica /dist/sys defined.	; repl/new /dist/laptop b /fossil /usr /dist	replica /dist/laptop defined..EE.LPSynchronice the laptop resolving any conflict in favorof the system.EX	; repl/sync -r1 /dist/sys /dist/laptop.EE.SH SOURCE.B /sys/src/cmd/repl.SH SEE ALSO.IR repl (8),.IR replica (1)..SH BUGSAppend only files are not synchronized to prevent duplicationof file contents.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t