Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 6

...

Perform these steps on the new server. 

  1. Optionally, you may wish to run the "update-sequences" command to ensure all the database sequences (used to insert new data in your database) are up to date.  Sometimes, these sequences can get outdated or reset during the process of moving databases around.  This command will do nothing if your sequences are already up-to-date.  But, if they are somehow outdated, then it will ensure the "migrate" command doesn't throw errors related to outdated sequences. More information on this command can be found in Database Utilities.

    Code Block
    # Just ensures all database sequences are up-to-date,
    # as that is necessary for a successful migration
    ./dspace database update-sequences

    Migrate/Upgrade the database to the latest version - Now that your old data is migrated, you MUST ensure it's using the latest database updates based on the new DSpace you've installed.  Review the database steps in Upgrading DSpace and follow the instructions there.  

    Code Block
    # Migrate your old data to the latest DSpace version
    # WARNING: You must review the Upgrading DSpace docs to see if there are any additional database steps listed there!
    ./dspace database migrate ignored


    NOTE: You should check the logs (dspace.log) for errors.  Additional steps may be documented in the Upgrading DSpace guide.
  2. Start Tomcat.  This will bring your new DSpace back up, with the migrated data in place.  Check the backend logs (dspace.log and Tomcat log) to ensure no errors occur on startup.
  3. Reindex all content - This will ensure all search/browse functionality works in the DSpace site.  Optionally, if you use OAI-PMH, you will want to reindex content into there as well.

    Code Block
    # Reindex all your content in DSpace
    ./dspace index-discovery -b
    
    # (Optionally) also reindex everything into OAI-PMH endpoint
    ./dspace oai import

    NOTE: Until this command completes (it may take a while for large sites), you will not be able to fully browse/search the content from the User Interface.  To check the progress of the reindex, check your dspace.log file.

...