Updated on 2024-04-29 GMT+08:00

Exporting and Importing Scripts

Exporting Scripts

You can export one or more script files from the script directory. The exported files store the latest content in the development state.

  1. Log in to the DataArts Studio console by following the instructions in Accessing the DataArts Studio Instance Console.
  2. On the DataArts Studio console, locate a workspace and click DataArts Factory.
  3. In the left navigation pane of DataArts Factory, choose Data Development > Develop Script.
  4. Click in the script directory and select Show Check Box.
  5. Select scripts, click , and select Export Script. After the export is successful, you can obtain the exported .zip file.
    Figure 1 Selecting and exporting scripts

  6. In the displayed Export Script dialog box, set Export Status and click OK.
    Figure 2 Exporting scripts

Importing Scripts

This function is available only if the OBS service is available. If OBS is unavailable, scripts can be imported from the local PC.

You can import one or more script files in the script directory. After a job is imported, the content in the development state is overwritten and a new version is automatically submitted.

  1. Log in to the DataArts Studio console by following the instructions in Accessing the DataArts Studio Instance Console.
  2. On the DataArts Studio console, locate a workspace and click DataArts Factory.
  3. In the left navigation pane of DataArts Factory, choose Data Development > Develop Script.
  4. Click and select Import Script. In the displayed dialog box, select the file to import and set Duplicate Name Policy.

    If you select Overwrite for Duplicate Name Policy but the hard lock policy is used and the script is locked by another user, the overwriting will fail. For details about soft and hard lock policies, see Configuring the Hard and Soft Lock Policy.

    Figure 3 Importing scripts

  5. Click Next.