Hello Matt,
sorry for the late reply, I was on the road.
This script (http://gist.github.com/435577) should work for you :
---8<---
require 'rubygems'
require 'ruote'
require 'ruote/storage/fs_storage'
require 'ruote/couch'
source = Ruote::FsStorage.new(
'ruote_work')
destination = Ruote::Couch::CouchStorage.new(
'127.0.0.1', 5984, 'couch_prefix' => 'test')
%w[
configurations errors expressions msgs schedules variables workitems
].each do |type|
source.get_many(type).each { |item| destination.put(item) }
end
--->8---
Provided that you adapt the storages configuration to your situation.
I will add to ruote 2.1.10 a migrate_to or a copy_to storage methods to turn the last 6 lines of this script into something like
source.copy_to(target)
Please note that ruote-couch 2.1.10 will be a bit better than the current 2.1.9.
Thanks for your patience,
--
John Mettraux - http://jmettraux.wordpress.com
Hello Matt,
it's "copy_to" :
http://github.com/jmettraux/ruote/commit/bba8cef498c78e96773d7e85c5c73c31f9212c42
Best regards,
--
you received this message because you are subscribed to the "ruote users" group.
to post : send email to openwfe...@googlegroups.com
to unsubscribe : send email to openwferu-use...@googlegroups.com
more options : http://groups.google.com/group/openwferu-users?hl=en
Ouch, sorry no authentication in rufus-jig for now. I've been lazy and using ip based authentication.
Give me some time to add it.
Hello Matt,
I [hope to] have a fix for the "eats all my memory" issue you've encountered with migrations.
It's at
http://github.com/jmettraux/ruote/commit/48033de6f1ad87b3e9aad9ba1c6ec43be40011c2