Updated on 2026-01-21 GMT+08:00

Copying a File

This action aims to copy files between directories within hosts and copy files across hosts.

Configuring Deployment Actions

  1. Create an application by referring to Creating an Application.
  2. On the Deployment Actions page, add this deployment action based on the service scenario.
  3. Configure the action using the parameters described in the table below.

    Table 1 Parameters

    Parameter

    Description

    Action Name

    Custom action name. Enter 1 to 128 characters. Do not start or end with a space. Use letters, digits, spaces, and these special characters: -_,;:./()

    Copy Mode

    • To copy files from one directory to another directory on the same host, select Within host.
    • To copy files from one host to another host, select Across hosts.

    Environment

    The environment where applications will be copied.

    Target environment

    If Copy Mode is set to Across hosts, this parameter indicates the target environment.

    CAUTION:

    If an environment contains multiple hosts, copy files from all hosts in the target environment.

    Files

    Specify the source path and destination path of the file to copy. Both paths must be absolute paths.

    Action Control

    Whether to enable the settings.

    • Keep running on failure: Continue the task even if this action fails.
    • Execute this action with the sudo permission: Use the sudo permission to deploy this action.

Helpful Links

If you encounter any problems during deployment, see Copying a File.