Skip to main content

Migrating files between machine learning workbenches

To access enhanced functionality, you can migrate files from an existing machine learning workbench (MLWB) to a newer version. As workbenches cannot be upgraded directly, migration offers the most efficient way to move your files.

This is a two-part process - creating a new machine learning archive and then uploading that archive to a new machine learning workbench:

Creating a machine learning archive

When creating a machine learning archive, you can either migrate your files and folders individually or run a command that will automatically migrate all files and folders (recommended):

To create a machine learning archive:

  1. Open the terminal in the source machine learning workbench by going to File > New > Terminal

    New_Terminal.png

    Alternatively, click the Terminal icon in the launcher:

    open_terminal_in_launcher.png
  2. Choose whether to migrate files and folders indivdually or automatically include all:

    1. Individually: In the terminal, enter the following command to create an archive:

      tar -czf migration_archive.tar.gz file1 file2 folder1/ 

      Using this method, you then need to replace file1 file2 folder1/ with the names of the actual files and directories you want to migrate. To list multiple files or folders, separate each file or folder name with a space.

    2. Automatically include all files and folders (recommended): In the terminal, enter the following command to create an archive:

      tar --exclude=".*" --exclude="lost+found" --exclude="ml-workbench-backup.tar.gz" -czf ml-workbench-backup.tar.gz * 
      terminal_command.png
  3. Locate the archive file (migration_archive.tar.gz.html for individual and ml-workbench-backup.tar.gz for all files and folders) in the file explorer in the left sidebar.

    locate_file.png

    If you do not see the new file, click the Refresh icon at the top.

    refresh_options.png
  4. Right-click on the archive file and select Download.

    download_archive.png
  5. Open the downloaded file.

  6. In the Security Checkpoint window, select the security checkbox and then click Download file.

  7. Go back to the machine learning workbench and right-click on the file to download again.

Uploading the archive to the new machine learning workbench

  1. Log in to the new machine learning workbench.

  2. Upload the tar.gz file by dragging-and-dropping it from the file explorer or clicking the Upload button.

  3. To extract the archive into the new workbench, open a new terminal and run the following extraction command:

    tar -xzf migration_archive.tar.gz

    The files from the archive will be extracted to their original file and folder structures.