Creating and running migration scripts


Use the following tips to quickly create and run migration scripts:

  • In Scripting mode, dragging and dropping objects from a source server to a destination server window automatically creates a new migration script or adds to an existing one.
  • Double-clicking a script file from its saved location launches and opens the script in a window.
  • Migrator allows you to have only one Scripting window open at a time. If a Scripting window is already open, Migrator adds to it.

To create a migration script

  1. If you have more than one source server, make sure you are logged on to and have server windows open for all the servers included in the scripted migration.
  2. Select Migrate > Scripting Mode.
  3. Perform any type of object, field, or data migration between any license servers, between a server and a file, or between files.
    A migration script window opens as soon as you script your first object, field, or data type. If you have several objects to script, you can minimize the window or resize the script window and continue migrating.
  4. When you have completed your script, select File > Save As.
  5. Select a destination path and type a file name, making sure to save the file as a .mgrscript file.

    Tip

    Store your scripted files in the Migrator Script directory. This directory gives you access to the files from the Server Tree view by clicking the Scripts icon.

  6. Click Save.
  7. Close the script window.

To open and run a migration script

  1. Select Script > Execute Migration Script.
  2. In the Migrator Scripts dialog box, select the script you want to run and then click Open.
    Migrator runs the scripted migration. To view a saved scripted file, open the Script Files directory in the left pane, and double-click the script name.
  3. Select the scripted file and click the Execute Migration Script toolbar icon to run the scripted migration.

    To view a progress indicator of an executing migration, select the All tab in the migration status pane. For more information about using the migration status pane, see Managing-migrations.
    You can also open or delete a migration script by right-clicking on a script and selecting the delete option from the pop-up menu. 
    script_popupmenu.gif

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*