automatic backup from mysql database with Go

702 views
Skip to first unread message

myal...@gmail.com

unread,
Apr 8, 2015, 6:25:18 PM4/8/15
to golan...@googlegroups.com
Hello
i need go source which automatic backup from mysql every day at a certain hour
please suggest to me how do I start?

Siddon Tang

unread,
Apr 9, 2015, 12:05:12 AM4/9/15
to golan...@googlegroups.com
Hi

I think you just need a crontab + mysqldump.

If you want to dive deep, you can see my project https://github.com/siddontang/go-mysql which includes dumping mysql and syncing binlog.

You can also check https://github.com/siddontang/go-mysql-elasticsearch to see how to dump and sync mysql data. 

在 2015年4月9日星期四 UTC+8上午6:25:18,myal...@gmail.com写道:
Reply all
Reply to author
Forward
0 new messages