File system Copy

File system Copy

Certified

Copy files on the local filesystem

Copies files or directories within allowed local paths. Local access requires configuring allowed-paths in plugin defaults; operations outside are blocked. Set overwrite: true to replace existing targets.

Example (Kestra config):

plugins: 
  configurations: 
    - type: io.kestra.plugin.fs.local.Copy
      values: 
        allowed-paths: 
          - /data/files
yaml
type: io.kestra.plugin.fs.local.Copy

Copy a file within the local filesystem

yaml
id: copy_file
namespace: company.team

tasks:
  - id: copy
    type: io.kestra.plugin.fs.local.Copy
    from: "input/data.csv"
    to: "backup/data.csv"
    overwrite: true
Properties

Source file or directory path

Destination path on the local file system

Defaultfalse

Overwrite existing files

If false, the task fails when the destination already exists.