Bidirectional Snapshot Replicaton Setup tutorial
Defining subscribers for a pulished DAV collection Defining subscribers

## Preliminaries

In order to run this example you need two Virtuoso servers running (publisher and subscriber). In the example scripts it is assumed that the first Virtuoso server (publisher) is running at localhost:1111 and the second Virtuoso server (subscriber) is running at localhost:1112. If you are running ODBC versions of the servers there should be 2 ODBC DSN's records named "localhost:1111" and "localhost:1112". Subscriber should have "ServerName" configuration parameter set to "demoserver2".

## Example creating a subscription

These steps should be executed on publisher.

1. Login to the Conductor UI using the dba account.
2. Go to the "Replication" tab and then go to the "Bidirectional Snapshot" tab.
3. Click "Subscriptions" for desired published DAV collection ("/DAV/doc").
4. Press "New Subscriber" button.
5. Select connected DSN from the list and then press "Create Subscription" button. If desired DSN is not connected yet you can connect to it using "Specify new data source" dialog below.

## Equivalent SQL commands to above

1. Connect to the publisher via ISQL utility as DBA user.
2. Define a replication server "demoserver2" at "localhost:1112" and subscribe it to published "/DAV/doc" DAV collection.

       SQL> repl_snp_server('localhost:1112');
       SQL> repl_create_snapshot_sub('demoserver2', '/DAV/doc', 1, 'dba', 'dba');