Migration Plans: Migration Scripts

The next step of creating a migration plan in the Tableau Content Migration Tool is to create any scripts you want to run with your plan before or after migration.

Step 1: Pre-Migration

The Run Pre Migration section of the screen is dedicated to scripts that will run prior to migration.

Each field has a help icon you can get information from by moving your cursor over it. To start with your pre-migration scripts, select Enable, which will then activate the fields below.

Working Directory

This is the working directory for the script. The default directory is the same folder as the migration plan. Click on the browse button to select a different folder. The Reset button will restore the current folder as the plan as the working directory.

Run

This drop down allows you to choose either to run a custom script or an executable with parameters.

Command Executable

If you selected Executable with Parameters from the Run menu, this field will appear. This is the file path to the command executable to run prior to migration. Type it in directly or use the browse button to find the executable. This is a required field.

Command Parameters

If you selected Executable with Parameters from the Run drop-down menu, this field will appear. Enter in command line parameters here to use with the command executable.

Script

If you selected Custom script from the Run menu, enter in your pre-migration script here. It will be executed as a *.cmd file. This is a required field.

Step 2: Post-Migration

The Run Post Migration half of the screen is dedicated to scripts that will run after migration.

Each field has a help icon you can get information from by moving your cursor over it. To start with your post-migration scripts, select Enable, which will then activate the fields below.

Working Directory

This is the working directory for the script. The default directory is the same folder as the migration plan. Click on the browse button to select a different folder. The Reset button will restore the current folder as the plan as the working directory.

Run

This drop down allows you to choose either to run a custom script or an executable with parameters.

Command Executable

If you selected Executable with Parameters from the Run menu, this field will appear. This is the file path to the command executable to run prior to migration. Type it in directly or use the browse button to find the executable. This is a required field.

Command Parameters

If you selected Executable with Parameters from the Run menu, this field displays. Enter in command line parameters here to use with the command executable.

Script

If you selected Custom script from the Run menu, enter in your post-migration script here. It will be executed as a *.cmd file. This is a required field.

Step 3: Continue to Next Step

When you are ready, click Next.

Who can do this

Tableau Server user with an Explorer role or higher. To migrate content, you must have View and Download Workbook/Save a Copy permissions on the source site, and Publishing rights for the destination site. For more information, see Permissions.

Thanks for your feedback!