@ReplicateWithServer
Syntax
@ReplicateWithServer(PORTNAME1;SERVERNAME2;OPTIONS3;RETSTATPULL5;RETSTATPUSH6);
@ReplicateWithServer(PORTNAME1;SERVERNAME2;OPTIONS3;FILELIST4;RETSTATPULL5;RETSTATPUSH6);
Description
The databases of the local Notes server are replicated with the remote Notes server TEXT SERVERNAME2 over the port TEXT PORTNAME1 by the Notes replicator, not by the Engine replicator.
Using FN OPTIONS3, options can be specified.
In FNLIST RETSTATPULL5 and FNLIST RETSTATPUSH6, the replication statisics are returned.
Return value:
On success, TRUE is returned; otherwise @ERROR.
TEXT PORTNAME1:
"" for the best port.
FN OPTIONS3:
DEC BIT Meaning
00000 XX Replicate databases with low, medium, and high replication priority.
00001 01 Replicate only by receiving from the remote Notes server (pull)
00002 02 Replicate only by sending to the remote Notes server (push)
00004 03 Replicate all types of databases
00008 04 Reserved
00016 05 Reserved
00032 06 Reserved
00064 07 Close the network session after replication (relevant only for modem connections)
00128 08 Reserved
00256 09 Reserved
00512 10 Reserved
01024 11 Also replicate NTF databases
02048 12 Reserved
04096 13 Reserved
08192 14 Reserved
16384 15 Replicate only databases with medium and high replication priority.
32768 16 Replicate only databases with high replication priority.
(To specify multiple options, add the values of the relevant options or build them using @BitVektor.)
FNLIST RETSTATPULL5 and RETSTATPULL6:
Element Meaning
1 TotalFiles;
2 FilesCompleted;
3 NotesAdded;
4 NotesDeleted;
5 NotesUpdated;
6 Successful;
7 Failed;
8 NumberErrors;
Example: @ReplicateWithserver(PORTNAME1;SERVERNAME2;OPTIONS3;FILELIST4;RETSTATPULL5;RETSTATPUSH6);
TextL:="TotalFiles":"FilesCompleted":"NotesAdded":"NotesDeleted":"NotesUpdated":"Successful":"Failed":"NumberErrors";
TextL:=@Left(@Text(TextL)+" ";16);
FileList:="NAMES.NSF":"SYSTEM\\LOAPI.NSF";
Ret:=@ReplicateWithserver("";"TEST-SERVER2";1091;FileList;RETSTATPULL5;RETSTATPUSH6);
@LogReport(Ret);
@LogReport("RETSTATPULL5";3);
txt:=TextL+":"+@Right("00000"+@Text(RETSTATPULL5);5);
n1:=1;
n1e:=@elements(txt);
WHILE(n1<=n1e)
{
@LogReport(@GetListElement(txt;n1);3);
@Increment(n1);
}
@LogReport("RETSTATPUSH6";3);
txt:=TextL+":"+@Right("00000"+@Text(RETSTATPUSH6);5);
n1:=1;
n1e:=@elements(txt);
WHILE(n1<=n1e)
{
@LogReport(@GetListElement(txt;n1);3);
@Increment(n1);
}
The DB "NAMES.NSF" and "SYSTEM\\LOAPI.NSF" of the local server are replicated with the server "TEST-SERVER2" over the best port ("") are replicated.
The returned statisics (RETSTATPULL5 and RETSTATPUSH6) are then output.
Note : This text was machine-translated and may contain inaccuracies.
