Code Monkey home page Code Monkey logo

biomaj-migrate's Introduction

Migration

Setup

Make sure Biomaj is installed and running

A "biomaj-cli.py --status" should work.

Make sure that data.dir is the same for old and new install. New version is fully compatible with the old release directory management.

Running twice the migration script will not overwrite existing values.

One same server

Use a different properties location, migration script will create new property files based on old ones.

On different server

Copy old properties to the new server (/etc/biomaj/db_properties)

data.dir should be mounted on the new server.

If a new data.dir is expected, then do not run any migration and start from a scratch new biomaj install.

Process scripts

Process script are compatible, and can be kept on previous location, simply do not forget to set its location in new configuration file.

Running migration

Migration script will copy properties files to the new conf.dir, modifying old scripts on-the-fly to the new syntax. It will import all existing productio directory info in the new database. Production directories are not modified nor copied/moved.

python bin/biomaj-migrate.py --config global.properties --oldconfig ../oldbiomaj/biomaj/db_properties/global.properties

OR specifying db parameters

python bin/biomaj-migrate.py --config global.properties --oldconfig ../oldbiomaj/biomaj/db_properties/global.properties --user biomaj --password 'XXX' --host 'YYY' --database biomaj_log

Checks

"biomaj-cli --status" should show the old databases.

Requirements

mysql-devel

biomaj-migrate's People

Contributors

horkko avatar osallou avatar tuco avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.