Migrate data to a new Vertex AI Workbench instance

This page describes how to migrate data and files froman existing Vertex AI Workbench instance to a new one.

When to migrate

You might need to migrate your data toa new Vertex AI Workbench instance ifyou can't upgrade the environment of your existing instance.See therequirements for upgrading the environment ofa Vertex AI Workbench instance.

Migration options

To migrate data and files from one Vertex AI Workbench instance to another,consider using the following methods:

  • Use GitHub: Copy your data and files to a GitHub repositoryby using the Git extension for JupyterLab.

  • Use Cloud Storage and the terminal: Copy your data and filesto Cloud Storage and then to another instance by using the terminal.

  • Use Cloud Storage within JupyterLab notebooks:Copy your data and files to Cloud Storage and then to another instanceby running commands within your respective instances' notebook cells.

This guide describes how to migrate data and files by usingCloud Storage and the terminal.

Requirements

You must have terminal access to your Vertex AI Workbench instance.Terminal access is manually set when you create an instance. Theterminal access setting cannot be changed after the instance is created.

Before you begin

Create a Cloud Storage bucketin the same project where your Vertex AI Workbench instanceis located.

Migrate your data to a new Vertex AI Workbench instance

To migrate data and files to a new Vertex AI Workbench instanceby using Cloud Storage and the terminal, complete the following steps.

  1. In your Vertex AI Workbench instance'sJupyterLab interface, selectFile >New > Terminal to open a terminal window.

  2. Use thegcloud CLI to copy your user datato a Cloud Storage bucket. The following example commandcopies all of the files from your instance's/home/jupyter/ directoryto a directory in a Cloud Storage bucket.

    gcloudstoragecp/home/jupyter/*gs://BUCKET_NAMEPATH--recursive

    Replace the following:

    • BUCKET_NAME: the name of yourCloud Storage bucket
    • PATH: the path to the directorywhere you want to copy your files, for example:/copy/jupyter/
  3. Open your Vertex AI Workbench instance's JupyterLab interface.

  4. In your Vertex AI Workbench instance'sJupyterLab interface, selectFile >New > Terminal to open a terminal window.

  5. Use the gcloud CLI to restore your data on the new instance.The following example command copies all ofthe files from a Cloud Storage directory to theyour new instance's/home/jupyter/ directory.

    gcloudstoragecpgs://BUCKET_NAMEPATH*/home/jupyter/

What's next

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-18 UTC.