Migration

Before doing any migration you might want to check the Configuration and Deployment sections.

16.10 -> 17.11

In the old site:

  1. Make sure you have a backup of your old site!

  2. Dump database of old marv:

    curl -LO https://gist.githubusercontent.com/chaoflow/02a1be706cf4948a9f4d7f1fd66d6c73/raw/de4feab88bcfa756abfb6c7f5a8ccaef7f25b36d/marv-16.10-dump.py
    python2 marv-16.10-dump.py > /tmp/dump.json
    

For and in the new instance:

  1. Follow Installation and Tutorial: Setup basic site to setup a basic site.

  2. Replace marv.conf with the default Configuration and adjust as needed (e.g. scanroot).

  3. Initialize site with new configuration:

    marv init
    
  4. If your scanroot has moved, adjust paths as needed:

    sed -i -e 's,/old/scanroot/,/path/to/new/scanroot/,g' /tmp/dump.json
    
  5. Restore database in new marv:

    marv restore /tmp/dump.json
    
  6. Set password for each user:

    marv user pw <username>
    
  7. Run nodes:

    marv query -0 --collection=bags |xargs -0 -L25 -P4 marv run --keep-going
    
  8. Run again sequentially to see if there are nodes producing errors:

marv run --collection=bags