Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] Trouble loading dump into Xapian index
@ 2009-09-03 14:24 Marc Weber
  2009-09-03 15:25 ` William Morgan
  0 siblings, 1 reply; 10+ messages in thread
From: Marc Weber @ 2009-09-03 14:24 UTC (permalink / raw)


I've used this sh script to get a new SUP_BASE using xapian only:
However somehow i couldn't import the tags? What have I done wrong?
dump2: The dump file created from the xapian index.

  set -x
  OLD=~/.sup-old/
  NEW=~/.sup-new-test
  DUMP=/tmp/dump-file-new
  DUMP2=/tmp/dump-file-new2
  SYNC_LOG=/tmp/sup-sync-log
  GIT_REPO=~/managed_repos/sup_mainline

  rm -fr $NEW

  export SUP_BASE=$OLD
  sup-dump > $DUMP

  # from now on operate on the new base only
  export SUP_BASE=$NEW
  cp -r $OLD $NEW
  rm -fr $NEW/ferret
  mv $NEW/{hooks,hooks-disabled}

  # echo loading stuff..
  export SUP_INDEX=xapian
  cd $GIT_REPO 
  echo "syncing.. this will take long. use tail -f $SYNC_LOG to watch progress"
  ruby -Ilib bin/sup-sync --all --all-sources --restore $DUMP &> $SYNC_LOG

  echo "writing dump"
  ruby -Ilib bin/sup-dump > $DUMP2


dump: (first line after sorting)
000001c9fe57$346bf530$9d43df90$@com.au (unread openeeg)

dump2: (first line after sorting)
000001c9fe57$346bf530$9d43df90$@com.au (inbox unread)

Marc Weber


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-09-04 17:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-03 14:24 [sup-talk] Trouble loading dump into Xapian index Marc Weber
2009-09-03 15:25 ` William Morgan
2009-09-03 16:21   ` Marc Weber
2009-09-03 16:42     ` Rich Lane
2009-09-03 17:16       ` William Morgan
2009-09-04 17:00         ` Rich Lane
2009-09-04 17:29           ` William Morgan
2009-09-03 17:26       ` Marc Weber
2009-09-03 18:35         ` Rich Lane
2009-09-04 16:25           ` Marc Weber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox