Hello, i wrote an agent using Lotusscript that replicates all templates and databases to a drive outside the domino data dir for backup.Problem is that some files raise an error like this:
Attempt by CN=server/O=company to create duplicate template StdR4Events in database h:\backup\events4.ntf - rejected.
How can i prevent this?
The code is something like this:
Set db = dbdir.GetFirstDatabase(REPLICA_CANDIDATE)
While Not(db Is Nothing)
Call db.Open( "", "" )
'set file …
If db.isOpen Then
Set dbReplica = New NotesDatabase("",file )
If dbReplica.isOpen Then
Call db.Replicate("")
Else
Set dbReplica = db.CreateReplica( "", file )
End If
End If
Set db = dbdir.GetNextDatabase
Wend
Thanks in advance
![]()