Thanks for the answer Ali. I will do that, I will improve the export/import tool in order to make full dumps. It's absolutely necessary to migrate current installations of WiAB and other flavors like Kune.
2014-04-10 20:27 GMT+02:00 Ali Lown <a...@lown.me.uk>: > Pablo, > > There does not currently exist a method of exporting all waves from the > server. > > The import/export tool was written in mind for a particular user > moving from GWave->WIAB, so they would have only cared about waves > that a particular user was a participant in. > > The export tool just uses the list of waves returned by the search api. > > Feel free to improve on the export tool, so that it can interact > directly with the wave store, to allow it to read/write all waves. > > Ali > > On 9 April 2014 09:54, Pablo Ojanguren <pablo...@gmail.com> wrote: > > I have been playing with wave export/import tool and it works great and > of > > course it allows to move then from disk to mongodb. But it only exports > > those waves of the user we use to execute the tool. So from an > > administration point of view I can't perform a full dump of waves. > > > > Does anybody know if there is a way to perform a full export of waves? > > > > > > Thank you! > > > > > > > > 2014-03-03 19:09 GMT+01:00 Pablo Ojanguren <pablo...@gmail.com>: > > > >> Yes, I was pending to check out your patch! Thank you very much! > >> > >> > >> 2014-03-03 18:57 GMT+01:00 Ben Hegarty <heg...@gmail.com>: > >> > >> just as an FYI there is a bug in the mongodb impl in the file > >>> MongoDbDeltaCollection.java here... > >>> > >>> 129 @Override > >>> 130 public WaveletDeltaRecord getDeltaByEndVersion(long version) > throws > >>> IOException { > >>> 131 DBObject query = createWaveletDBQuery(); > >>> 132 > >>> > >>> > query.put(MongoDbDeltaStoreUtil.FIELD_TRANSFORMED_RESULTINGVERSION_VERSION, > >>> version); > >>> 133 > >>> 134 DBObject result = deltaDbCollection.findOne(query); > >>> 135 > >>> 136 WaveletDeltaRecord waveletDelta = null; > >>> 137 > >>> 138 if (result != null) > >>> 139 try { > >>> *140 > MongoDbDeltaStoreUtil.deserializeWaveletDeltaRecord(result);* > >>> 141 } catch (PersistenceException e) { > >>> 142 throw new IOException(e); > >>> 143 } > >>> 144 return waveletDelta; > >>> 145 } > >>> > >>> that may cause issues, the deserialised record doesn't actually get > >>> returned. Once I fixed the mongodb unit tests, I found it. > >>> > >>> Regards > >>> Ben > >>> > >>> > >>> On Mon, Mar 3, 2014 at 5:02 PM, Pablo Ojanguren <pablo...@gmail.com> > >>> wrote: > >>> > >>> > Great whether import/export tools are realiable. I will perform test > >>> too. > >>> > > >>> > Thanks > >>> > > >>> > > >>> > 2014-03-03 17:59 GMT+01:00 Yuri Z <vega...@gmail.com>: > >>> > > >>> > > I guess it might work. I ll try it out. > >>> > > On Mar 3, 2014 6:53 PM, "Pablo Ojanguren" <pablo...@gmail.com> > wrote: > >>> > > > >>> > > > Hi, > >>> > > > > >>> > > > I wonder if we could use existing delta export/import utilities > to > >>> > > perform > >>> > > > such migration. These would be the steps to perform: > >>> > > > > >>> > > > 1) Run export utility and get a full backup of deltas > >>> > > > 2) Change server configuration to use mongoDB for delta > persistence > >>> > > > 3) Run import utility with previous backup files > >>> > > > > >>> > > > > >>> > > > Does anyone see any pitfall or risk in this approach? > >>> > > > > >>> > > > Thank you. > >>> > > > > >>> > > > >>> > > >>> > >>> > >>> > >>> -- > >>> Regards > >>> Ben > >>> > >> > >> >