Replication of tables

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • littlemaster
    New Member
    • Apr 2010
    • 25

    #1

    Replication of tables

    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_ev ents => :ignored_change s
    end

    Then I run the command as, rubyrep replicate -c sync.conf.

    It is telling error. Kindly solve this...
  • improvcornartist
    Recognized Expert Contributor
    • May 2007
    • 303

    #2
    I'm guessing you have already seen this documentation, but it looks like you may just have to check the include_tables syntax. Not sure how all this works, though.

    Comment

    Working...