欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
Bucardo
来自开放百科 - 灰狐
(版本间的差异)
小 (→安装) |
小 (→链接) |
||
(未显示1个用户的6个中间版本) | |||
第2行: | 第2行: | ||
==安装== | ==安装== | ||
+ | 安装 DBIx::Safe、DBD:Pg、Test::Simple | ||
yum install perl-DBIx-Safe or | yum install perl-DBIx-Safe or | ||
apt-get install libdbix-safe-perl | apt-get install libdbix-safe-perl | ||
第13行: | 第14行: | ||
make test | make test | ||
make install | make install | ||
+ | 安装Bucardo | ||
+ | tar xvfz Bucardo-4.4.8.tar.gz | ||
+ | cd Bucardo-4.4.8 | ||
+ | 取得最新包:git clone git://bucardo.org/bucardo.git | ||
+ | INSTALL_BUCARDODIR=/tmp/bucardotest perl Makefile.PL | ||
+ | perl Makefile.PL | ||
+ | make | ||
+ | make install | ||
+ | 创建Bucardo数据库 | ||
+ | bucardo_ctl install | ||
+ | bucardo_ctl add database <dbname> | ||
+ | bucardo_ctl start | ||
+ | 直接/usr/local/pgsql/bin/psql -e < bucardo.schema | ||
==PgSQL to MongoDB== | ==PgSQL to MongoDB== | ||
+ | [http://blog.endpoint.com/2011/06/mongodb-replication-from-postgres-using.html MongoDB replication from Postgres using Bucardo] | ||
==链接== | ==链接== | ||
*[http://bucardo.org/ Bucardo官网] | *[http://bucardo.org/ Bucardo官网] | ||
− | [[ | + | [[category:PostgreSQL]] |
+ | [[category:MongoDB]] |
2016年2月21日 (日) 14:16的最后版本
Bucardo 是一个PostgreSQL的异步同步工具,它支持任意方式的主从同步,multi-master或者multi-slave等。新版Bucardo可将数据同步到其他存储系统,如MongoDB。
[编辑] 安装
安装 DBIx::Safe、DBD:Pg、Test::Simple
yum install perl-DBIx-Safe or apt-get install libdbix-safe-perl apt-get install libtest-simple-perl // install Test::Simple install DBD:Pg export POSTGRES_LIB="/usr/local/pgsql/lib -lssl -lcrypto" tar xvfz dbix_safe.tar.gz cd DBIx-Safe-1.2.5 perl Makefile.PL make make test make install
安装Bucardo
tar xvfz Bucardo-4.4.8.tar.gz cd Bucardo-4.4.8 取得最新包:git clone git://bucardo.org/bucardo.git INSTALL_BUCARDODIR=/tmp/bucardotest perl Makefile.PL perl Makefile.PL make make install
创建Bucardo数据库
bucardo_ctl install bucardo_ctl add database <dbname> bucardo_ctl start
直接/usr/local/pgsql/bin/psql -e < bucardo.schema
[编辑] PgSQL to MongoDB
MongoDB replication from Postgres using Bucardo
[编辑] 链接
分享您的观点