Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

For upgrades from Avalon 5 to 6.1, perform the actions in Upgrading Avalon 6.0 to Avalon 6.1 after completing the migration detailed on this page.

 


See What's New in Avalon 6 for more details.

...

Expand
title...Follow these sqlite instructions

Sqllite3 doesn't like mysql dump files so a transformation script needs to be run on it. Download https://raw.githubusercontent.com/dumblob/mysql2sqlite/master/mysql2sqlite, make it executable, and run it on the dump file.

Code Block
chmod +x mysql2sqlite
./mysql2sqlite avalon.r5.dump.sql > avalon.r5.dump.sqlite
 
#then on r6
bundle exec rails dbconsole
sqlite> .read /tmp/avalon.r5.dump.sqlite

".read" returns "memory", which is good.

Migrate Fedora Objects

If migrating from fedora3 on a different host, SSH tunnel or open up your fedora3 server to your new Avalon app

...

Choose an available local port to use as a mirror of your fedora3.host:8983

...

import

...

source

...

#

...

In

...

this

...

example

...

9999

...

is

...

used.

...

It

...

must

...

match

...

the

...

port

...

used

...

in

...

fedora3.yml

...

in

...

the

...

next

...

step

...

Code Block
ssh -L 9999:localhost:8983 user@fedora3.host

keep the ssh mirror running in another tab as you do the next steps. Or run it in the background

Code Block
ssh -fN -L 9999:localhost:8983 user@fedora3.host


Setup config/fedora3.yml in your Avalon 6 app

The fedora3.yml should work without change, but if you do have trouble, here's an example fedora3.yml for the avalon demo server.

...

Code Block
#This will delete any bookmarks that point to failed items
bundle exec rake avalon:migrate:bookmark_cleanup

 

 

...