I am having two DB in postgres. Need proper exapmple for 'rubyrep' tool , to replicate all the tables in A database to B data base.
My sync.conf file is,
-----------------------
RR::Initializer::run do |config|
config.left = {
:adapter => 'postgresql',
:database => 'savithri',
:username => 'savithri',
:password => 'savithri',
:host => '192.168.1.200',
:port => '5432'
}
config.right = {
:adapter => 'postgresql',
:database => 'savithri',
:username => 'savithri',
:password => 'savithri',
:host => '192.168.6.5',
:port => '5432'
}
config.include_tables 'a',
:sync_conflict_handling => :right_wins,
:logged_sync_events => :ignored_changes
end
Then I run the command as, rubyrep replicate -c sync.conf.
It is telling error. Kindly solve this...